diff options
author | 1998-01-06 01:38:35 +0000 | |
---|---|---|
committer | 1998-01-06 01:38:35 +0000 | |
commit | 7e6461948e94b048c5213145bc0d2458593b8883 (patch) | |
tree | 1b0508c6b02c86949c0bf28d0a4584e3abc3686e /sys/netinet/icmp_var.h | |
parent | Correct the return value of ReportProtStatus() ("show proto"). (diff) | |
download | wireguard-openbsd-7e6461948e94b048c5213145bc0d2458593b8883.tar.xz wireguard-openbsd-7e6461948e94b048c5213145bc0d2458593b8883.zip |
net.inet.icmp.bmcastecho: do not smurf to smurfing broadcast packets
Diffstat (limited to 'sys/netinet/icmp_var.h')
-rw-r--r-- | sys/netinet/icmp_var.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h index 42e34bac175..b955a464d28 100644 --- a/sys/netinet/icmp_var.h +++ b/sys/netinet/icmp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp_var.h,v 1.3 1997/08/26 20:02:30 deraadt Exp $ */ +/* $OpenBSD: icmp_var.h,v 1.4 1998/01/06 01:38:35 deraadt Exp $ */ /* $NetBSD: icmp_var.h,v 1.8 1995/03/26 20:32:19 jtc Exp $ */ /* @@ -52,6 +52,7 @@ struct icmpstat { u_long icps_checksum; /* bad checksum */ u_long icps_badlen; /* calculated bound mismatch */ u_long icps_reflect; /* number of responses */ + u_long icps_bmcastecho; /* rejected broadcast icmps */ u_long icps_inhist[ICMP_MAXTYPE + 1]; }; @@ -59,11 +60,13 @@ struct icmpstat { * Names for ICMP sysctl objects */ #define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */ -#define ICMPCTL_MAXID 2 +#define ICMPCTL_BMCASTECHO 2 /* reply to icmps to broadcast/mcast */ +#define ICMPCTL_MAXID 3 #define ICMPCTL_NAMES { \ { 0, 0 }, \ { "maskrepl", CTLTYPE_INT }, \ + { "bmcastecho", CTLTYPE_INT }, \ } #ifdef _KERNEL |