search for: port_set

Displaying 6 results from an estimated 6 matches for "port_set".

Did you mean: port_getn
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...value); + if (feature_supported(path, "hairpin_mode")) + info->hairpin_mode = fetch_int(path, "hairpin_mode"); + else + info->hairpin_mode = 0; closedir(d); return 0; @@ -381,6 +400,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...value); + if (feature_supported(path, "hairpin_mode")) + info->hairpin_mode = fetch_int(path, "hairpin_mode"); + else + info->hairpin_mode = 0; closedir(d); return 0; @@ -381,6 +400,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...value); + if (feature_supported(path, "hairpin_mode")) + info->hairpin_mode = fetch_int(path, "hairpin_mode"); + else + info->hairpin_mode = 0; closedir(d); return 0; @@ -381,6 +400,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...eturn br_set_string(br, "uplink_port", uplink, IFNAMSIZ); +} + int br_set_bridge_priority(const char *br, int bridge_priority) { return br_set(br, "priority", bridge_priority, @@ -398,6 +477,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...eturn br_set_string(br, "uplink_port", uplink, IFNAMSIZ); +} + int br_set_bridge_priority(const char *br, int bridge_priority) { return br_set(br, "priority", bridge_priority, @@ -398,6 +477,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...eturn br_set_string(br, "uplink_port", uplink, IFNAMSIZ); +} + int br_set_bridge_priority(const char *br, int bridge_priority) { return br_set(br, "priority", bridge_priority, @@ -398,6 +477,11 @@ int br_set_path_cost(const char *bridge, const char *port, int cost) return port_set(bridge, port, "path_cost", cost, BRCTL_SET_PATH_COST); } +int br_set_hairpin_mode(const char *bridge, const char *port, int hairpin_mode) +{ + return port_set(bridge, port, "hairpin_mode", hairpin_mode, 0); +} + static inline void __copy_fdb(struct fdb_entry *ent,...