ipfw: style(9) fixes
Submitted by: Neel Chauhan <neel AT neelc DOT org> Reviewed by: emaste, glebius MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26126
This commit is contained in:
parent
0f2c2c1c58
commit
5e79303ba1
@ -757,17 +757,17 @@ ipfw_send_pkt(struct mbuf *replyto, struct ipfw_flow_id *id, u_int32_t seq,
|
||||
* ipv6 specific rules here...
|
||||
*/
|
||||
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)) ) );
|
||||
}
|
||||
|
||||
static int
|
||||
flow6id_match( int curr_flow, ipfw_insn_u32 *cmd )
|
||||
flow6id_match(int curr_flow, ipfw_insn_u32 *cmd)
|
||||
{
|
||||
int i;
|
||||
for (i=0; i <= cmd->o.arg1; ++i )
|
||||
if (curr_flow == cmd->d[i] )
|
||||
for (i=0; i <= cmd->o.arg1; ++i)
|
||||
if (curr_flow == cmd->d[i])
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user