icmp6.h (195727) | icmp6.h (196039) |
---|---|
1/* $FreeBSD: head/sys/netinet/icmp6.h 195727 2009-07-16 21:13:04Z rwatson $ */ | 1/* $FreeBSD: head/sys/netinet/icmp6.h 196039 2009-08-02 19:43:32Z rwatson $ */ |
2/* $KAME: icmp6.h,v 1.46 2001/04/27 15:09:48 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 585 unchanged lines hidden (view full) --- 595 u_quad_t icp6s_badns; /* bad neighbor solicitation */ 596 u_quad_t icp6s_badna; /* bad neighbor advertisement */ 597 u_quad_t icp6s_badrs; /* bad router advertisement */ 598 u_quad_t icp6s_badra; /* bad router advertisement */ 599 u_quad_t icp6s_badredirect; /* bad redirect message */ 600}; 601 602#ifdef _KERNEL | 2/* $KAME: icmp6.h,v 1.46 2001/04/27 15:09:48 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 585 unchanged lines hidden (view full) --- 595 u_quad_t icp6s_badns; /* bad neighbor solicitation */ 596 u_quad_t icp6s_badna; /* bad neighbor advertisement */ 597 u_quad_t icp6s_badrs; /* bad router advertisement */ 598 u_quad_t icp6s_badra; /* bad router advertisement */ 599 u_quad_t icp6s_badredirect; /* bad redirect message */ 600}; 601 602#ifdef _KERNEL |
603/* 604 * In-kernel consumers can use these accessor macros directly to update 605 * stats. 606 */ |
|
603#define ICMP6STAT_ADD(name, val) V_icmp6stat.name += (val) 604#define ICMP6STAT_INC(name) ICMP6STAT_ADD(name, 1) | 607#define ICMP6STAT_ADD(name, val) V_icmp6stat.name += (val) 608#define ICMP6STAT_INC(name) ICMP6STAT_ADD(name, 1) |
609 610/* 611 * Kernel module consumers must use this accessor macro. 612 */ 613void kmod_icmp6stat_inc(int statnum); 614#define KMOD_ICMP6STAT_INC(name) \ 615 kmod_icmp6stat_inc(offsetof(struct icmp6stat, name) / sizeof(u_quad_t)) |
|
605#endif 606 607/* 608 * Names for ICMP sysctl objects 609 */ 610#define ICMPV6CTL_STATS 1 611#define ICMPV6CTL_REDIRACCEPT 2 /* accept/process redirects */ 612#define ICMPV6CTL_REDIRTIMEOUT 3 /* redirect cache time */ --- 119 unchanged lines hidden --- | 616#endif 617 618/* 619 * Names for ICMP sysctl objects 620 */ 621#define ICMPV6CTL_STATS 1 622#define ICMPV6CTL_REDIRACCEPT 2 /* accept/process redirects */ 623#define ICMPV6CTL_REDIRTIMEOUT 3 /* redirect cache time */ --- 119 unchanged lines hidden --- |