]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: Add helper function neigh_xmit
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 3 Mar 2015 23:11:16 +0000 (17:11 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 05:23:23 +0000 (00:23 -0500)
commit9f6817cb6a4d07e2a5dc864fb4af27ed0584cedd
treea6ee61e3ac7571516b693c2465c6309a59cd0a08
parent950cb157d7964b6169d7bd2c099acaca86085eaa
neigh: Add helper function neigh_xmit

For MPLS I am building the code so that either the neighbour mac
address can be specified or we can have a next hop in ipv4 or ipv6.

The kind of next hop we have is indicated by the neighbour table
pointer.  A neighbour table pointer of NULL is a link layer address.
A non-NULL neighbour table pointer indicates which neighbour table and
thus which address family the next hop address is in that we need to
look up.

The code either sends a packet directly or looks up the appropriate
neighbour table entry and sends the packet.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h
net/core/neighbour.c