Date: Mon, 17 Jun 2019 20:41:56 +0300 From: Lev Serebryakov <lev@FreeBSD.org> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Does `sys/net/radix.c` support non-contiguous masks? Message-ID: <b42c0e0e-4948-2632-51fd-6374fba72c7c@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --FDifwWRzpEXXK5MHZpL7CFxYbuFoTXT2Q Content-Type: multipart/mixed; boundary="YbMumbJtJG6pL6AOoRmzBGH7xKnZQWsb6"; protected-headers="v1" From: Lev Serebryakov <lev@FreeBSD.org> Reply-To: lev@FreeBSD.org To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Message-ID: <b42c0e0e-4948-2632-51fd-6374fba72c7c@FreeBSD.org> Subject: Does `sys/net/radix.c` support non-contiguous masks? --YbMumbJtJG6pL6AOoRmzBGH7xKnZQWsb6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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=E2=80=A6 [1] https://gist.github.com/blacklion/072537283e91d39638438c9456b29292 --=20 // Lev Serebryakov --YbMumbJtJG6pL6AOoRmzBGH7xKnZQWsb6-- --FDifwWRzpEXXK5MHZpL7CFxYbuFoTXT2Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAl0H0OpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5 NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c R4+yhRAAkAPQeKh+cibt0X91repMFbDlrfJLXnlPrIG8nkhuqdns/IEpv6KxmKxv xuvwUPI1u3CRi9wKEV7QzBAmpVmdrqeE66QtU0w1RrOIHIsLxj+Yzpm3UOjG0/zq uWqu+U06qtmRYLx1QQBfzcdLQ+C8xQIEpHZ8MqEh56wo25l8Mb7B18uDknC9P1y6 EtHI6esOs3cr0f0RZ5z+1VcLhCFh6sKB94uUBT5bia7liXy9slRxqwThoLzSBxjd cKE+3nNA4Nnk17Z4+6sJABvNyH56nHjXh1G76ytZzo9EQPL5nVkUFfoyhNPDMRz2 BbqQdys4Ycbtx87EXBOh08So75Fk46ZT3cF19X3x9KzhBlhj9K6L6yMG02nn0hKa bDB/8RAHdVz3bmeNICgTQr8qRXc7C0cfeO97M7Q6SpCWGozSc9CXDtBqVLPRhObG kYZ7wUIJKxuVJlQ5DONrFX+/eZWn1AJF9b5p4D5Z9ZkY8rmdTlzlidimYaYgoZQ9 kvYnY4qyP4910M1bnma6cwDUMqAiaa1FUbhFWBOIPiyjkw7CCNV858IDFReM6KoC prTBHWk71WD1Jo+yB9Mt4U1TX//Y8ps2pQhE+yZUU9GRvMXo6mDg0BSMepXNH23I U8W5pqdIxaSmbjPZcMEVWn6s3AbE5Q1qc5qFh69NjnFT3oUAmYY= =UKqv -----END PGP SIGNATURE----- --FDifwWRzpEXXK5MHZpL7CFxYbuFoTXT2Q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b42c0e0e-4948-2632-51fd-6374fba72c7c>