Lines Matching refs:resp
84 static void flow_cache_print(struct ngnf_show_header *resp);
85 static void flow_cache_print_verbose(struct ngnf_show_header *resp);
88 static void flow_cache_print6(struct ngnf_show_header *resp);
89 static void flow_cache_print6_verbose(struct ngnf_show_header *resp);
224 struct ngnf_show_header req, *resp; in do_show() local
246 resp = (struct ngnf_show_header *)ng_mesg->data; in do_show()
247 if ((ng_mesg->header.arglen < (sizeof(*resp))) || in do_show()
248 (ng_mesg->header.arglen < (sizeof(*resp) + in do_show()
249 (resp->nentries * sizeof(struct flow_entry_data))))) in do_show()
252 (*func)(resp); in do_show()
254 if (resp->hash_id != 0) in do_show()
255 req.hash_id = resp->hash_id; in do_show()
258 req.list_id = resp->list_id; in do_show()
265 flow_cache_print(struct ngnf_show_header *resp) in flow_cache_print() argument
272 if (resp->version != 4) in flow_cache_print()
274 __func__, resp->version); in flow_cache_print()
276 if (resp->nentries > 0) in flow_cache_print()
279 fle = (struct flow_entry_data *)(resp + 1); in flow_cache_print()
280 for (i = 0; i < resp->nentries; i++, fle++) { in flow_cache_print()
299 flow_cache_print6(struct ngnf_show_header *resp) in flow_cache_print6() argument
306 if (resp->version != 6) in flow_cache_print6()
308 __func__, resp->version); in flow_cache_print6()
310 if (resp->nentries > 0) in flow_cache_print6()
313 fle6 = (struct flow6_entry_data *)(resp + 1); in flow_cache_print6()
314 for (i = 0; i < resp->nentries; i++, fle6++) { in flow_cache_print6()
333 flow_cache_print_verbose(struct ngnf_show_header *resp) in flow_cache_print_verbose() argument
340 if (resp->version != 4) in flow_cache_print_verbose()
342 __func__, resp->version); in flow_cache_print_verbose()
346 fle = (struct flow_entry_data *)(resp + 1); in flow_cache_print_verbose()
347 for (i = 0; i < resp->nentries; i++, fle++) { in flow_cache_print_verbose()
376 flow_cache_print6_verbose(struct ngnf_show_header *resp) in flow_cache_print6_verbose() argument
383 if (resp->version != 6) in flow_cache_print6_verbose()
385 __func__, resp->version); in flow_cache_print6_verbose()
389 fle6 = (struct flow6_entry_data *)(resp + 1); in flow_cache_print6_verbose()
390 for (i = 0; i < resp->nentries; i++, fle6++) { in flow_cache_print6_verbose()