Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/ip_fw2.c
Show First 20 Lines • Show All 751 Lines • ▼ Show 20 Lines | #endif | ||||
return (m); | return (m); | ||||
} | } | ||||
#ifdef INET6 | #ifdef INET6 | ||||
/* | /* | ||||
* ipv6 specific rules here... | * ipv6 specific rules here... | ||||
*/ | */ | ||||
static __inline int | static __inline int | ||||
icmp6type_match (int type, ipfw_insn_u32 *cmd) | icmp6type_match(int type, ipfw_insn_u32 *cmd) | ||||
{ | { | ||||
return (type <= ICMP6_MAXTYPE && (cmd->d[type/32] & (1<<(type%32)) ) ); | return (type <= ICMP6_MAXTYPE && (cmd->d[type/32] & (1<<(type%32)) ) ); | ||||
} | } | ||||
static int | static int | ||||
flow6id_match( int curr_flow, ipfw_insn_u32 *cmd ) | flow6id_match(int curr_flow, ipfw_insn_u32 *cmd) | ||||
{ | { | ||||
int i; | int i; | ||||
for (i=0; i <= cmd->o.arg1; ++i ) | for (i=0; i <= cmd->o.arg1; ++i) | ||||
if (curr_flow == cmd->d[i] ) | if (curr_flow == cmd->d[i]) | ||||
return 1; | return 1; | ||||
return 0; | return 0; | ||||
} | } | ||||
/* support for IP6_*_ME opcodes */ | /* support for IP6_*_ME opcodes */ | ||||
static const struct in6_addr lla_mask = {{{ | static const struct in6_addr lla_mask = {{{ | ||||
0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, | 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, | ||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | ||||
▲ Show 20 Lines • Show All 2,798 Lines • Show Last 20 Lines |