icmp_var.h (41fe50f5deab9062cdf5915541105e47679ba571) icmp_var.h (e27b0c87759d9d7a6eebca60bc82f171fbf36afc)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 43 unchanged lines hidden (view full) ---

52 u_long icps_reflect; /* number of responses */
53 u_long icps_inhist[ICMP_MAXTYPE + 1];
54 u_long icps_bmcastecho; /* b/mcast echo requests dropped */
55 u_long icps_bmcasttstamp; /* b/mcast tstamp requests dropped */
56 u_long icps_badaddr; /* bad return address */
57 u_long icps_noroute; /* no route back */
58};
59
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 43 unchanged lines hidden (view full) ---

52 u_long icps_reflect; /* number of responses */
53 u_long icps_inhist[ICMP_MAXTYPE + 1];
54 u_long icps_bmcastecho; /* b/mcast echo requests dropped */
55 u_long icps_bmcasttstamp; /* b/mcast tstamp requests dropped */
56 u_long icps_badaddr; /* bad return address */
57 u_long icps_noroute; /* no route back */
58};
59
60#ifdef _KERNEL
61#define ICMPSTAT_ADD(name, val) V_icmpstat.name += (val)
62#define ICMPSTAT_INC(name) ICMPSTAT_ADD(name, 1)
63#endif
64
60/*
61 * Names for ICMP sysctl objects
62 */
63#define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */
64#define ICMPCTL_STATS 2 /* statistics (read-only) */
65#define ICMPCTL_ICMPLIM 3
66#define ICMPCTL_MAXID 4
67

--- 24 unchanged lines hidden ---
65/*
66 * Names for ICMP sysctl objects
67 */
68#define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */
69#define ICMPCTL_STATS 2 /* statistics (read-only) */
70#define ICMPCTL_ICMPLIM 3
71#define ICMPCTL_MAXID 4
72

--- 24 unchanged lines hidden ---