summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-08-19 06:29:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-08-19 06:29:51 +0000
commit88d5c2aa20783f8525f9a2836432a37a57c59ee2 (patch)
tree5f289c8f056e881db198aced2657e24463698057 /sys/netinet/in_pcb.h
parent86f039fa38efdfcf50cd5feff25beadb3d779949 (diff)
Add DP_CLR() macro
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 485c72b3fb6..a4919bca233 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.7 1997/08/19 04:54:52 millert Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.8 1997/08/19 06:29:50 millert Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -91,6 +91,7 @@ struct inpcbtable {
#define DP_MAPBITS (sizeof(u_int32_t) * NBBY)
#define DP_MAPSIZE (howmany(IPPORT_RESERVED/2, DP_MAPBITS))
#define DP_SET(m, p) ((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] |= (1 << ((p) % DP_MAPBITS)))
+#define DP_CLR(m, p) ((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] &= ~(1 << ((p) % DP_MAPBITS)))
#define DP_ISSET(m, p) ((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] & (1 << ((p) % DP_MAPBITS)))
/* default values for baddynamicports [see ip_init()] */