Home | History | Annotate | Download | only in ip

Lines Matching refs:fp

88 	FILE *fp = fopen("/proc/net/dev_mcast", "r");
90 if (!fp)
93 while (fgets(buf, sizeof(buf), fp)) {
119 fclose(fp);
126 FILE *fp = fopen("/proc/net/igmp", "r");
128 if (!fp)
131 fgets(buf, sizeof(buf), fp);
137 while (fgets(buf, sizeof(buf), fp)) {
154 fclose(fp);
161 FILE *fp = fopen("/proc/net/igmp6", "r");
163 if (!fp)
166 while (fgets(buf, sizeof(buf), fp)) {
190 fclose(fp);
193 static void print_maddr(FILE *fp, struct ma_info *list)
195 fprintf(fp, "\t");
199 fprintf(fp, "link %s", ll_addr_n2a((unsigned char*)list->addr.data,
206 fprintf(fp, "inet ");
209 fprintf(fp, "inet6 ");
212 fprintf(fp, "family %d ", list->addr.family);
215 fprintf(fp, "%s",
222 fprintf(fp, " users %d", list->users);
224 fprintf(fp, " %s", list->features);
225 fprintf(fp, "\n");
228 static void print_mlist(FILE *fp, struct ma_info *list)
235 fprintf(fp, "%d:\t%s%s", cur_index, list->name, _SL_);
238 fprintf(fp, "%d:\t%s\n", cur_index, list->name);
240 print_maddr(fp, list);