summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.h
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2013-11-05 19:31:08 +0100
committerAntonio Quartulli <antonio@meshcoding.com>2014-01-08 20:49:42 +0100
commit6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9 (patch)
tree5e7d10d691a64b8ae180d4f718a41120118c6432 /net/batman-adv/gateway_client.h
parent36484f84d567f79fc7cc62c4391c7752a0ede7f2 (diff)
downloadop-kernel-dev-6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9.zip
op-kernel-dev-6c413b1c22a2c4ef324f1c6f2c282f1ca10a93b9.tar.gz
batman-adv: send every DHCP packet as bat-unicast
In different situations it is possible that the DHCP server or client uses broadcast Ethernet frames to send messages to each other. The GW component in batman-adv takes care of using bat-unicast packets to bring broadcast DHCP Discover/Requests to the "best" server. On the way back the DHCP server usually sends unicasts, but upon client request it may decide to use broadcasts as well. This patch improves the GW component so that it now snoops and sends as unicast all the DHCP packets, no matter if they were generated by a DHCP server or client. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r--net/batman-adv/gateway_client.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h
index 514cff6..006befb 100644
--- a/net/batman-adv/gateway_client.h
+++ b/net/batman-adv/gateway_client.h
@@ -32,7 +32,9 @@ void batadv_gw_node_delete(struct batadv_priv *bat_priv,
struct batadv_orig_node *orig_node);
void batadv_gw_node_purge(struct batadv_priv *bat_priv);
int batadv_gw_client_seq_print_text(struct seq_file *seq, void *offset);
-bool batadv_gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len);
bool batadv_gw_out_of_range(struct batadv_priv *bat_priv, struct sk_buff *skb);
+enum batadv_dhcp_recipient
+batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len,
+ uint8_t *chaddr);
#endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */
OpenPOWER on IntegriCloud