Does `sys/net/radix.c` support non-contiguous masks?
Lev Serebryakov
lev at FreeBSD.org
Mon Jun 17 17:42:06 UTC 2019
I'm trying to use `sys/net/radix.c` to store flow data (proto + src
ip/port + dst ip/port) with non-contiguous masks (like "TCP from any
address/port to 192.168.134.1"). I've written very simple prototype
userland code [1] but it hangs in infinite loop on addition of second
node (!).
Is it supported?
Could somebody look at code and say, what do I do wrong?
`radix.c` API is not very well-documented…
[1] https://gist.github.com/blacklion/072537283e91d39638438c9456b29292
--
// Lev Serebryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190617/6c8a54d4/attachment.sig>
More information about the freebsd-hackers
mailing list