X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Fodhcpd.h;h=2cadccb253a6e7fb7bad0c91bdc0d2d5dd577512;hp=64ffca2801999bd1c3e1a8b98e650ae383c3b218;hb=f13c624c16a8e3fd30bb47f9ed614c7e2bd6d75e;hpb=7fb8ef575d019796b212824a706b0ea5c6bdffaa;ds=sidebyside diff --git a/src/odhcpd.h b/src/odhcpd.h index 64ffca2..2cadccb 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -61,7 +61,7 @@ extern struct list_head leases; struct odhcpd_event { struct uloop_fd uloop; void (*handle_dgram)(void *addr, void *data, size_t len, - struct interface *iface); + struct interface *iface, void *dest_addr); }; @@ -137,6 +137,7 @@ struct interface { bool ignore; bool always_rewrite_dns; bool ra_not_onlink; + bool ra_advrouter; bool no_dynamic_dhcp; int learn_routes; @@ -147,6 +148,8 @@ struct interface { // DHCPv4 struct in_addr dhcpv4_start; struct in_addr dhcpv4_end; + struct in_addr *dhcpv4_router; + size_t dhcpv4_router_cnt; struct in_addr *dhcpv4_dns; size_t dhcpv4_dns_cnt; uint32_t dhcpv4_leasetime; @@ -165,6 +168,8 @@ struct interface { char *upstream; size_t upstream_len; + + char *filter_class; }; extern struct list_head interfaces;