diff options
author | jmg <jmg@FreeBSD.org> | 2004-09-05 02:34:12 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2004-09-05 02:34:12 +0000 |
commit | 8e8293b76576645a7323d6bce9cc4f8b1e544edd (patch) | |
tree | 41c4349d7abcca9eddfb8777895d58e45d58de0b /sys/netinet/tcp_subr.c | |
parent | e291fa77140598041f22aa877b26c0844871d3ea (diff) | |
download | FreeBSD-src-8e8293b76576645a7323d6bce9cc4f8b1e544edd.zip FreeBSD-src-8e8293b76576645a7323d6bce9cc4f8b1e544edd.tar.gz |
fix up socket/ip layer violation... don't assume/know that
SO_DONTROUTE == IP_ROUTETOIF and SO_BROADCAST == IP_ALLOWBROADCAST...
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index cb709fb..b0f4e5c 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1848,7 +1848,8 @@ tcp_twrespond(struct tcptw *tw, int flags) if (path_mtu_discovery) ip->ip_off |= IP_DF; error = ip_output(m, inp->inp_options, NULL, - (tw->tw_so_options & SO_DONTROUTE), NULL, inp); + ((tw->tw_so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), + NULL, inp); } if (flags & TH_ACK) tcpstat.tcps_sndacks++; |