]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c3bf8461758a1594a31b284c9fde36f8f7a07d9
tree7cdbf95a57239352f9203b96dc915649bc0be253
parent91ca3eafb983fc22850c67cc37c936c3d1fca44d
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