extern "C" {
#endif
-/* backwards compatibility for now */
-#define nl_handle nl_sock
-
extern struct nl_sock * nl_socket_alloc(void);
extern struct nl_sock * nl_socket_alloc_cb(struct nl_cb *);
extern void nl_socket_free(struct nl_sock *);
int main(int argc, char *argv[])
{
- struct nl_handle *nlh;
+ struct nl_sock *nlh;
struct rtnl_qdisc *qdisc;
uint32_t handle, parent;
int err = 1;
#include "addr-utils.h"
-static struct nl_handle *sock;
+static struct nl_sock *sock;
static int interactive = 0, default_yes = 0, quiet = 0;
static int deleted = 0;
int main(int argc, char *argv[])
{
- struct nl_handle *sock;
+ struct nl_sock *sock;
struct rtnl_addr *addr;
struct nl_cache *link_cache, *addr_cache;
struct nl_dump_params params = {
int main(int argc, char *argv[])
{
- struct nl_handle *nlh;
+ struct nl_sock *nlh;
struct nl_cache *result;
struct flnl_request *request;
struct nl_addr *addr;
int main(int argc, char *argv[])
{
- struct nl_handle *sock;
+ struct nl_sock *sock;
struct rtnl_route *route;
struct nl_dump_params dp = {
.dp_type = NL_DUMP_LINE,
static int interactive = 0, default_yes = 0, quiet = 0;
static int deleted = 0;
-static struct nl_handle *sock;
+static struct nl_sock *sock;
static void print_version(void)
{
int main(int argc, char *argv[])
{
- struct nl_handle *h[1025];
+ struct nl_sock *h[1025];
int i;
h[0] = nl_handle_alloc();