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