summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2000-10-18 17:09:14 +0000
committerthorpej <thorpej@NetBSD.org>2000-10-18 17:09:14 +0000
commitea9b5a91069b17412e3ef82585438335ffad9d93 (patch)
tree465501b6f99e664a5c9c7eff8d5ac77c7b17346d /sys/dev/microcode
parent9d3f5d7fbd1c7de059c2ebbf55b0220c51d81a4b (diff)
Restructure the Path MTU Discovery code somewhat to avoid
entering rtentry's for hosts we're not actually communicating with. Do this by invoking the ctlinput for the protocol, which is responsible for validating the ICMP message: * TCP -- Lookup the connection based on the address/port pairs in the ICMP message. * AH/ESP -- Lookup the SA based on the SPI in the ICMP message. If validation succeeds, ctlinput is responsible for calling icmp_mtudisc(). icmp_mtudisc() then invokes callbacks registered by protocols (such as TCP) which want to take some sort of special action when a path's MTU changes. For TCP, this is where we now refresh cached routes and re-enter slow-start. As a side-effect, this fixes the problem where TCP would not be notified when a path's MTU changed if AH/ESP were being used. XXX Note, this is only a fix for the IPv4 case. For the IPv6 XXX case, we need to wait for the KAME folks. Reviewed by sommerfeld@netbsd.org and itojun@netbsd.org.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions