Commit Graph

14 Commits (362077d3d53b1ffb32e7151367940d411d04df64)

Author SHA1 Message Date
Kaspar Schleiser ded39b461e sys: random: rename genrand_* to random_* 8 years ago
Oleg Hahm 94231241ec posix sockets: missing includes for conn 8 years ago
Oleg Hahm c811380440 Merge pull request #4468 from cgundogan/pr/posix_sockets/close_fd_fix
posix_sockets: fix overflowing fd in close()
8 years ago
Cenk Gündoğan 0ddfffc0c2 posix_sockets: fix overflowing fd in close() 8 years ago
Cenk Gündoğan 6f92b056f9 posix_sockets: do not use the address of best_match 8 years ago
Oleg Hahm 11add4d8fd sockets: implicit bind for connect()
According to
http://pubs.opengroup.org/onlinepubs/009695399/functions/connect.html
for a "socket [that] has not already been bound to a local address,
connect() shall bind it to an address which, unless the socket's address
family is AF_UNIX, is an unused local address."
8 years ago
Oleg Hahm b366e59c87 conn: add function to find the best source address
...and use it in POSIX sendto() function.
8 years ago
Oleg Hahm 860321c3e9 posix sockets: use network byteorder for port 8 years ago
Oleg Hahm 5f663826c7 posix sockets: remove pointless inline function 8 years ago
Oleg Hahm c366f2bbcd sockets: perform implicit bind during sendto()
A client should not require to explicitly call bind() to receive packets, but is expected to receive replies sent to the ephemeral port that was selected as a source port by the UDP implementation.
8 years ago
Oleg Hahm 0153933241 posix sockets: store src_port in socket struct 8 years ago
Oleg Hahm 7efc8fd265 posix sockets: initialize sockaddr properly to 0 8 years ago
Oleg Hahm a0dcbc6a3c posix: sockets: use correct datatypes for in6_addr
in6addr_any and in6addr_loopback are of type in6_addr
8 years ago
Martine Lenders 624530c7d0 posix: redo socket API to use conn 8 years ago