diff options
author | brian <brian@FreeBSD.org> | 2001-12-19 16:05:27 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-12-19 16:05:27 +0000 |
commit | 95f38d3f31676a5d99dc58683066cd0b90edf498 (patch) | |
tree | 699c042f49d2b6acbf67fea48406aa354dac08fa /sys/net/rtsock.c | |
parent | 96902e811b5abd11952a379f9d7a7429009007c9 (diff) | |
download | FreeBSD-src-95f38d3f31676a5d99dc58683066cd0b90edf498.zip FreeBSD-src-95f38d3f31676a5d99dc58683066cd0b90edf498.tar.gz |
It's no longer necessary to ensure that ``gate'' is set when RTF_GATEWAY
is passed, as subsequent code does that check now anyway.
Submitted by: ru
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 2de17fa..c55d765 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -411,16 +411,6 @@ route_output(m, so) break; case RTM_CHANGE: - /* - * If they tried to change things but didn't specify - * the required gateway, then just use the old one. - * This can happen if the user tries to change the - * flags on the default route without changing the - * default gateway. Changing flags still doesn't work. - */ - if ((rt->rt_flags & RTF_GATEWAY) && !gate) - gate = rt->rt_gateway; - /* new gateway could require new ifaddr, ifp; flags may also be different; ifp may be specified by ll sockaddr when protocol address is ambiguous */ |