diff options
| author | 1999-11-04 11:24:23 +0000 | |
|---|---|---|
| committer | 1999-11-04 11:24:23 +0000 | |
| commit | dbce8c1069e5b04b6313f450b8deb4c777f21d49 (patch) | |
| tree | 4ffb146e0ba74fa813f482d2c7a493cb50392945 /sys/netinet/udp_usrreq.c | |
| parent | gettdb() should be at spltdb(). (diff) | |
| download | wireguard-openbsd-dbce8c1069e5b04b6313f450b8deb4c777f21d49.tar.xz wireguard-openbsd-dbce8c1069e5b04b6313f450b8deb4c777f21d49.zip | |
Add comment about gettdb() and spl level.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index d57e3faf7b3..644cecc7f98 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.27 1999/09/23 07:20:35 deraadt Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.28 1999/11/04 11:24:24 ho Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -163,6 +163,8 @@ udp_input(m, va_alist) /* Save the last SA which was used to process the mbuf */ if ((m->m_flags & (M_CONF|M_AUTH)) && m->m_pkthdr.tdbi) { struct tdb_ident *tdbi = m->m_pkthdr.tdbi; + /* XXX gettdb() should really be called at spltdb(). */ + /* XXX this is splsoftnet(), currently they are the same. */ tdb = gettdb(tdbi->spi, &tdbi->dst, tdbi->proto); free(m->m_pkthdr.tdbi, M_TEMP); m->m_pkthdr.tdbi = NULL; |
