diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2012-07-23 16:45:46 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-07-23 16:54:15 -0700 |
commit | a3a2260384a906e1674c7498c2f479e9f37bc503 (patch) | |
tree | 5e5adc874a930144f847f57a08da862413b63668 /dhcpcd.h | |
parent | 2af699ea51cca49bd0f19080c9d73170e5bdadbc (diff) | |
download | external_dhcpcd-a3a2260384a906e1674c7498c2f479e9f37bc503.zip external_dhcpcd-a3a2260384a906e1674c7498c2f479e9f37bc503.tar.gz external_dhcpcd-a3a2260384a906e1674c7498c2f479e9f37bc503.tar.bz2 |
dhcpcd: Update to Version 5.5.6
Change-Id: I98c378688be723a2a602ec17c26bc13f2fd83cc8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'dhcpcd.h')
-rw-r--r-- | dhcpcd.h | 38 |
1 files changed, 35 insertions, 3 deletions
@@ -1,6 +1,6 @@ /* * dhcpcd - DHCP client daemon - * Copyright (c) 2006-2010 Roy Marples <roy@marples.name> + * Copyright (c) 2006-2011 Roy Marples <roy@marples.name> * All rights reserved * Redistribution and use in source and binary forms, with or without @@ -30,6 +30,7 @@ #include <sys/socket.h> #include <net/if.h> +#include <netinet/in.h> #include <limits.h> @@ -81,6 +82,30 @@ struct if_state { size_t arping_index; }; +struct ra_opt { + uint8_t type; + struct timeval expire; + char *option; + struct ra_opt *next; +}; + +struct ra { + struct in6_addr from; + char sfrom[INET6_ADDRSTRLEN]; + unsigned char *data; + ssize_t data_len; + struct timeval received; + uint32_t lifetime; + struct in6_addr prefix; + int prefix_len; + uint32_t prefix_vltime; + uint32_t prefix_pltime; + char sprefix[INET6_ADDRSTRLEN]; + struct ra_opt *options; + int expired; + struct ra *next; +}; + struct interface { char name[IF_NAMESIZE]; struct if_state *state; @@ -109,11 +134,16 @@ struct interface { unsigned char *clientid; + unsigned char *rs; + size_t rslen; + int rsprobes; + struct ra *ras; + struct interface *next; }; extern int pidfd; -extern int options; +extern unsigned long long options; extern int ifac; extern char **ifav; extern int ifdc; @@ -123,6 +153,7 @@ extern int avoid_routes; struct interface *find_interface(const char *); int handle_args(struct fd_list *, int, char **); +void handle_carrier(int, int, const char *); void handle_interface(int, const char *); void handle_hwaddr(const char *, unsigned char *, size_t); void handle_ifa(int, const char *, @@ -138,7 +169,8 @@ void start_expire(void *); void send_decline(struct interface *); void open_sockets(struct interface *); void close_sockets(struct interface *); -void drop_config(struct interface *, const char *); +void drop_dhcp(struct interface *, const char *); +void drop_interface(struct interface *, const char *); int select_profile(struct interface *, const char *); #endif |