aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/interface.h
blob: c828144b0890b718b300b1d46182ed1a2dbcb949 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "address.h"

#include <util/generic/vector.h>

namespace NAddr {
    struct TNetworkInterface {
        TString Name; 
        IRemoteAddrRef Address;
        IRemoteAddrRef Mask;
    };

    using TNetworkInterfaceList = TVector<TNetworkInterface>; 

    TNetworkInterfaceList GetNetworkInterfaces();
}