]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/ip_gre.c
[IPV4] ip_gre: sendto/recvfrom NBMA address
authorTimo Teras <timo.teras@iki.fi>
Wed, 24 Oct 2007 03:31:53 +0000 (20:31 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 24 Oct 2007 04:27:53 +0000 (21:27 -0700)
commit6a5f44d7a048c97b8bae8ce464c97b8fad61ff99
tree7e7a8e51c34ae5038ea5e228d4b86dce6684fb7f
parent16d14ef9f29dfa9b1d99f3eff860e9f15bc99f39
[IPV4] ip_gre: sendto/recvfrom NBMA address

When GRE tunnel is in NBMA mode, this patch allows an application to use
a PF_PACKET socket to:
- send a packet to specific NBMA address with sendto()
- use recvfrom() to receive packet and check which NBMA address it came from

This is required to implement properly NHRP over GRE tunnel.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Acked-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c