X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=system.h;h=b3298bd46fb4af525bc259a8ddb7d9e1afc01585;hb=0eb6aa7562ae8db51c09b2c370a65f01b0ac1cff;hp=9a2326bb3bf67915ed083fcddd699873e856297d;hpb=f6f065d3997ccc8d42805529e4aad59b789579ad;p=project%2Fnetifd.git diff --git a/system.h b/system.h index 9a2326b..b3298bd 100644 --- a/system.h +++ b/system.h @@ -50,6 +50,7 @@ struct bridge_config { enum bridge_opt flags; bool stp; bool igmp_snoop; + bool multicast_querier; unsigned short priority; int forward_delay; bool bridge_empty; @@ -57,6 +58,7 @@ struct bridge_config { int ageing_time; int hello_time; int max_age; + int hash_max; }; enum macvlan_opt { @@ -90,7 +92,7 @@ static inline int system_get_addr_family(unsigned int flags) static inline int system_get_addr_len(unsigned int flags) { - if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6) + if ((flags & DEVADDR_FAMILY) != DEVADDR_INET6) return sizeof(struct in_addr); else return sizeof(struct in6_addr); @@ -112,6 +114,7 @@ int system_vlan_del(struct device *dev); int system_vlandev_add(struct device *vlandev, struct device *dev, struct vlandev_config *cfg); int system_vlandev_del(struct device *vlandev); +void system_if_get_settings(struct device *dev, struct device_settings *s); void system_if_clear_state(struct device *dev); int system_if_up(struct device *dev); int system_if_down(struct device *dev);