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

2019-09-14 Thread Daniel T. Lee
On Fri, Sep 13, 2019 at 9:43 PM Jesper Dangaard Brouer wrote: > > On Thu, 12 Sep 2019 03:48:06 +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 p

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

2019-09-13 Thread Jesper Dangaard Brouer
On Thu, 12 Sep 2019 03:48:06 +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

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

2019-09-13 Thread Jesper Dangaard Brouer
On Fri, 13 Sep 2019 02:53:26 +0900 "Daniel T. Lee" wrote: > On Fri, Sep 13, 2019 at 12:59 AM Jesper Dangaard Brouer > wrote: > > > > On Thu, 12 Sep 2019 03:48:06 +0900 > > "Daniel T. Lee" wrote: > > > > > This commit adds CIDR parsing and IP validate helper function to parse > > > single IP

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

2019-09-12 Thread Daniel T. Lee
On Fri, Sep 13, 2019 at 12:59 AM Jesper Dangaard Brouer wrote: > > On Thu, 12 Sep 2019 03:48:06 +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) > > One question: You do know th

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

2019-09-12 Thread Jesper Dangaard Brouer
On Thu, 12 Sep 2019 03:48:06 +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) One question: You do know that this expansion of the CIDR will also include the CIDR network broadcast IP

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

2019-09-11 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 --- samples/pktgen/functions.sh | 122 +