Rev 4704 | Rev 4712 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4704 | Rev 4708 | ||
---|---|---|---|
Line 84... | Line 84... | ||
84 | socket_ports_exclude( global_sockets, socket->port ); |
84 | socket_ports_exclude( global_sockets, socket->port ); |
85 | socket->port = -1; |
85 | socket->port = -1; |
86 | return socket_bind_insert( global_sockets, socket, address_in->sin_port ); |
86 | return socket_bind_insert( global_sockets, socket, address_in->sin_port ); |
87 | break; |
87 | break; |
88 | // TODO IPv6 |
88 | // TODO IPv6 |
89 | default: |
- | |
90 | return EAFNOSUPPORT; |
- | |
91 | } |
89 | } |
92 | return EOK; |
90 | return EAFNOSUPPORT; |
93 | } |
91 | } |
94 | 92 | ||
95 | int socket_bind_free_port( socket_ports_ref global_sockets, socket_core_ref socket, int free_ports_start, int free_ports_end, int last_used_port ){ |
93 | int socket_bind_free_port( socket_ports_ref global_sockets, socket_core_ref socket, int free_ports_start, int free_ports_end, int last_used_port ){ |
96 | int index; |
94 | int index; |
97 | 95 |