diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-16 16:49:43 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-08-16 16:49:43 +0000 |
commit | a0def382b3ed9d07eeac89ce637ae40333ed75be (patch) | |
tree | 66d7e1ef7bed2a9fb224f01bc83b0a164681eefe | |
parent | 7119c1eca561749e9c03ab6fafecce9305466aab (diff) |
Allow DEFBADDYNAMICPORTS_TCP and DEFBADDYNAMICPORTS_UDP to be
overridden via kernel config file.
-rw-r--r-- | sys/netinet/in_pcb.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 8934fc45d30..9e02a68dddd 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.h,v 1.5 1997/08/09 23:36:25 millert Exp $ */ +/* $OpenBSD: in_pcb.h,v 1.6 1997/08/16 16:49:42 millert Exp $ */ /* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */ /* @@ -94,8 +94,12 @@ struct inpcbtable { #define DP_ISSET(m, p) ((m)[((p) - IPPORT_RESERVED/2) / DP_MAPBITS] & (1 << ((p) % DP_MAPBITS))) /* default values for baddynamicports [see ip_init()] */ +#ifndef DEFBADDYNAMICPORTS_TCP #define DEFBADDYNAMICPORTS_TCP { 749, 750, 751, 760, 761, 871, 0 } +#endif +#ifndef DEFBADDYNAMICPORTS_UDP #define DEFBADDYNAMICPORTS_UDP { 750, 751, 0 } +#endif struct baddynamicports { u_int32_t tcp[DP_MAPSIZE]; |