Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

void nl_socket_free ( struct nl_sock *  sk  ) 

Free a netlink socket.

  • sk Netlink socket.

Definition at line 149 of file socket.c.

{
      if (!sk)
            return;

      if (sk->s_fd >= 0)
            close(sk->s_fd);

      if (!(sk->s_flags & NL_OWN_PORT))
            release_local_port(sk->s_local.nl_pid);

      nl_cb_put(sk->s_cb);
      free(sk);
}


Generated by  Doxygen 1.6.0   Back to index