diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-09-08 13:12:53 +0200 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-11-20 13:08:32 +0100 |
commit | be7af5cf9cae5e088a9783ccd6e47469ce9d43f4 (patch) | |
tree | bdbe10d4fbc6792df1a76b17a539e9c72b0dd8b2 /net/batman-adv/gateway_client.h | |
parent | 25a92b138dcd1eb46e82d1afdf03fd787837c019 (diff) | |
download | talos-op-linux-be7af5cf9cae5e088a9783ccd6e47469ce9d43f4.tar.gz talos-op-linux-be7af5cf9cae5e088a9783ccd6e47469ce9d43f4.zip |
batman-adv: refactoring gateway handling code
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/gateway_client.h')
-rw-r--r-- | net/batman-adv/gateway_client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/gateway_client.h b/net/batman-adv/gateway_client.h index b9b983c07feb..e1edba08eb1d 100644 --- a/net/batman-adv/gateway_client.h +++ b/net/batman-adv/gateway_client.h @@ -31,7 +31,8 @@ void gw_node_update(struct bat_priv *bat_priv, void gw_node_delete(struct bat_priv *bat_priv, struct orig_node *orig_node); void gw_node_purge(struct bat_priv *bat_priv); int gw_client_seq_print_text(struct seq_file *seq, void *offset); -int gw_is_target(struct bat_priv *bat_priv, struct sk_buff *skb, - struct orig_node *old_gw); +bool gw_is_dhcp_target(struct sk_buff *skb, unsigned int *header_len); +bool gw_out_of_range(struct bat_priv *bat_priv, + struct sk_buff *skb, struct ethhdr *ethhdr); #endif /* _NET_BATMAN_ADV_GATEWAY_CLIENT_H_ */ |