Re: [PATCH net-next v3 03/10] net: pktgen: fix hex32_arg parsing for short reads

2025-02-04 Thread Simon Horman
On Mon, Feb 03, 2025 at 06:01:54PM +0100, Peter Seiderer wrote: > Fix hex32_arg parsing for short reads (here 7 hex digits instead of the > expected 8), shift result only on successful input parsing. > > - before the patch > > $ echo "mpls 123" > /proc/net/pktgen/lo\@0 > $ grep mp

[PATCH net-next v3 03/10] net: pktgen: fix hex32_arg parsing for short reads

2025-02-03 Thread Peter Seiderer
Fix hex32_arg parsing for short reads (here 7 hex digits instead of the expected 8), shift result only on successful input parsing. - before the patch $ echo "mpls 123" > /proc/net/pktgen/lo\@0 $ grep mpls /proc/net/pktgen/lo\@0 mpls: 1230 Result: OK: