Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/netinet Pull up revision 1.53 (via patch, requested...



details:   https://anonhg.NetBSD.org/src/rev/0d31d08189d0
branches:  netbsd-1-5
changeset: 491338:0d31d08189d0
user:      he <he%NetBSD.org@localhost>
date:      Tue Apr 24 22:21:35 2001 +0000

description:
Pull up revision 1.53 (via patch, requested by itojun):
  Introduce net.inet.ip.maxfragpackets, which controls the maximum
  number of IPv4 fragment reassembly queue entries.  Defends against
  certain DoS attacks.

diffstat:

 sys/netinet/in.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r b36ca60d9800 -r 0d31d08189d0 sys/netinet/in.h
--- a/sys/netinet/in.h  Tue Apr 24 22:21:20 2001 +0000
+++ b/sys/netinet/in.h  Tue Apr 24 22:21:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in.h,v 1.47.4.1 2000/08/26 16:38:32 tron Exp $ */
+/*     $NetBSD: in.h,v 1.47.4.2 2001/04/24 22:21:35 he Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -347,7 +347,8 @@
 #define IPCTL_GIF_TTL         15       /* default TTL for gif encap packet */
 #define IPCTL_LOWPORTMIN       16      /* minimum reserved port */
 #define IPCTL_LOWPORTMAX       17      /* maximum reserved port */
-#define        IPCTL_MAXID            18
+#define IPCTL_MAXFRAGPACKETS   18      /* max packets in reassembly queue */
+#define        IPCTL_MAXID            19
 
 #define        IPCTL_NAMES { \
        { 0, 0 }, \
@@ -368,6 +369,7 @@
        { "gifttl", CTLTYPE_INT }, \
        { "lowportmin", CTLTYPE_INT }, \
        { "lowportmax", CTLTYPE_INT }, \
+       { "maxfragpackets", CTLTYPE_INT }, \
 }
 #endif /* !_XOPEN_SOURCE */
 



Home | Main Index | Thread Index | Old Index