Home | History | Annotate | Download | only in netlink-private
      1 /*
      2  * netlink-private/socket.h		Private declarations for socket
      3  *
      4  *	This library is free software; you can redistribute it and/or
      5  *	modify it under the terms of the GNU Lesser General Public
      6  *	License as published by the Free Software Foundation version 2.1
      7  *	of the License.
      8  *
      9  * Copyright (c) 2014 Thomas Graf <tgraf (at) suug.ch>
     10  */
     11 
     12 #ifndef NETLINK_SOCKET_PRIV_H_
     13 #define NETLINK_SOCKET_PRIV_H_
     14 
     15 #include <netlink-private/netlink.h>
     16 
     17 #ifdef __cplusplus
     18 extern "C" {
     19 #endif
     20 
     21 int _nl_socket_is_local_port_unspecified (struct nl_sock *sk);
     22 uint32_t _nl_socket_generate_local_port_no_release(struct nl_sock *sk);
     23 
     24 void _nl_socket_used_ports_release_all(const uint32_t *used_ports);
     25 void _nl_socket_used_ports_set(uint32_t *used_ports, uint32_t port);
     26 
     27 #ifdef __cplusplus
     28 }
     29 #endif
     30 
     31 #endif
     32