summaryrefslogtreecommitdiff
path: root/sys/src/ape/lib/bsd/bind.c
AgeCommit message (Collapse)Author
2022-07-06ape/bsd/bind.c, ape/bsd/listen.c: Use _syserrno.Benjamin Riefenstahl
2022-06-11ape/bsd/bind.c: Do not pretend that the port could be negative.Benjamin Riefenstahl
Ports are filtered through "htons" which returns an "unsigned short".
2022-06-10ape/bsd/bind.c, ape/bsd/listen.c: Set local IP.Benjamin Riefenstahl
Despite what the man pages say, local addresses can actually be set so do that.
2022-06-10ape/bsd/bind.c: Do not issue "bind *".Benjamin Riefenstahl
Despite the documentation, "bind *" is invalid and gives the error "bad numeric port" in devip.c:setladdrport. "bind 0" OTOH is actually supported fine in the Plan9 API and has the right sematics.
2013-04-02ape: check *alen before copying in getpeername(), getsockname() and accept()cinap_lenrek
*alen has to be initialized to the size of the buffer by the caller, and we are supposed to put the real size of the address in there, but not copy more than the original *alen value (truncate).
2013-03-31ape: initial IPv6 support, inet_pton()/inet_ntop(), getaddrinfo()/getnameinfo()cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen