diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-08-22 00:21:46 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-08-22 00:21:46 +0400 |
commit | c4bbf0d089534916fff4cfa2ac5f45e0aba9e8a1 (patch) | |
tree | bee0a1d42b1d719bcb646114069c68ca0aa69a98 /accel-pppd/ctrl/ipoe/dhcpv4.h | |
parent | fb46886b0d19bbbe81274cad1d5b69c6900ccbdc (diff) | |
download | accel-ppp-c4bbf0d089534916fff4cfa2ac5f45e0aba9e8a1.tar.gz accel-ppp-c4bbf0d089534916fff4cfa2ac5f45e0aba9e8a1.zip |
ipoe: implemented offer delaying
Diffstat (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.h')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.h b/accel-pppd/ctrl/ipoe/dhcpv4.h index b7602e1..ea39657 100644 --- a/accel-pppd/ctrl/ipoe/dhcpv4.h +++ b/accel-pppd/ctrl/ipoe/dhcpv4.h @@ -25,8 +25,7 @@ #define DHCPRELEASE 7 #define DHCPINFORM 8 -struct dhcpv4_hdr -{ +struct dhcpv4_hdr { uint8_t op; uint8_t htype; uint8_t hlen; @@ -44,16 +43,14 @@ struct dhcpv4_hdr uint8_t magic[4]; } __packed; -struct dhcpv4_option -{ +struct dhcpv4_option { struct list_head entry; uint8_t type; uint8_t len; uint8_t *data; }; -struct dhcpv4_packet -{ +struct dhcpv4_packet { struct dhcpv4_hdr *hdr; struct list_head options; struct dhcpv4_option *client_id; @@ -66,8 +63,7 @@ struct dhcpv4_packet uint8_t data[0]; }; -struct dhcpv4_iprange -{ +struct dhcpv4_iprange { struct list_head entry; uint32_t routerip; uint32_t startip; @@ -78,8 +74,7 @@ struct dhcpv4_iprange unsigned long free[0]; }; -struct dhcpv4_serv -{ +struct dhcpv4_serv { struct triton_context_t *ctx; struct triton_md_handler_t hnd; int raw_sock; @@ -88,8 +83,7 @@ struct dhcpv4_serv struct dhcpv4_iprange *range; }; -struct dhcpv4_relay -{ +struct dhcpv4_relay { struct list_head entry; struct triton_context_t ctx; struct triton_md_handler_t hnd; |