Path MTU discovery was slightly broken. I took two ICMP packets
authorbluhm <bluhm@openbsd.org>
Mon, 11 Jul 2016 13:06:31 +0000 (13:06 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 11 Jul 2016 13:06:31 +0000 (13:06 +0000)
commitb37b7e610fda77961640712a65526d948a00aa6e
tree8336f7a65264c289306e81054e453cd80c81e22d
parent02dbb388054de79775771360547cf38b72bf589b
Path MTU discovery was slightly broken.  I took two ICMP packets
to create and change the dynamic route.  This behavior was introduced
in net/route.c rev 1.269 when the gateway route allocation was moved
from rt_setgateway() to _rtalloc().  So rtrequest(RTM_ADD) could
return a route without a valid gateway route.  To fix this, call
rt_setgwroute() from _rtalloc() and rt_setgateway().
OK mpi@
sys/net/if_spppsubr.c
sys/net/route.c
sys/net/route.h
sys/net/rtsock.c