Changes in uspace/srv/net/udp/assoc.c [451481c8:a1a101d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/assoc.c
r451481c8 ra1a101d 36 36 37 37 #include <adt/list.h> 38 #include < stdbool.h>38 #include <bool.h> 39 39 #include <fibril_synch.h> 40 40 #include <io/log.h> … … 200 200 /** Set local socket in association. 201 201 * 202 * @param assoc Association 203 * @param lsock Local socket (deeply copied) 204 * 202 * @param assoc Association 203 * @param fsock Foreign socket (deeply copied) 205 204 */ 206 205 void udp_assoc_set_local(udp_assoc_t *assoc, udp_sock_t *lsock) … … 209 208 fibril_mutex_lock(&assoc->lock); 210 209 assoc->ident.local = *lsock; 211 fibril_mutex_unlock(&assoc->lock);212 }213 214 /** Set local port in association.215 *216 * @param assoc Association217 * @param lport Local port218 *219 */220 void udp_assoc_set_local_port(udp_assoc_t *assoc, uint16_t lport)221 {222 log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_set_local(%p, %" PRIu16 ")", assoc, lport);223 fibril_mutex_lock(&assoc->lock);224 assoc->ident.local.port = lport;225 210 fibril_mutex_unlock(&assoc->lock); 226 211 } … … 421 406 } 422 407 408 423 409 /** 424 410 * @}
Note:
See TracChangeset
for help on using the changeset viewer.