Skip to contentSkip to conversation

xt_gateway 20070605 (kernel)

DISCUSSION Amin Azez 2 participants 2 messages Jun 6, 2007 netfilter

lore
Share & tools
lore

Amin Azez

author
#0 lore raw

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->tbl is always != NULL and the neighbour table family is always AF_INET since the match is only registered for AF_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.

#1 lore raw
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.