xt_gateway 20070605 (kernel)
So is it necessary to resubmit the kernel patch with the un-necessary matches turned into explanatory comments?
Sam
-----Original Message-----
From: "Patrick McHardy" <[email protected]>
To: "Jan Engelhardt" <[email protected]>
Cc: "Netfilter Developer Mailing List" <[email protected]>; "Amin Azez" <[email protected]>
Sent: 06/06/07 12:31
Subject: Re: xt_gateway 20070605 (kernel)
Quoted 11 lines · Jan Engelhardt
Quoted 4 lines · Patrick McHardy
Most of the checks here are unnecessary anyway (we always have a skb with
skb->dst!= NULL,neigh->tblis always != NULL and the neighbour table family is alwaysAF_INETsince the match is only registered forAF_INET.Thanks for letting us now. Now, prime question: Is skb always != NULL? (Otherwise it would not really make sense calling the match if there was nothing to match.)
Yes.
Quoted 1 line · Amin Azez
So is it necessary to resubmit the kernel patch with the un-necessary matches turned into explanatory comments?
I'd call them useless comments, so please no :) No, seriously, I don't want to start that, people copy too much useless comments around already. I don't want every match to state that skb is never NULL and that its only called for AF_INET packets since it only registered for AF_INET.
Please just remove them.