]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6/route.c: packets originating on device match lo
authorDavid McCullough <david_mccullough@mcafee.com>
Mon, 25 Jun 2012 15:42:26 +0000 (15:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 06:54:32 +0000 (23:54 -0700)
commite0fde989ef8178b52281965f3018db2c677c70d5
tree2f7d6b83a4cca199ac78ee98cc8769d25a012ed6
parent1b60471e37dee241f0816f6d7d4c0361c0f86617
net/ipv6/route.c: packets originating on device match lo

Fix to allow IPv6 packets originating locally to match rules with the "iff"
set to "lo".  This allows IPv6 rule matching work the same as it does for
IPv4.  From the iproute2 man page:

   iif NAME
  select  the incoming device to match.  If the interface is loop‐
  back, the rule only matches packets originating from this  host.
  This  means that you may create separate routing tables for for‐
  warded and local packets and, hence, completely segregate them.

Signed-off-by: David McCullough <david_mccullough@mcafee.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c