summaryrefslogtreecommitdiff
path: root/sys/netinet6/udp6_output.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-04-14 09:06:43 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-04-14 09:06:43 +0000
commit54617071ea9f9eb023d9167cbe7bfdb60e27aad3 (patch)
tree2218c953c0e2eb6e811932a00c47f0aaa1891483 /sys/netinet6/udp6_output.c
parentb2b037dc36001ccef4f7d611af54e498fb846fcc (diff)
"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/netinet6/udp6_output.c')
-rw-r--r--sys/netinet6/udp6_output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/udp6_output.c b/sys/netinet6/udp6_output.c
index 2ae95cafa68..543f276f2f1 100644
--- a/sys/netinet6/udp6_output.c
+++ b/sys/netinet6/udp6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp6_output.c,v 1.24 2014/04/09 08:44:08 chrisz Exp $ */
+/* $OpenBSD: udp6_output.c,v 1.25 2014/04/14 09:06:42 mpi Exp $ */
/* $KAME: udp6_output.c,v 1.21 2001/02/07 11:51:54 itojun Exp $ */
/*
@@ -239,8 +239,8 @@ udp6_output(struct inpcb *in6p, struct mbuf *m, struct mbuf *addr6,
udpstat.udps_opackets++;
- /* force routing domain */
- m->m_pkthdr.rdomain = in6p->inp_rtableid;
+ /* force routing table */
+ m->m_pkthdr.ph_rtableid = in6p->inp_rtableid;
error = ip6_output(m, optp, &in6p->inp_route6,
flags, in6p->inp_moptions6, NULL, in6p);