Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the challenge should already be in ASCII format,
but better safe than sorry.
|
|
|
|
|
|
not bytes.
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and v4 argument was set
|
|
|
|
|
|
with parseipandmask()
|
|
|
|
|
|
|
|
|
|
remove prefixlen
|
|
|
|
|
|
of sprint()
|
|
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.
|
|
|
|
|
|
steve wrote:
> I cam across a bug in cifs.
>
> An empty directory under windows 7 pro contains a single entry "." but it
> doesn't appear to contain "..". As a result "." is not removed on dirscan
> and plan9 gets when trying to traverse the hierarchy.
|
|
|