Changeset View
Changeset View
Standalone View
Standalone View
sbin/ipfw/ipv6.c
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | fill_ip6(ipfw_insn_ip6 *cmd, char *av, int cblen, struct tidx *tstate) | ||||
* Note d[1] points to struct in6_add r mask6 of cmd | * Note d[1] points to struct in6_add r mask6 of cmd | ||||
*/ | */ | ||||
cmd->o.len &= ~F_LEN_MASK; /* zero len */ | cmd->o.len &= ~F_LEN_MASK; /* zero len */ | ||||
if (strcmp(av, "any") == 0) | if (strcmp(av, "any") == 0) | ||||
return (1); | return (1); | ||||
/* Set the data for "me" opt*/ | |||||
if (strcmp(av, "me") == 0) { /* Set the data for "me" opt*/ | if (strcmp(av, "me") == 0 || strcmp(av, "me6") == 0) { | ||||
cmd->o.len |= F_INSN_SIZE(ipfw_insn); | |||||
return (1); | |||||
} | |||||
if (strcmp(av, "me6") == 0) { /* Set the data for "me" opt*/ | |||||
cmd->o.len |= F_INSN_SIZE(ipfw_insn); | cmd->o.len |= F_INSN_SIZE(ipfw_insn); | ||||
return (1); | return (1); | ||||
} | } | ||||
if (strncmp(av, "table(", 6) == 0) { | if (strncmp(av, "table(", 6) == 0) { | ||||
fill_table(&cmd->o, av, O_IP_DST_LOOKUP, tstate); | fill_table(&cmd->o, av, O_IP_DST_LOOKUP, tstate); | ||||
return (1); | return (1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |