summaryrefslogtreecommitdiff
path: root/sys/src/libip
AgeCommit message (Collapse)Author
2019-02-27libip: move optimized 386 assembly version of ptclbsum() from kernel to libipcinap_lenrek
2019-02-13libip: prefer v4 over v6 for myipaddr()cinap_lenrek
myipaddr() is used in legacy applications that assume a single ip address per host. so prefer to retun a v4 address over a v6 one.
2019-02-13libip: don't reject ipmask in v6 form for v4 addresscinap_lenrek
2019-02-12libip: return -1 in parseipmask() and parseipandmask() when mask is not ipv4 ↵cinap_lenrek
and v4 argument was set
2019-02-11libip: replace v4parsecidr() with new parseipandmask()cinap_lenrek
we want to accept V4 subnets in CIDR notation consistently which means we need to interpret the mask in context of the IP address. so parseipmask() now has an additional v4 flag argument which offsets the prefixlength by 96 so a /24 will be interpreted as a /120. parseipandmask() is the new function which handles this automatically depending on the ip address type. v4parsecidr() is now obsolete.
2018-09-09libip: ignore ipv6 link local addresses for myipaddr()cinap_lenrek
2014-12-26libip: skip ipv6 loopback address (thanks mischief)cinap_lenrek
2014-04-28libip: use snprint() in myetheraddr() to prevent accidentscinap_lenrek
2013-04-02fix parseip()cinap_lenrek
addresses like: "1:2:3:4:5:6:7:255.255.255.255" caused parseip to write beyond the ip buffer.
2013-02-23libip: make myetheraddr() accept # device namescinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen