Re: [v3 2/3] samples: pktgen: add helper functions for IP(v4/v6) CIDR parsing

2019-09-19 Thread Daniel T. Lee
Thanks for the feedback! How about just capturing with "Result: OK" except for 'pgctrl'? (more details are in the diff below) ~/git/linux/net$ ag -Q 'Result:' core/pktgen.c 702:seq_printf(seq, "Result: %s\n", pkt_dev->result); 704:seq_puts(seq, "Result: Idl

Re: [v3 2/3] samples: pktgen: add helper functions for IP(v4/v6) CIDR parsing

2019-09-16 Thread Toke Høiland-Jørgensen
Jesper Dangaard Brouer writes: > On Sun, 15 Sep 2019 00:13:52 +0900 > "Daniel T. Lee" wrote: > >> This commit adds CIDR parsing and IP validate helper function to parse >> single IP or range of IP with CIDR. (e.g. 198.18.0.0/15) >> >> Helpers will be used in prior to set target address in sampl

Re: [v3 2/3] samples: pktgen: add helper functions for IP(v4/v6) CIDR parsing

2019-09-15 Thread Jesper Dangaard Brouer
On Sun, 15 Sep 2019 00:13:52 +0900 "Daniel T. Lee" wrote: > This commit adds CIDR parsing and IP validate helper function to parse > single IP or range of IP with CIDR. (e.g. 198.18.0.0/15) > > Helpers will be used in prior to set target address in samples/pktgen. > > Signed-off-by: Daniel T. L

[v3 2/3] samples: pktgen: add helper functions for IP(v4/v6) CIDR parsing

2019-09-14 Thread Daniel T. Lee
This commit adds CIDR parsing and IP validate helper function to parse single IP or range of IP with CIDR. (e.g. 198.18.0.0/15) Helpers will be used in prior to set target address in samples/pktgen. Signed-off-by: Daniel T. Lee --- Changes since v3: * Set errexit option to stop script execution