Set local port of socket
Definition at line 255 of file socket.c. { if (port == 0) { port = generate_local_port(); sk->s_flags &= ~NL_OWN_PORT; } else { if (!(sk->s_flags & NL_OWN_PORT)) release_local_port(sk->s_local.nl_pid); sk->s_flags |= NL_OWN_PORT; } sk->s_local.nl_pid = port; }
|