Home | History | Annotate | Download | only in extensions

Lines Matching refs:mac

1 /* Shared library add-on to iptables to add MAC address support. */
20 "MAC v%s options:\n"
21 " --mac-source [!] XX:XX:XX:XX:XX:XX\n"
22 " Match source MAC address\n"
27 { "mac-source", 1, 0, '1' },
32 parse_mac(const char *mac, struct ipt_mac_info *info)
36 if (strlen(mac) != ETH_ALEN*3-1)
37 exit_error(PARAMETER_PROBLEM, "Bad mac address `%s'", mac);
43 number = strtol(mac + i*3, &end, 16);
45 if (end == mac + i*3 + 2
51 "Bad mac address `%s'", mac);
91 /* Final check; must have specified --mac. */
96 "You must specify `--mac-source'");
105 printf("MAC ");
119 printf("--mac-source ");
123 static struct iptables_match mac = {
125 .name = "mac",
139 register_match(&mac);