Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 1ede059 in mainline for uspace/lib/nettl/src/amap.c


Ignore:
Timestamp:
2015-06-06T15:06:20Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
7c15d6f
Parents:
2c4bb828
Message:

Give portrng a chance to actually allocate the port.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nettl/src/amap.c

    r2c4bb828 r1ede059  
    394394        }
    395395
    396         /** Allocate local port? */
    397         if (mepp.local.port == inet_port_any) {
    398                 mepp.local.port = inet_port_dyn_lo; /* XXX */
    399                 log_msg(LOG_DEFAULT, LVL_NOTE, "amap_insert: allocated local "
    400                     "port %" PRIu16, mepp.local.port);
    401         } else {
    402                 log_msg(LOG_DEFAULT, LVL_NOTE, "amap_insert: local "
    403                     "port %" PRIu16 " specified", mepp.local.port);
    404         }
    405 
    406396        raddr = !inet_addr_is_any(&mepp.remote.addr);
    407397        rport = mepp.remote.port != inet_port_any;
Note: See TracChangeset for help on using the changeset viewer.