Changes in uspace/srv/net/udp/assoc.c [58e8646:443a0bc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/assoc.c
r58e8646 r443a0bc 40 40 #include <fibril_synch.h> 41 41 #include <inet/endpoint.h> 42 #include <inet/inet.h>43 42 #include <io/log.h> 44 43 #include <nettl/amap.h> … … 262 261 return EINVAL; 263 262 264 /* This association has no local address set. Need to determine one. */265 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_send - check no local addr");266 if (inet_addr_is_any(&epp.local.addr) && !assoc->nolocal) {267 log_msg(LOG_DEFAULT, LVL_DEBUG, "Determine local address.");268 rc = inet_get_srcaddr(&epp.remote.addr, 0, &epp.local.addr);269 if (rc != EOK) {270 log_msg(LOG_DEFAULT, LVL_DEBUG, "Cannot determine "271 "local address.");272 return EINVAL;273 }274 }275 276 263 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_send - check version"); 277 264 278 if (!inet_addr_is_any(&epp.local.addr) && 279 epp.remote.addr.version != epp.local.addr.version) 265 if (epp.remote.addr.version != epp.local.addr.version) 280 266 return EINVAL; 281 267
Note:
See TracChangeset
for help on using the changeset viewer.