Thread (1 message) 1 message, 1 author, 2021-08-02

Re: [PATCH net-next] pktgen: Fix invalid clone_skb override

From: Nicholas Richardson <hidden>
Date: 2021-08-02 17:09:30

When a user passes a negative value for clone_skb, the num_args() function stops parsing at the first nonnumeric value. This makes it impossible for clone_skb to be set to a negative value. For example: "clone_skb -200" would stop parsing at the first char ('-') and return zero for the new clone_skb value.

So to answer your question: No clone_skb cannot be negative.

Apologies for the email format errors and thanks for the quick reply!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help