Home
last modified time | relevance | path

Searched refs:string_to_number (Results 1 – 25 of 36) sorted by relevance

12

/external/iptables/extensions/
Dlibipt_2ttl.c38 if (string_to_number(optarg, 0, 255, &value) == -1) in parse()
51 if (string_to_number(optarg, 0, 255, &value) == -1) in parse()
63 if (string_to_number(optarg, 0, 255, &value) == -1) in parse()
Dlibipt_hashlimit.c173 if (string_to_number(optarg, 0, 10000, &num) == -1) in parse()
181 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
189 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
197 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
207 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
Dlibip6t_hashlimit.c173 if (string_to_number(optarg, 0, 10000, &num) == -1) in parse()
181 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
189 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
197 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
207 if (string_to_number(optarg, 0, 0xffffffff, &num) == -1) in parse()
Dlibipt_ECN.c71 if (string_to_number(optarg, 0, 1, &result)) in parse()
82 if (string_to_number(optarg, 0, 1, &result)) in parse()
93 if (string_to_number(optarg, 0, 3, &result)) in parse()
Dlibipt_CLUSTERIP.c133 if (string_to_number(optarg, 1, CLUSTERIP_MAX_NODES, &num) < 0) in parse()
143 if (string_to_number(optarg, 1, CLUSTERIP_MAX_NODES, &num) < 0) in parse()
154 if (string_to_number(optarg, 0, UINT_MAX, &num) < 0) in parse()
Dlibipt_statistic.c74 if (string_to_number(optarg, 0, 0xFFFFFFFF, in parse()
86 if (string_to_number(optarg, 0, 0xFFFFFFFF, in parse()
Dlibipt_icmp.c153 if (string_to_number(buffer, 0, 255, &number) == -1) in parse_icmp()
158 if (string_to_number(slash+1, 0, 255, &number) == -1) in parse_icmp()
Dlibip6t_icmp6.c129 if (string_to_number(buffer, 0, 255, &number) == -1) in parse_icmpv6()
134 if (string_to_number(slash+1, 0, 255, &number) == -1) in parse_icmpv6()
Dlibip6t_NFQUEUE.c40 if (string_to_number(s, 0, 65535, &num) == -1) in parse_num()
Dlibipt_NFQUEUE.c40 if (string_to_number(s, 0, 65535, &num) == -1) in parse_num()
Dlibipt_TCPMSS.c59 if (string_to_number(optarg, 0, 65535 - 40, &mssval) == -1) in parse()
Dlibip6t_TCPMSS.c59 if (string_to_number(optarg, 0, 65535 - 60, &mssval) == -1) in parse()
Dlibip6t_HL.c53 if (string_to_number(optarg, 0, 255, &value) == -1) in parse()
Dlibipt_DSCP.c56 if (string_to_number(s, 0, 255, &dscp) == -1) in parse_dscp()
Dlibipt_TTL.c53 if (string_to_number(optarg, 0, 255, &value) == -1) in parse()
Dlibipt_2dscp.c53 if (string_to_number(s, 0, 255, &dscp) == -1) in parse_dscp()
Dlibip6t_length.c35 if (string_to_number(s, 0, 0xFFFF, &len) == -1) in parse_length()
Dlibipt_length.c33 if (string_to_number(s, 0, 0xFFFF, &len) == -1) in parse_length()
Dlibipt_2tcpmss.c32 if (string_to_number(mssvalue, 0, 65535, &mssvaluenum) != -1) in parse_tcp_mssvalue()
Dlibipt_TOS.c66 if (string_to_number(s, 0, 255, &tos) != -1) { in parse_tos()
Dlibipt_2tos.c56 if (string_to_number(s, 0, 255, &tos) != -1) { in parse_tos()
/external/iproute2/include/
Diptables_common.h18 extern int string_to_number(const char *,
/external/iptables/include/
Diptables_common.h18 extern int string_to_number(const char *,
/external/iproute2/tc/
Dm_ipt.c152 int string_to_number(const char *s, unsigned int min, unsigned int max, in string_to_number() function
330 if (string_to_number(p, 0, 255, &onebyte) == -1) in dotted_to_addr()
338 if (string_to_number(p, 0, 255, &onebyte) == -1) in dotted_to_addr()
/external/iptables/
Diptables.c272 if ((string_to_number(port, 0, 65535, &portnum)) != -1 || in parse_port()
305 if (string_to_number(p, 0, 255, &onebyte) == -1) in __dotted_to_addr()
318 if (string_to_number(p, 0, 255, &onebyte) == -1) in __dotted_to_addr()
326 if (string_to_number(p, 0, 255, &onebyte) == -1) in __dotted_to_addr()
685 if (string_to_number(mask, 0, 32, &bits) == -1) in parse_mask()
815 if (string_to_number(pname, 0, 255, &proto) != -1) { in find_proto()
831 if (string_to_number(s, 0, 255, &proto) == -1) { in parse_protocol()
906 if (string_to_number(rule, 1, INT_MAX, &rulenum) == -1) in parse_rulenumber()
1027 int string_to_number(const char *s, unsigned int min, unsigned int max, in string_to_number() function

12