summaryrefslogtreecommitdiffstats
path: root/watchlink/netlink_utils.hh
blob: a1be920a64d8c2bfb2451d08d56590ae492ef70c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __NETLINK_UTILS_HH__
#define __NETLINK_UTILS_HH__

#include <arpa/inet.h>
#include <linux/types.h>
#include <sys/types.h>
#include <sys/socket.h>


in_addr_t
ipv4_broadcast_addr (in_addr_t hostaddr, int masklen);

void
masklen2ip (int masklen, struct in_addr *netmask);

in_addr_t
ipv4_first_addr (in_addr_t hostaddr, int masklen);


#endif //__NETLINK_UTILS_HH__