Home
last modified time | relevance | path

Searched refs:num_new (Results 1 – 4 of 4) sorted by relevance

/external/iproute2/tc/
Dm_xt_old.c92 unsigned int num_old, num_new, i; in merge_options() local
95 for (num_new = 0; newopts[num_new].name; num_new++) ; in merge_options()
99 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); in merge_options()
101 for (i = 0; i < num_new; i++) { in merge_options()
105 memset(merge + num_old + num_new, 0, sizeof (struct option)); in merge_options()
Dm_ipt.c178 unsigned int num_old, num_new, i; in merge_options() local
181 for (num_new = 0; newopts[num_new].name; num_new++) ; in merge_options()
185 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); in merge_options()
187 for (i = 0; i < num_new; i++) { in merge_options()
191 memset(merge + num_old + num_new, 0, sizeof (struct option)); in merge_options()
/external/iptables/
Diptables.c1119 unsigned int num_old, num_new, i; in merge_options() local
1123 for (num_new = 0; newopts[num_new].name; num_new++); in merge_options()
1128 merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); in merge_options()
1131 for (i = 0; i < num_new; i++) { in merge_options()
1135 memset(merge + num_old + num_new, 0, sizeof(struct option)); in merge_options()
Dip6tables.c1087 unsigned int num_old, num_new, i; in merge_options() local
1091 for (num_new = 0; newopts[num_new].name; num_new++); in merge_options()
1096 merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); in merge_options()
1099 for (i = 0; i < num_new; i++) { in merge_options()
1103 memset(merge + num_old + num_new, 0, sizeof(struct option)); in merge_options()