| 3714 | }; |
| 3715 | |
| 3716 | static ipfw_insn * |
| 3717 | add_ports(ipfw_insn *cmd, char *av, u_char proto, int opcode, int cblen) |
| 3718 | { |
| 3719 | |
| 3720 | if (match_token(f_reserved_keywords, av) != -1) |
| 3721 | return (NULL); |
| 3722 | |
| 3723 | if (fill_newports((ipfw_insn_u16 *)cmd, av, proto, cblen)) { |
| 3724 | /* XXX todo: check that we have a protocol with ports */ |
| 3725 | cmd->opcode = opcode; |
| 3726 | return cmd; |
| 3727 | } |
| 3728 | return NULL; |
| 3729 | } |
| 3730 | |
| 3731 | static ipfw_insn * |
| 3732 | add_src(ipfw_insn *cmd, char *av, u_char proto, int cblen, struct tidx *tstate) |
no test coverage detected