batman-adv: add UNICAST_4ADDR packet type
authorAntonio Quartulli <ordex@autistici.org>
Mon, 1 Oct 2012 07:57:35 +0000 (09:57 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 7 Nov 2012 19:00:18 +0000 (20:00 +0100)
commit7cdcf6dddc428c90ac867267a8d301e9e8b25612
tree7cdbf95a57239352f9203b96dc915649bc0be253
parentf6c57a460913f3c83b0e8eb51f4021fcf1c83cdc
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>
net/batman-adv/main.c
net/batman-adv/packet.h
net/batman-adv/routing.c
net/batman-adv/soft-interface.c
net/batman-adv/unicast.c
net/batman-adv/unicast.h