History

batman-adv: netlink: add gateway table queries

Add BATADV_CMD_GET_GATEWAYS commands, using handlers bat_gw_dump in batadv_algo_ops. Will always return -EOPNOTSUPP for now, as no implementations exist yet.

Sven Eckelmann committed 10 years ago

Commit d7129da1 parent f02a4785 files · +82 −0Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/batman_adv.h+8−0
@@ -88,6 +88,9 @@ enum batadv_tt_client_flags { · 87 unmodified lines
8888 * @BATADV_ATTR_NEIGH_ADDRESS: Neighbour MAC address
8989 * @BATADV_ATTR_TQ: TQ to neighbour
9090 * @BATADV_ATTR_THROUGHPUT: Estimated throughput to Neighbour
91+ * @BATADV_ATTR_BANDWIDTH_UP: Reported uplink bandwidth
92+ * @BATADV_ATTR_BANDWIDTH_DOWN: Reported downlink bandwidth
93+ * @BATADV_ATTR_ROUTER: Gateway router MAC address
9194 * @__BATADV_ATTR_AFTER_LAST: internal use
9295 * @NUM_BATADV_ATTR: total number of batadv_nl_attrs available
9396 * @BATADV_ATTR_MAX: highest attribute number currently defined
@@ -120,6 +123,9 @@ enum batadv_nl_attrs { · 26 unmodified lines
120123 BATADV_ATTR_NEIGH_ADDRESS,
121124 BATADV_ATTR_TQ,
122125 BATADV_ATTR_THROUGHPUT,
126+ BATADV_ATTR_BANDWIDTH_UP,
127+ BATADV_ATTR_BANDWIDTH_DOWN,
128+ BATADV_ATTR_ROUTER,
123129 /* add attributes above here, update the policy in netlink.c */
124130 __BATADV_ATTR_AFTER_LAST,
125131 NUM_BATADV_ATTR = __BATADV_ATTR_AFTER_LAST,
@@ -139,6 +145,7 @@ enum batadv_nl_attrs { · 13 unmodified lines
139145 * @BATADV_CMD_GET_TRANSTABLE_GLOBAL Query list of global translations
140146 * @BATADV_CMD_GET_ORIGINATORS: Query list of originators
141147 * @BATADV_CMD_GET_NEIGHBORS: Query list of neighbours
148+ * @BATADV_CMD_GET_GATEWAYS: Query list of gateways
142149 * @__BATADV_CMD_AFTER_LAST: internal use
143150 * @BATADV_CMD_MAX: highest used command number
144151 */
@@ -153,6 +160,7 @@ enum batadv_nl_commands { · 8 unmodified lines
153160 BATADV_CMD_GET_TRANSTABLE_GLOBAL,
154161 BATADV_CMD_GET_ORIGINATORS,
155162 BATADV_CMD_GET_NEIGHBORS,
163+ BATADV_CMD_GET_GATEWAYS,
156164 /* add new commands above here */
157165 __BATADV_CMD_AFTER_LAST,
158166 BATADV_CMD_MAX = __BATADV_CMD_AFTER_LAST - 1

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t