diff options
author | 2014-04-14 09:06:41 +0000 | |
---|---|---|
committer | 2014-04-14 09:06:41 +0000 | |
commit | 5ee8afe39a770ad61ead39a141e8c19b968b0fdd (patch) | |
tree | b87e5dc2add33e729fcb6ee0ec810283a367bb96 /sys/netinet6/raw_ip6.c | |
parent | Sync the list of man pages with doc/crypto and doc/ssl. MLINKS will (diff) | |
download | wireguard-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/netinet6/raw_ip6.c')
-rw-r--r-- | sys/netinet6/raw_ip6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 93fe8a8b342..36ccd5afa5b 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip6.c,v 1.64 2014/01/08 22:38:29 bluhm Exp $ */ +/* $OpenBSD: raw_ip6.c,v 1.65 2014/04/14 09:06:42 mpi Exp $ */ /* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */ /* @@ -468,8 +468,8 @@ rip6_output(struct mbuf *m, ...) if (in6p->inp_flags & IN6P_MINMTU) flags |= IPV6_MINMTU; - /* 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, &oifp, in6p); |