aboutsummaryrefslogtreecommitdiffstats
path: root/util/network/interface.h
blob: c595e9788c6181a5f300ae2599f9068262928d51 (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();
}