ipip_var.h (252028) | ipip_var.h (253081) |
---|---|
1/* $FreeBSD: head/sys/netipsec/ipip_var.h 252028 2013-06-20 11:44:16Z ae $ */ | 1/* $FreeBSD: head/sys/netipsec/ipip_var.h 253081 2013-07-09 09:32:06Z ae $ */ |
2/* $OpenBSD: ip_ipip.h,v 1.5 2002/06/09 16:26:10 itojun Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis 9 * for BSD/OS in Athens, Greece, in November 1995. --- 29 unchanged lines hidden (view full) --- 39#ifndef _NETINET_IPIP_H_ 40#define _NETINET_IPIP_H_ 41 42/* 43 * IP-inside-IP processing. 44 * Not quite all the functionality of RFC-1853, but the main idea is there. 45 */ 46 | 2/* $OpenBSD: ip_ipip.h,v 1.5 2002/06/09 16:26:10 itojun Exp $ */ 3/*- 4 * The authors of this code are John Ioannidis (ji@tla.org), 5 * Angelos D. Keromytis (kermit@csd.uch.gr) and 6 * Niels Provos (provos@physnet.uni-hamburg.de). 7 * 8 * The original version of this code was written by John Ioannidis 9 * for BSD/OS in Athens, Greece, in November 1995. --- 29 unchanged lines hidden (view full) --- 39#ifndef _NETINET_IPIP_H_ 40#define _NETINET_IPIP_H_ 41 42/* 43 * IP-inside-IP processing. 44 * Not quite all the functionality of RFC-1853, but the main idea is there. 45 */ 46 |
47struct ipipstat 48{ 49 u_int32_t ipips_ipackets; /* total input packets */ 50 u_int32_t ipips_opackets; /* total output packets */ 51 u_int32_t ipips_hdrops; /* packet shorter than header shows */ 52 u_int32_t ipips_qfull; 53 u_int64_t ipips_ibytes; 54 u_int64_t ipips_obytes; 55 u_int32_t ipips_pdrops; /* packet dropped due to policy */ 56 u_int32_t ipips_spoof; /* IP spoofing attempts */ 57 u_int32_t ipips_family; /* Protocol family mismatch */ 58 u_int32_t ipips_unspec; /* Missing tunnel endpoint address */ | 47struct ipipstat { 48 uint64_t ipips_ipackets; /* total input packets */ 49 uint64_t ipips_opackets; /* total output packets */ 50 uint64_t ipips_hdrops; /* packet shorter than header shows */ 51 uint64_t ipips_qfull; 52 uint64_t ipips_ibytes; 53 uint64_t ipips_obytes; 54 uint64_t ipips_pdrops; /* packet dropped due to policy */ 55 uint64_t ipips_spoof; /* IP spoofing attempts */ 56 uint64_t ipips_family; /* Protocol family mismatch */ 57 uint64_t ipips_unspec; /* Missing tunnel endpoint address */ |
59}; 60 61#ifdef _KERNEL 62VNET_DECLARE(int, ipip_allow); 63VNET_DECLARE(struct ipipstat, ipipstat); 64 65#define IPIPSTAT_ADD(name, val) V_ipipstat.name += (val) 66#define IPIPSTAT_INC(name) IPIPSTAT_ADD(name, 1) 67#define V_ipip_allow VNET(ipip_allow) 68#define V_ipipstat VNET(ipipstat) 69#endif /* _KERNEL */ 70#endif /* _NETINET_IPIP_H_ */ | 58}; 59 60#ifdef _KERNEL 61VNET_DECLARE(int, ipip_allow); 62VNET_DECLARE(struct ipipstat, ipipstat); 63 64#define IPIPSTAT_ADD(name, val) V_ipipstat.name += (val) 65#define IPIPSTAT_INC(name) IPIPSTAT_ADD(name, 1) 66#define V_ipip_allow VNET(ipip_allow) 67#define V_ipipstat VNET(ipipstat) 68#endif /* _KERNEL */ 69#endif /* _NETINET_IPIP_H_ */ |