HelenOS sources
inet_port_any 568 uspace/lib/nettl/src/amap.c rport = mepp.remote.port != inet_port_any;
inet_port_any 693 uspace/lib/nettl/src/amap.c rport = epp->remote.port != inet_port_any;
inet_port_any 104 uspace/lib/nettl/src/portrng.c if (pnum == inet_port_any) {
inet_port_any 122 uspace/lib/nettl/src/portrng.c if (pnum == inet_port_any) {
inet_port_any 1249 uspace/srv/net/tcp/conn.c conn->ident.remote.port == inet_port_any ||
inet_port_any 1262 uspace/srv/net/tcp/conn.c if (conn->ident.remote.port == inet_port_any)
inet_port_any 265 uspace/srv/net/udp/assoc.c remote->port != inet_port_any)
inet_port_any 271 uspace/srv/net/udp/assoc.c (epp.remote.port == inet_port_any))
HelenOS homepage, sources at GitHub