Re: [PATCH 1/2] New netfilter target to trigger LED devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does this mean I can remove those whole three lines?  Or do I still need to
check the value of "invert" and complain if it's specified?

You still need to check for it. If you grep for P_NO_INVERT in all .c
files you will find the shortest possible line to do so.

Ah ok, that makes sense.  On a related note, am I doing something wrong
here?  Even when I'm not listing my target explicitly, I can get an odd
error:

$ iptables -A INPUT -j ACCEPT --test
iptables v1.4.2: Unknown arg `(null)'

Even if the compiler could not, you could use sizeof("foo")-1 to get "3".
That is a property of the C language.

Ha, been programming in it for years and never thought of doing that :-)

Maybe I should only allow alphanumerics and basic punctuation?

I thought about that - but I have come to the conclusion that most
character should be allowed so that people can use all the
extended characters like CJK.

So if I switch to using double-quotes then, is there anything else I'll
need to escape? (such as '$')

That's fine, I've never used whatever that markup is before
(I don't even know what it's called...!)

Read the PDF to the end and you will find out ;-)

Ah, I see now :-)  That's a very useful and well written PDF too, btw.

Cheers,
Adam.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux