Home
last modified time | relevance | path

Searched refs:vialen (Results 1 – 2 of 2) sorted by relevance

/external/iptables/iptables/
Dxtables-arp.c712 int vialen = strlen(arg); in parse_interface() local
718 if (vialen + 1 > IFNAMSIZ) in parse_interface()
724 if (vialen == 0) in parse_interface()
726 else if (vianame[vialen - 1] == '+') { in parse_interface()
727 memset(mask, 0xFF, vialen - 1); in parse_interface()
728 memset(mask + vialen - 1, 0, IFNAMSIZ - vialen + 1); in parse_interface()
732 memset(mask, 0xFF, vialen + 1); in parse_interface()
733 memset(mask + vialen + 1, 0, IFNAMSIZ - vialen - 1); in parse_interface()
/external/iptables/libxtables/
Dxtables.c521 unsigned int vialen = strlen(arg); in xtables_parse_interface() local
527 if (vialen + 1 > IFNAMSIZ) in xtables_parse_interface()
533 if (vialen == 0) in xtables_parse_interface()
535 else if (vianame[vialen - 1] == '+') { in xtables_parse_interface()
536 memset(mask, 0xFF, vialen - 1); in xtables_parse_interface()
540 memset(mask, 0xFF, vialen + 1); in xtables_parse_interface()