diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-10-01 09:57:35 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-11-07 20:00:18 +0100 |
commit | 7cdcf6dddc428c90ac867267a8d301e9e8b25612 (patch) | |
tree | 7cdbf95a57239352f9203b96dc915649bc0be253 /net/batman-adv/soft-interface.c | |
parent | f6c57a460913f3c83b0e8eb51f4021fcf1c83cdc (diff) | |
download | op-kernel-dev-7cdcf6dddc428c90ac867267a8d301e9e8b25612.zip op-kernel-dev-7cdcf6dddc428c90ac867267a8d301e9e8b25612.tar.gz |
batman-adv: add UNICAST_4ADDR packet type
The current unicast packet type does not contain the orig source address. This
patches add a new unicast packet (called UNICAST_4ADDR) which provides two new
fields: the originator source address and the subtype (the type of the data
contained in the packet payload). The former is useful to identify the node
which injected the packet into the network and the latter is useful to avoid
creating new unicast packet types in the future: a macro defining a new subtype
will be enough.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 22bc651..2f123a1 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c @@ -260,7 +260,7 @@ static int batadv_interface_tx(struct sk_buff *skb, goto dropped; } - ret = batadv_unicast_send_skb(skb, bat_priv); + ret = batadv_unicast_send_skb(bat_priv, skb); if (ret != 0) goto dropped_freed; } |