Lines Matching refs:resp

87 static void flow_cache_print(struct ngnf_show_header *resp);
88 static void flow_cache_print_verbose(struct ngnf_show_header *resp);
91 static void flow_cache_print6(struct ngnf_show_header *resp);
92 static void flow_cache_print6_verbose(struct ngnf_show_header *resp);
226 struct ngnf_show_header req, *resp;
249 resp = (struct ngnf_show_header *)ng_mesg->data;
250 if ((ng_mesg->header.arglen < (sizeof(*resp))) ||
251 (ng_mesg->header.arglen < (sizeof(*resp) +
252 (resp->nentries * sizeof(struct flow_entry_data)))))
255 (*func)(resp);
257 if (resp->hash_id != 0)
258 req.hash_id = resp->hash_id;
261 req.list_id = resp->list_id;
268 flow_cache_print(struct ngnf_show_header *resp)
275 if (resp->version != 4)
277 __func__, resp->version);
279 if (resp->nentries > 0)
282 fle = (struct flow_entry_data *)(resp + 1);
283 for (i = 0; i < resp->nentries; i++, fle++) {
302 flow_cache_print6(struct ngnf_show_header *resp)
309 if (resp->version != 6)
311 __func__, resp->version);
313 if (resp->nentries > 0)
316 fle6 = (struct flow6_entry_data *)(resp + 1);
317 for (i = 0; i < resp->nentries; i++, fle6++) {
336 flow_cache_print_verbose(struct ngnf_show_header *resp)
343 if (resp->version != 4)
345 __func__, resp->version);
349 fle = (struct flow_entry_data *)(resp + 1);
350 for (i = 0; i < resp->nentries; i++, fle++) {
379 flow_cache_print6_verbose(struct ngnf_show_header *resp)
386 if (resp->version != 6)
388 __func__, resp->version);
392 fle6 = (struct flow6_entry_data *)(resp + 1);
393 for (i = 0; i < resp->nentries; i++, fle6++) {