plan9fox/sys/src
cinap_lenrek 9ea93a5fd3 libndb: order subnets by prefix length for ndbipinfo() lookups
to reproduce:

ipnet=foo0 ip=192.168.0.0 ipmask=/16
ipnet=foo1 ip=192.168.0.0 ipmask=/24
ip=192.168.0.1 sys=foo2

% ndb/ipquery sys foo2 ipnet ipmask
ipnet=foo0 ipmask=/16

we would expect to get ipnet=foo1 here as it is more
specific subnet.

the solution is to order the subnets by prefix length
in subnet() before calling filter(), so that we process
the longest prefixes first.
2020-07-17 16:53:20 +02:00
..
9 pc64: disable interrupts in mmuwalk() for checkmmu() 2020-07-16 03:11:27 +02:00
ape ape: simplify mkfile (thanks amavect) 2020-07-16 15:22:42 -07:00
boot 9bootpxe: simplify 2020-04-08 23:48:09 +02:00
cmd cpp: fix mutually recursive macros 2020-07-13 18:50:14 -07:00
games make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
lib9p lib9p: reject reads on closed fids and writes on directories 2020-04-27 19:55:42 +02:00
libaml libaml: implement ToDecimalString and ToHexString operations 2020-05-23 17:44:30 +02:00
libauth make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
libauthsrv
libavl
libbin
libbio
libc libc: revert date change again. this is getting ridicuoulus. 2020-06-15 00:12:57 +02:00
libcomplete
libcontrol
libdisk
libdraw libdraw: fix mount() error handling in newwindow() 2020-05-02 17:05:17 +02:00
libdtracy
libfis
libflate
libframe
libgeometry
libhtml
libhttpd always zero initialize Tm structure for tm2sec() 2019-12-03 08:22:02 +01:00
libip
libjson
liblex
libmach
libmemdraw libmemdraw: remove inexistent build targets 2020-04-19 15:30:58 +02:00
libmemlayer
libmp
libndb libndb: order subnets by prefix length for ndbipinfo() lookups 2020-07-17 16:53:20 +02:00
libplumb
libregexp
libsat
libscribble
libsec libsec/base58enc: null-terminate the result 2020-04-28 12:49:05 +02:00
libstdio #pragma ref no longer exists 2020-05-15 16:56:59 -07:00
libString
libsunrpc
libthread
libttf
libventi sys/src/libventi: implement vtsha1 and vtsha1check functions 2019-09-06 11:55:18 -07:00
mkfile
mkfile.proto