X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system.h;h=ad7415635c74c2236bdd41f2720ed2248b2cd60e;hp=e50201a87cb35a8db949dbb5ba6f85680fbc6418;hb=37769eb666aa614b76df9b537db35c2c70e3ac7a;hpb=5a2ccd7b750162b0d6ee13609f7e1ed5ea827d9d diff --git a/system.h b/system.h index e50201a..ad74156 100644 --- a/system.h +++ b/system.h @@ -54,6 +54,17 @@ struct bridge_config { int max_age; }; +enum macvlan_opt { + MACVLAN_OPT_MACADDR = (1 << 0), +}; + +struct macvlan_config { + const char *mode; + + enum macvlan_opt flags; + unsigned char macaddr[6]; +}; + static inline int system_get_addr_family(unsigned int flags) { if ((flags & DEVADDR_FAMILY) == DEVADDR_INET6) @@ -77,6 +88,9 @@ int system_bridge_delbr(struct device *bridge); int system_bridge_addif(struct device *bridge, struct device *dev); int system_bridge_delif(struct device *bridge, struct device *dev); +int system_macvlan_add(struct device *macvlan, struct device *dev, struct macvlan_config *cfg); +int system_macvlan_del(struct device *macvlan); + int system_vlan_add(struct device *dev, int id); int system_vlan_del(struct device *dev);