diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-07-05 23:38:30 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-08-23 14:20:22 +0200 |
commit | 371351731e9c2a7d8f4b169731495cb4f0589063 (patch) | |
tree | cd95307c7eb751c87c1f4baf9569b3aa70f414b4 /net/batman-adv/soft-interface.h | |
parent | 30cfd02b60e1cb16f5effb0a01f826c5bb7e4c59 (diff) | |
download | op-kernel-dev-371351731e9c2a7d8f4b169731495cb4f0589063.zip op-kernel-dev-371351731e9c2a7d8f4b169731495cb4f0589063.tar.gz |
batman-adv: change interface_rx to get orig node
In order to understand where a broadcast packet is coming from and use
this information to detect not yet announced clients, this patch modifies the
interface_rx() function by passing a new argument: the orig node
corresponding to the node that originated the received packet (if known).
This new argument if not NULL for broadcast packets only (other packets does not
have source field).
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/soft-interface.h')
-rw-r--r-- | net/batman-adv/soft-interface.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/soft-interface.h b/net/batman-adv/soft-interface.h index 852c683..07a08fe 100644 --- a/net/batman-adv/soft-interface.h +++ b/net/batman-adv/soft-interface.h @@ -21,8 +21,9 @@ #define _NET_BATMAN_ADV_SOFT_INTERFACE_H_ int batadv_skb_head_push(struct sk_buff *skb, unsigned int len); -void batadv_interface_rx(struct net_device *soft_iface, struct sk_buff *skb, - struct batadv_hard_iface *recv_if, int hdr_size); +void batadv_interface_rx(struct net_device *soft_iface, + struct sk_buff *skb, struct batadv_hard_iface *recv_if, + int hdr_size, struct batadv_orig_node *orig_node); struct net_device *batadv_softif_create(const char *name); void batadv_softif_destroy(struct net_device *soft_iface); int batadv_softif_is_valid(const struct net_device *net_dev); |