File: netmask.h

package info (click to toggle)
netmask 2.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 404 kB
  • sloc: ansic: 881; sh: 83; perl: 29; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#include <netinet/in.h>
#include <netdb.h>

typedef struct nm *NM;

NM nm_new_v4(struct in_addr *);

NM nm_new_v6(struct in6_addr *);

NM nm_new_ai(struct addrinfo *);

#define NM_USE_DNS 1

NM nm_new_str(const char *, int flags);

NM nm_merge(NM, NM);

typedef union {
    struct in6_addr s6;
    struct in_addr  s;
} nm_addr;

void nm_walk(NM, void (*)(int domain, nm_addr *neta, nm_addr *mask));