+enum tunnel_param {
+ TUNNEL_ATTR_TYPE,
+ TUNNEL_ATTR_REMOTE,
+ TUNNEL_ATTR_LOCAL,
+ TUNNEL_ATTR_TTL,
+ TUNNEL_ATTR_6RD_PREFIX,
+ TUNNEL_ATTR_6RD_RELAY_PREFIX,
+ __TUNNEL_ATTR_MAX
+};
+
+const struct config_param_list tunnel_attr_list;
+
+enum bridge_opt {
+ /* stp and forward delay always set */
+ BRIDGE_OPT_AGEING_TIME = (1 << 0),
+ BRIDGE_OPT_HELLO_TIME = (1 << 1),
+ BRIDGE_OPT_MAX_AGE = (1 << 2),
+};
+
+struct bridge_config {
+ enum bridge_opt flags;
+ bool stp;
+ bool igmp_snoop;
+ int forward_delay;
+
+ int ageing_time;
+ int hello_time;
+ int max_age;
+};
+
+static inline int system_get_addr_family(unsigned int flags)
+{
+ if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6)
+ return AF_INET6;
+ else
+ return AF_INET;
+}
+
+static inline int system_get_addr_len(unsigned int flags)
+{
+ if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6)
+ return sizeof(struct in_addr);
+ else
+ return sizeof(struct in6_addr);
+}
+
+int system_init(void);
+
+int system_bridge_addbr(struct device *bridge, struct bridge_config *cfg);