Searched refs:nport (Results 1 - 1 of 1) sorted by relevance

/seL4-camkes-master/projects/picotcp/modules/
H A Dpico_nat.c265 uint16_t nport = 0; local
271 nport = (uint16_t) (rand & 0xFFFFU);
272 nport = (uint16_t)((nport % (65535 - 1024)) + 1024U);
273 nport = short_be(nport);
275 if (pico_is_port_free(net->proto, nport, NULL, &pico_proto_ipv4))
286 return pico_ipv4_nat_add(net->dst, trans->dport, net->src, trans->sport, nat_link->address, nport, net->proto);

Completed in 27 milliseconds