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_output.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_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index ce739e9..cd09097 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1060,8 +1060,8 @@ timer: /* TODO: IPv6 IP6TOS_ECT bit on */ error = ip6_output(m, tp->t_inpcb->in6p_outputopts, NULL, - (so->so_options & SO_DONTROUTE), NULL, NULL, - tp->t_inpcb); + ((so->so_options & SO_DONTROUTE) ? + IP_ROUTETOIF : 0), NULL, NULL, tp->t_inpcb); } else #endif /* INET6 */ { @@ -1080,7 +1080,8 @@ timer: ip->ip_off |= IP_DF; error = ip_output(m, tp->t_inpcb->inp_options, NULL, - (so->so_options & SO_DONTROUTE), 0, tp->t_inpcb); + ((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), 0, + tp->t_inpcb); } if (error) { |