Flag user specified routes with an AF_LINK gateway as RTF_LLINFO.
authormpi <mpi@openbsd.org>
Tue, 5 May 2015 09:41:43 +0000 (09:41 +0000)
committermpi <mpi@openbsd.org>
Tue, 5 May 2015 09:41:43 +0000 (09:41 +0000)
commit4c23f738b57f0dec5cf7f18d1768c57269691a95
tree77d396a7ae73cf080d7edf85cec87fcd7120ccef
parentdaa733bf2367dd564976351be8942ba95aa58ea1
Flag user specified routes with an AF_LINK gateway as RTF_LLINFO.

This makes ND6 and ARP layers happy since they both check for this flag,
but is was redundant to provide route(8)'s "-llinfo" option when adding
a l2 route.

RTF_LLINFO is clearly redundant for userland tools, so only allow the
kernel to set it.

ok benno@, claudio@
sys/net/route.h
sys/net/rtsock.c