File: network.h

package info (click to toggle)
haskell-network-info 0.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 116 kB
  • sloc: ansic: 221; haskell: 12; sh: 3; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define NAME_SIZE (128+4)
#define MAC_SIZE 6

typedef long ipv4;
typedef long ipv6[4];

struct network_interface {
    wchar_t name[NAME_SIZE];
    ipv4 ip_address;
    ipv6 ip6_address;
    unsigned char mac_address[MAC_SIZE];
};

int c_get_network_interfaces(struct network_interface *ns, int max_ns);