Home
last modified time | relevance | path

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

/external/iproute2/tc/
Dm_xt_old.c97 unsigned int num_old, num_new, i; in merge_options() local
100 for (num_new = 0; newopts[num_new].name; num_new++) ; in merge_options()
104 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); in merge_options()
106 for (i = 0; i < num_new; i++) { in merge_options()
110 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/iptables/
Dxtoptions.c77 unsigned int num_orig, num_old = 0, num_new, i; in xtables_options_xfrm() local
87 for (num_new = 0; entry[num_new].name != NULL; ++num_new) in xtables_options_xfrm()
97 merge = malloc(sizeof(*mp) * (num_orig + num_old + num_new + 1)); in xtables_options_xfrm()
109 for (i = 0; i < num_new; ++i, ++mp, ++entry) { in xtables_options_xfrm()
Dxtables.c99 unsigned int num_oold = 0, num_old = 0, num_new = 0, i; in xtables_merge_options() local
108 for (num_new = 0; newopts[num_new].name; num_new++) ; in xtables_merge_options()
117 merge = malloc(sizeof(*mp) * (num_oold + num_old + num_new + 1)); in xtables_merge_options()
128 memcpy(mp, newopts, sizeof(*mp) * num_new); in xtables_merge_options()
130 for (i = 0; i < num_new; ++i, ++mp) in xtables_merge_options()