Searched refs:num_new (Results 1 – 4 of 4) sorted by relevance
/external/iproute2/tc/ |
D | m_xt_old.c | 92 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()
|
D | m_ipt.c | 178 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/ |
D | iptables.c | 1119 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()
|
D | ip6tables.c | 1087 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()
|