2014-08-03 06:03:53 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2014-08-10 21:45:56 +02:00
|
|
|
#include <sys/time.h>
|
2014-08-03 06:03:53 +02:00
|
|
|
|
|
|
|
struct nlmon;
|
|
|
|
|
2016-07-13 17:14:28 +02:00
|
|
|
struct nlmon *nlmon_open(const char *ifname, uint16_t id, const char *pathname,
|
|
|
|
bool nortnl);
|
2014-08-03 06:03:53 +02:00
|
|
|
void nlmon_close(struct nlmon *nlmon);
|
2014-08-05 22:37:31 +02:00
|
|
|
|
2014-08-15 23:59:33 +02:00
|
|
|
struct nlmon *nlmon_create(uint16_t id);
|
2014-08-05 22:37:31 +02:00
|
|
|
void nlmon_destroy(struct nlmon *nlmon);
|
2014-08-10 21:45:56 +02:00
|
|
|
void nlmon_print_rtnl(struct nlmon *nlmon, const struct timeval *tv,
|
|
|
|
const void *data, uint32_t size);
|
|
|
|
void nlmon_print_genl(struct nlmon *nlmon, const struct timeval *tv,
|
|
|
|
const void *data, uint32_t size);
|
2014-08-10 23:57:28 +02:00
|
|
|
void nlmon_print_pae(struct nlmon *nlmon, const struct timeval *tv,
|
2014-08-11 03:30:08 +02:00
|
|
|
uint8_t type, int index,
|
2014-08-10 23:57:28 +02:00
|
|
|
const void *data, uint32_t size);
|