summaryrefslogtreecommitdiff
path: root/sys/src/libndb/ndbipinfo.c
AgeCommit message (Collapse)Author
2020-07-17libndb: order subnets by prefix length for ndbipinfo() lookupscinap_lenrek
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.
2019-02-12ip/ipconfig, ndb/dns, libndb: handle parseipmask() errorscinap_lenrek
2019-02-11libndb: provide parseipmask() v4 argument in subnet(), use snprint() instead ↵cinap_lenrek
of sprint()
2018-09-16libndb: make ndbipinfo() walk ipnet for all matching entries, concatenate ↵cinap_lenrek
and dedup result
2016-11-17/sys/src/lib*: clean upftrvxmtrx
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen