1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
ded39b461e sys: random: rename genrand_* to random_* 2016-02-29 21:33:17 +01:00
Oleg Hahm
94231241ec posix sockets: missing includes for conn 2016-02-25 10:42:50 +01:00
Oleg Hahm
c811380440 Merge pull request #4468 from cgundogan/pr/posix_sockets/close_fd_fix
posix_sockets: fix overflowing fd in close()
2015-12-12 12:13:51 +01:00
Cenk Gündoğan
0ddfffc0c2 posix_sockets: fix overflowing fd in close() 2015-12-12 04:24:23 +01:00
Cenk Gündoğan
6f92b056f9 posix_sockets: do not use the address of best_match 2015-12-12 02:51:00 +01:00
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."
2015-12-08 11:57:20 +01:00
Oleg Hahm
b366e59c87 conn: add function to find the best source address
...and use it in POSIX sendto() function.
2015-12-02 18:11:55 +01:00
Oleg Hahm
860321c3e9 posix sockets: use network byteorder for port 2015-12-02 14:45:43 +01:00
Oleg Hahm
5f663826c7 posix sockets: remove pointless inline function 2015-12-02 14:45:43 +01:00
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.
2015-12-02 14:45:43 +01:00
Oleg Hahm
0153933241 posix sockets: store src_port in socket struct 2015-12-02 14:38:52 +01:00
Oleg Hahm
7efc8fd265 posix sockets: initialize sockaddr properly to 0 2015-11-26 11:25:40 +01:00
Oleg Hahm
a0dcbc6a3c posix: sockets: use correct datatypes for in6_addr
in6addr_any and in6addr_loopback are of type in6_addr
2015-10-27 11:39:11 +01:00
Martine Lenders
624530c7d0 posix: redo socket API to use conn 2015-09-22 22:24:52 +02:00