summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r--accel-pppd/ctrl/ipoe/arp.c2
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.h40
2 files changed, 21 insertions, 21 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c
index 1979c76..4f9669b 100644
--- a/accel-pppd/ctrl/ipoe/arp.c
+++ b/accel-pppd/ctrl/ipoe/arp.c
@@ -231,7 +231,7 @@ static int arp_read(struct triton_md_handler_t *h)
void *arpd_start(struct ipoe_serv *ipoe)
{
struct rb_node **p, *parent = NULL;
- struct arp_node *n;
+ struct arp_node *n = NULL;
struct arp_tree *t;
int fd, ifindex = ipoe->ifindex, i;
char fname[1024];
diff --git a/accel-pppd/ctrl/ipoe/ipoe.h b/accel-pppd/ctrl/ipoe/ipoe.h
index 7c585a2..933a2c9 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.h
+++ b/accel-pppd/ctrl/ipoe/ipoe.h
@@ -59,17 +59,17 @@ struct ipoe_serv {
char *opt_lua_username_func;
#endif
int opt_weight;
- int opt_shared:1;
- int opt_dhcpv4:1;
- int opt_up:1;
- int opt_auto:1;
- int opt_ifcfg:1;
- int opt_nat:1;
- int opt_ipv6:1;
- int opt_ip_unnumbered:1;
- int need_close:1;
- int active:1;
- int vlan_mon:1;
+ unsigned int opt_shared:1;
+ unsigned int opt_dhcpv4:1;
+ unsigned int opt_up:1;
+ unsigned int opt_auto:1;
+ unsigned int opt_ifcfg:1;
+ unsigned int opt_nat:1;
+ unsigned int opt_ipv6:1;
+ unsigned int opt_ip_unnumbered:1;
+ unsigned int need_close:1;
+ unsigned int active:1;
+ unsigned int vlan_mon:1;
};
struct ipoe_session {
@@ -110,15 +110,15 @@ struct ipoe_session {
#ifdef RADIUS
struct rad_plugin_t radius;
#endif
- int started:1;
- int terminating:1;
- int dhcp_addr:1;
- int relay_addr:1;
- int l4_redirect:1;
- int l4_redirect_set:1;
- int terminate:1;
- int UP:1;
- int wait_start:1;
+ unsigned int started:1;
+ unsigned int terminating:1;
+ unsigned int dhcp_addr:1;
+ unsigned int relay_addr:1;
+ unsigned int l4_redirect:1;
+ unsigned int l4_redirect_set:1;
+ unsigned int terminate:1;
+ unsigned int UP:1;
+ unsigned int wait_start:1;
};
struct ipoe_session_info {