Changeset 58e9dec in mainline for uspace/srv
- Timestamp:
- 2015-05-22T07:31:57Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2989c7e
- Parents:
- 2f19103
- Location:
- uspace/srv/net
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/conn.c
r2f19103 r58e9dec 344 344 return false; 345 345 346 if ((patt->port != TCP_PORT_ANY) &&346 if ((patt->port != inet_port_any) && 347 347 (patt->port != ep->port)) 348 348 return false; -
uspace/srv/net/tcp/tcp_type.h
r2f19103 r58e9dec 113 113 } tcp_control_t; 114 114 115 enum tcp_port {116 TCP_PORT_ANY = 0117 };118 119 115 /** Connection incoming segments queue */ 120 116 typedef struct { -
uspace/srv/net/tcp/ucall.c
r2f19103 r58e9dec 342 342 conn->ident.remote.addr = epp->remote.addr; 343 343 344 if (conn->ident.remote.port == TCP_PORT_ANY)344 if (conn->ident.remote.port == inet_port_any) 345 345 conn->ident.remote.port = epp->remote.port; 346 346 -
uspace/srv/net/udp/assoc.c
r2f19103 r58e9dec 39 39 #include <stdbool.h> 40 40 #include <fibril_synch.h> 41 #include <inet/endpoint.h> 41 42 #include <io/log.h> 42 43 #include <stdlib.h> … … 270 271 271 272 if ((inet_addr_is_any(&epp.remote.addr)) || 272 (epp.remote.port == UDP_PORT_ANY))273 (epp.remote.port == inet_port_any)) 273 274 return EINVAL; 274 275 … … 422 423 log_msg(LOG_DEFAULT, LVL_NOTE, "addr OK"); 423 424 424 if ((patt->port != UDP_PORT_ANY) &&425 if ((patt->port != inet_port_any) && 425 426 (patt->port != ep->port)) 426 427 return false; … … 476 477 aepp, la, ra); 477 478 /* Skip unbound associations */ 478 if (aepp->local.port == UDP_PORT_ANY) {479 if (aepp->local.port == inet_port_any) { 479 480 log_msg(LOG_DEFAULT, LVL_NOTE, "skip unbound"); 480 481 continue; -
uspace/srv/net/udp/udp_type.h
r2f19103 r58e9dec 61 61 XF_DUMMY = 0x1 62 62 } xflags_t; 63 64 enum udp_port {65 UDP_PORT_ANY = 066 };67 63 68 64 /** Unencoded UDP message (datagram) */
Note:
See TracChangeset
for help on using the changeset viewer.