Lines Matching defs:filterp
557 #define ICMP6_FILTER_SETPASSALL(filterp) \
560 p = (u_char *)filterp; \
564 #define ICMP6_FILTER_SETBLOCKALL(filterp) \
565 bzero(filterp, sizeof(struct icmp6_filter))
567 #define ICMP6_FILTER_SETPASSALL(filterp) \
568 memset(filterp, 0xff, sizeof(struct icmp6_filter))
569 #define ICMP6_FILTER_SETBLOCKALL(filterp) \
570 memset(filterp, 0x00, sizeof(struct icmp6_filter))
573 #define ICMP6_FILTER_SETPASS(type, filterp) \
574 (((filterp)->icmp6_filt[(type) >> 5]) |= (1 << ((type) & 31)))
575 #define ICMP6_FILTER_SETBLOCK(type, filterp) \
576 (((filterp)->icmp6_filt[(type) >> 5]) &= ~(1 << ((type) & 31)))
577 #define ICMP6_FILTER_WILLPASS(type, filterp) \
578 ((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) != 0)
579 #define ICMP6_FILTER_WILLBLOCK(type, filterp) \
580 ((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) == 0)