Ampersand operator in wiki

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

 



Hi,

I have a question regarding the ampersand operator as listed on the wiki at: wiki.nftables.org/wiki-nftables/index.php/Quick_reference-nftables_in_10_minutes

	ip saddr & 0xff == 1

Is this performing an AND operation with saddr and 0xff and then comparing if the result is equal to 1 ?

	ip saddr & 0.0.0.255 < 0.0.0.127

I have no idea what this expression is doing.  A rough guess would be AND operation and left-shift or is this a form of range comparison ?

Thanks,

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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux