* A function to fill simple commands of size 1. * Existing flags are preserved. */
| 3554 | * Existing flags are preserved. |
| 3555 | */ |
| 3556 | static void |
| 3557 | fill_cmd(ipfw_insn *cmd, enum ipfw_opcodes opcode, int flags, uint16_t arg) |
| 3558 | { |
| 3559 | cmd->opcode = opcode; |
| 3560 | cmd->len = ((cmd->len | flags) & (F_NOT | F_OR)) | 1; |
| 3561 | cmd->arg1 = arg; |
| 3562 | } |
| 3563 | |
| 3564 | /* |
| 3565 | * Fetch and add the MAC address and type, with masks. This generates one or |
no outgoing calls
no test coverage detected