search for: new_cached_pkt

Displaying 1 result from an estimated 1 matches for "new_cached_pkt".

Did you mean: new_cached_pkts
2012 Oct 03
1
[PATCH] pxedump.c32: Simple PXE cached packet dumping
...+ char v[countof(ipaddr_str_template)]; + }; + +struct cached_pkt { + void * buffer; + size_t len; + }; + +struct cached_pkts { + struct cached_pkt pkt[cached_pkt_count]; + }; + +static const struct ipaddr_str new_ipaddr_str = { ipaddr_str_template }; +static const struct cached_pkt new_cached_pkt = { 0 }; +static const struct cached_pkts new_cached_pkts = { { { 0 } } }; + +int main(int argc, char ** argv) { + struct cached_pkts cached_pkts; + + console_ansi_raw(); + + /* Only --cached supported for now */ + if (argc != 2 || strcmp(argv[1], "--cached")) { + print...