eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

nlmon.h (1802B)


      1 /*
      2  *
      3  *  Wireless daemon for Linux
      4  *
      5  *  Copyright (C) 2013-2019  Intel Corporation. All rights reserved.
      6  *
      7  *  This library is free software; you can redistribute it and/or
      8  *  modify it under the terms of the GNU Lesser General Public
      9  *  License as published by the Free Software Foundation; either
     10  *  version 2.1 of the License, or (at your option) any later version.
     11  *
     12  *  This library is distributed in the hope that it will be useful,
     13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15  *  Lesser General Public License for more details.
     16  *
     17  *  You should have received a copy of the GNU Lesser General Public
     18  *  License along with this library; if not, write to the Free Software
     19  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20  *
     21  */
     22 
     23 #include <stdint.h>
     24 #include <sys/time.h>
     25 
     26 struct nlmon;
     27 
     28 enum time_format {
     29 	TIME_FORMAT_DELTA,
     30 	TIME_FORMAT_UTC,
     31 };
     32 
     33 struct nlmon_config {
     34 	bool nortnl;
     35 	bool nowiphy;
     36 	bool noscan;
     37 	bool noies;
     38 	bool read_only;
     39 	enum time_format time_format;
     40 
     41 	/* File size in MB */
     42 	uint32_t pcap_file_size;
     43 	uint32_t pcap_file_count;
     44 };
     45 
     46 struct nlmon *nlmon_open(uint16_t id, const char *pathname,
     47 				const struct nlmon_config *config);
     48 void nlmon_close(struct nlmon *nlmon);
     49 
     50 struct nlmon *nlmon_create(uint16_t id, const struct nlmon_config *config);
     51 void nlmon_destroy(struct nlmon *nlmon);
     52 void nlmon_print_rtnl(struct nlmon *nlmon, const struct timeval *tv,
     53 					const void *data, uint32_t size);
     54 void nlmon_print_genl(struct nlmon *nlmon, const struct timeval *tv,
     55 					const void *data, int64_t size);
     56 void nlmon_print_pae(struct nlmon *nlmon, const struct timeval *tv,
     57 					uint8_t type, int index,
     58 					const void *data, uint32_t size);