Attached hosts 20/5720/6
authorNeale Ranns <nranns@cisco.com>
Sat, 11 Mar 2017 13:55:21 +0000 (05:55 -0800)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 17 Mar 2017 15:49:39 +0000 (15:49 +0000)
commit4b919a56642ccd0a44920feace872aeb5b7a62cf
tree17750f4efc80d7863b68f9cd08ab381cd00dd534
parentc60f557590f79b8817382bdd982825b66c4e0a73
Attached hosts

allow this config to function:
  set int ip address loop0 169.254.1.1/32  (the default GW address for attached hosts)
  set int unnumbered af_packet0 use loop0  ('enable' IP on the host interface)
  ip route add 192.168.1.1/32 via af_packet0 (where to find the host)
repeat for each host and host interface.
Inter-host communication is throught the /32 routes.
To allow this:
 1 - attached host routes have the ATTACHED flag set, so the ARP code accepts then as legitimate sources
 2 - unnumbered interfaces inherit the source address from the IP interface

Change-Id: Ib66c5f0e848c528f79372813adc3a0c11b50717f
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/ethernet/arp.c
src/vnet/fib/fib_entry_src.c
src/vnet/fib/fib_path.c
src/vnet/fib/fib_path.h
src/vnet/fib/fib_table.c
src/vnet/fib/fib_types.h
src/vnet/interface_api.c
src/vnet/interface_cli.c
test/test_neighbor.py
test/vpp_interface.py