Changeset 1ede059 in mainline for uspace/lib/nettl/src/portrng.c
- Timestamp:
- 2015-06-06T15:06:20Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7c15d6f
- Parents:
- 2c4bb828
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nettl/src/portrng.c
r2c4bb828 r1ede059 102 102 log_msg(LOG_DEFAULT, LVL_NOTE, "selected %" PRIu16, pnum); 103 103 } else { 104 log_msg(LOG_DEFAULT, LVL_NOTE, "user asked for %" PRIu16, pnum); 105 104 106 if ((flags & pf_allow_system) == 0 && 105 107 pnum < inet_port_user_lo) { 108 log_msg(LOG_DEFAULT, LVL_NOTE, "system port not allowed"); 106 109 return EINVAL; 107 110 } 108 111 109 112 list_foreach(pr->used, lprng, portrng_port_t, port) { 110 if (port->pn == pnum) 113 if (port->pn == pnum) { 114 log_msg(LOG_DEFAULT, LVL_NOTE, "port already used"); 111 115 return EEXISTS; 116 } 112 117 } 113 118 }
Note:
See TracChangeset
for help on using the changeset viewer.