diff options
| author | Roy Marples <roy@marples.name> | 2007-05-11 19:55:00 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-05-11 19:55:00 +0000 |
| commit | 7f1b42ce4f272bbb2013ad86b4d835857bff0fc8 (patch) | |
| tree | 8766d65090649d88ed709820557f9f87f342f13a /interface.h | |
| parent | 73ac22c3cbee807f37754dae40308217e81e1c0f (diff) | |
| download | dhcpcd-7f1b42ce4f272bbb2013ad86b4d835857bff0fc8.tar.xz | |
Enable DHCP_INFORM support via the -S option
Diffstat (limited to 'interface.h')
| -rw-r--r-- | interface.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/interface.h b/interface.h index a5064852..b3696ec2 100644 --- a/interface.h +++ b/interface.h @@ -98,6 +98,9 @@ typedef struct interface_t void free_address (address_t *addresses); void free_route (route_t *routes); +unsigned long get_netmask (unsigned long addr); +char *hwaddr_ntoa (const unsigned char *hwaddr, int hwlen); + interface_t *read_interface (const char *ifname, int metric); int get_mtu (const char *ifname); int set_mtu (const char *ifname, short int mtu); @@ -106,7 +109,10 @@ int add_address (const char *ifname, struct in_addr address, struct in_addr netmask, struct in_addr broadcast); int del_address (const char *ifname, struct in_addr address, struct in_addr netmask); + int flush_addresses (const char *ifname); +unsigned long get_address (const char *ifname); +int has_address (const char *ifname, struct in_addr address); int add_route (const char *ifname, struct in_addr destination, struct in_addr netmask, struct in_addr gateway, int metric); @@ -116,6 +122,5 @@ int del_route (const char *ifname, struct in_addr destination, struct in_addr netmask, struct in_addr gateway, int metric); int inet_ntocidr (struct in_addr address); -char *hwaddr_ntoa (const unsigned char *hwaddr, int hwlen); #endif |
