summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_output.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2014-04-14 09:06:41 +0000
committermpi <mpi@openbsd.org>2014-04-14 09:06:41 +0000
commit5ee8afe39a770ad61ead39a141e8c19b968b0fdd (patch)
treeb87e5dc2add33e729fcb6ee0ec810283a367bb96 /sys/netinet/tcp_output.c
parentSync the list of man pages with doc/crypto and doc/ssl. MLINKS will (diff)
downloadwireguard-openbsd-5ee8afe39a770ad61ead39a141e8c19b968b0fdd.tar.xz
wireguard-openbsd-5ee8afe39a770ad61ead39a141e8c19b968b0fdd.zip
"struct pkthdr" holds a routing table ID, not a routing domain one.
Avoid the confusion by using an appropriate name for the variable. Note that since routing domain IDs are a subset of the set of routing table IDs, the following idiom is correct: rtableid = rdomain But to get the routing domain ID corresponding to a given routing table ID, you must call rtable_l2(9). claudio@ likes it, ok mikeb@
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r--sys/netinet/tcp_output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index caacc1d8233..d18c22776cb 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_output.c,v 1.104 2014/04/07 10:04:17 mpi Exp $ */
+/* $OpenBSD: tcp_output.c,v 1.105 2014/04/14 09:06:42 mpi Exp $ */
/* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */
/*
@@ -1050,8 +1050,8 @@ send:
}
#endif
- /* force routing domain */
- m->m_pkthdr.rdomain = tp->t_inpcb->inp_rtableid;
+ /* force routing table */
+ m->m_pkthdr.ph_rtableid = tp->t_inpcb->inp_rtableid;
#if NPF > 0
m->m_pkthdr.pf.inp = tp->t_inpcb;