summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-04-04 18:30:16 +0000
committerandre <andre@FreeBSD.org>2007-04-04 18:30:16 +0000
commit82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a (patch)
tree1d4432978d2e00193184fb3fccddc60f806f7c99 /sys/netinet/in_pcb.h
parent32bf13d188a94af41934893197c8efe4486d9b15 (diff)
downloadFreeBSD-src-82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a.zip
FreeBSD-src-82cdcabbd175ee88a1f8ed9d5aa090cf4b00e96a.tar.gz
Add INP_INFO_UNLOCK_ASSERT() and use it in tcp_input(). Also add some
further INP_INFO_WLOCK_ASSERT() while there.
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index f2388fb..0de251a 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -260,6 +260,9 @@ struct inpcbinfo { /* XXX documentation, prefixes */
mtx_assert(&(ipi)->ipi_mtx, MA_OWNED); \
NET_ASSERT_GIANT(); \
} while (0)
+#define INP_INFO_UNLOCK_ASSERT(ipi) do { \
+ mtx_assert(&(ipi)->ipi_mtx, MA_NOTOWNED); \
+} while (0)
#define INP_PCBHASH(faddr, lport, fport, mask) \
(((faddr) ^ ((faddr) >> 16) ^ ntohs((lport) ^ (fport))) & (mask))
OpenPOWER on IntegriCloud