-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include: merge branch 'th/move-private-headers-2'
- Loading branch information
Showing
73 changed files
with
243 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include/nl-hidden-route | ||
======================= | ||
|
||
libnl-route-3 wrongly exposes some symbols that are not part of public headers. | ||
They are used by other internal code. | ||
|
||
These are the symbols. | ||
|
||
This header can be used by internal code, that dynamically links with libnl-route-3. | ||
But best we reduce the use of such hidden API, so avoid it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* SPDX-License-Identifier: LGPL-2.1-only */ | ||
/* | ||
* Copyright (c) 2011-2013 Thomas Graf <[email protected]> | ||
*/ | ||
|
||
#ifndef __NL_HIDDEN_ROUTE_NL_HIDDEN_ROUTE_H__ | ||
#define __NL_HIDDEN_ROUTE_NL_HIDDEN_ROUTE_H__ | ||
|
||
/** | ||
* Traffic control object operations | ||
* @ingroup tc | ||
* | ||
* This structure holds function pointers and settings implementing | ||
* the features of each traffic control object implementation. | ||
*/ | ||
struct rtnl_tc_ops { | ||
/** | ||
* Name of traffic control module | ||
*/ | ||
char *to_kind; | ||
|
||
/** | ||
* Type of traffic control object | ||
*/ | ||
enum rtnl_tc_type to_type; | ||
|
||
/** | ||
* Size of private data | ||
*/ | ||
size_t to_size; | ||
|
||
/** | ||
* Dump callbacks | ||
*/ | ||
void (*to_dump[NL_DUMP_MAX + 1])(struct rtnl_tc *, void *, | ||
struct nl_dump_params *); | ||
/** | ||
* Used to fill the contents of TCA_OPTIONS | ||
*/ | ||
int (*to_msg_fill)(struct rtnl_tc *, void *, struct nl_msg *); | ||
|
||
/** | ||
* Uesd to to fill tc related messages, unlike with to_msg_fill, | ||
* the contents is not encapsulated with a TCA_OPTIONS nested | ||
* attribute. | ||
*/ | ||
int (*to_msg_fill_raw)(struct rtnl_tc *, void *, struct nl_msg *); | ||
|
||
/** | ||
* TCA_OPTIONS message parser | ||
*/ | ||
int (*to_msg_parser)(struct rtnl_tc *, void *); | ||
|
||
/** | ||
* Called before a tc object is destroyed | ||
*/ | ||
void (*to_free_data)(struct rtnl_tc *, void *); | ||
|
||
/** | ||
* Called whenever a classifier object needs to be cloned | ||
*/ | ||
int (*to_clone)(void *, void *); | ||
|
||
/** | ||
* Internal, don't touch | ||
*/ | ||
struct nl_list_head to_list; | ||
}; | ||
|
||
extern struct rtnl_tc_ops *rtnl_tc_lookup_ops(enum rtnl_tc_type, const char *); | ||
|
||
struct rtnl_tc_ops *rtnl_tc_get_ops(struct rtnl_tc *); | ||
|
||
#endif /* __NL_HIDDEN_ROUTE_NL_HIDDEN_ROUTE_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
include/nl-shared-core | ||
====================== | ||
|
||
Contains internal API on top of core (libnl-3). It is | ||
implemented by core and usable to all users that link | ||
against libnl-3. | ||
|
||
Note that the ABI, while being internal, should stay stable. |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,23 +3,15 @@ | |
* Copyright (c) 2014 Thomas Graf <[email protected]> | ||
*/ | ||
|
||
#ifndef NETLINK_SOCKET_PRIV_H_ | ||
#define NETLINK_SOCKET_PRIV_H_ | ||
#ifndef __LIB_NL_CORE_H__ | ||
#define __LIB_NL_CORE_H__ | ||
|
||
#include <netlink-private/netlink.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
int _nl_socket_is_local_port_unspecified (struct nl_sock *sk); | ||
uint32_t _nl_socket_set_local_port_no_release(struct nl_sock *sk, int generate_other); | ||
|
||
void _nl_socket_used_ports_release_all(const uint32_t *used_ports); | ||
void _nl_socket_used_ports_set(uint32_t *used_ports, uint32_t port); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
#endif /* __LIB_NL_CORE_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.