diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-07-05 14:08:04 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-07-05 14:08:04 +0400 |
commit | 64b5b693764c4f36870fd988ccbb53bcb188e74d (patch) | |
tree | 7af1897fdb9edd9cf40885c65f8567ae58bc0de6 /accel-pppd/ctrl/ipoe/ipoe.h | |
parent | 046642d5729493b25e5fba4b11c507fe3d2e2687 (diff) | |
download | accel-ppp-64b5b693764c4f36870fd988ccbb53bcb188e74d.tar.gz accel-ppp-64b5b693764c4f36870fd988ccbb53bcb188e74d.zip |
ipoe: futher work
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.h')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.h b/accel-pppd/ctrl/ipoe/ipoe.h index 30760906..97b13e63 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.h +++ b/accel-pppd/ctrl/ipoe/ipoe.h @@ -15,11 +15,13 @@ struct ipoe_serv char *ifname; int ifindex; int active; - int opt_single; - int opt_dhcpv4; struct list_head sessions; struct dhcpv4_serv *dhcpv4; pthread_mutex_t lock; + int opt_mode; + int opt_shared:1; + int opt_dhcpv4:1; + int opt_up:1; }; struct dhcp_opt @@ -60,6 +62,7 @@ void ipoe_nl_add_net(uint32_t addr, int mask); void ipoe_nl_delete_nets(void); int ipoe_nl_create(uint32_t peer_addr, uint32_t addr, const char *ifname, uint8_t *hwaddr); void ipoe_nl_delete(int ifindex); +int ipoe_nl_modify(int ifindex, uint32_t peer_addr, uint32_t addr, const char *ifname, uint8_t *hwaddr); #endif |