cinap_lenrek
967b1248f8
libip: move optimized 386 assembly version of ptclbsum() from kernel to libip
2019-02-27 18:29:08 +01:00
cinap_lenrek
dc6772fccc
libip: prefer v4 over v6 for myipaddr()
...
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-13 18:56:21 +01:00
cinap_lenrek
0ed8f6ff5f
libip: don't reject ipmask in v6 form for v4 address
2019-02-13 04:04:33 +01:00
cinap_lenrek
d551a83ae4
libip: return -1 in parseipmask() and parseipandmask() when mask is not ipv4 and v4 argument was set
2019-02-12 21:43:22 +01:00
cinap_lenrek
0af11f97b5
libip: replace v4parsecidr() with new parseipandmask()
...
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.
2019-02-11 23:26:57 +01:00
cinap_lenrek
183ab18dfc
libip: ignore ipv6 link local addresses for myipaddr()
2018-09-09 15:35:14 +02:00
cinap_lenrek
7a54873252
libip: skip ipv6 loopback address (thanks mischief)
2014-12-26 09:34:30 +01:00
cinap_lenrek
219c312163
libip: use snprint() in myetheraddr() to prevent accidents
2014-04-28 02:32:06 +02:00
cinap_lenrek
4c2d520eef
fix parseip()
...
addresses like: "1:2:3:4:5:6:7:255.255.255.255" caused parseip
to write beyond the ip buffer.
2013-04-02 03:39:24 +02:00
cinap_lenrek
3a79bf2ae6
libip: make myetheraddr() accept # device names
2013-02-23 09:33:04 +01:00
Taru Karttunen
a9060cc06b
Import sources from 2011-03-30 iso image - lib
2011-03-30 19:35:09 +03:00
Taru Karttunen
e5888a1ffd
Import sources from 2011-03-30 iso image
2011-03-30 15:46:40 +03:00