Re: ipporthash, ipportiphash, ipportnethash problems

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

 





Is this deliberate or a bug?

It's deliberate.

The numbers are treated as modulo 256.

30,000 / 256 = 117.1875
.1875 * 256 = 48

Thus the whole number parts become segments of the quad: 117.48
Right, thanks for clearing that out - I now know how to convert my ip-to-country numbers to IP addresses ;-)
--
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