MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fill_cmd

Function fill_cmd

tools/ipfw/ipfw2.c:3556–3562  ·  view source on GitHub ↗

* A function to fill simple commands of size 1. * Existing flags are preserved. */

Source from the content-addressed store, hash-verified

3554 * Existing flags are preserved.
3555 */
3556static void
3557fill_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

Callers 4

add_proto0Function · 0.70
add_protoFunction · 0.70
add_proto_compatFunction · 0.70
compile_ruleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected