2014-08-03 06:03:53 +02:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Wireless daemon for Linux
|
|
|
|
*
|
2019-10-25 00:43:08 +02:00
|
|
|
* Copyright (C) 2013-2019 Intel Corporation. All rights reserved.
|
2014-08-03 06:03:53 +02:00
|
|
|
*
|
|
|
|
* 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;
|
|
|
|
|
2018-05-16 00:08:47 +02:00
|
|
|
struct nlmon_config {
|
|
|
|
bool nortnl;
|
|
|
|
bool nowiphy;
|
|
|
|
bool noscan;
|
2021-02-02 19:04:53 +01:00
|
|
|
bool noies;
|
2022-10-26 22:45:58 +02:00
|
|
|
bool read_only;
|
2018-05-16 00:08:47 +02:00
|
|
|
};
|
|
|
|
|
2016-07-13 17:14:28 +02:00
|
|
|
struct nlmon *nlmon_open(const char *ifname, uint16_t id, const char *pathname,
|
2018-05-16 00:08:47 +02:00
|
|
|
const struct nlmon_config *config);
|
2014-08-03 06:03:53 +02:00
|
|
|
void nlmon_close(struct nlmon *nlmon);
|
2014-08-05 22:37:31 +02:00
|
|
|
|
2022-10-26 22:45:57 +02:00
|
|
|
struct nlmon *nlmon_create(uint16_t id, const struct nlmon_config *config);
|
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,
|
2022-10-13 22:02:40 +02:00
|
|
|
const void *data, int64_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);
|