3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-27 02:23:04 +01:00
Commit Graph

526 Commits

Author SHA1 Message Date
Marcel Holtmann
609cc86717 monitor: Do not abort when receiving unknown ARPHRD 2014-08-06 06:52:09 +02:00
Marcel Holtmann
e4e45566d9 monitor: Some attributes are either flags or unsigned 16-bit integers 2014-08-06 05:49:12 +02:00
Marcel Holtmann
19bdbc3c2d monitor: Add support for nested array attributes 2014-08-06 04:47:10 +02:00
Marcel Holtmann
d5989e62ed monitor: Fix casting for 8-bit and 16-bit unsigned integers 2014-08-06 04:42:59 +02:00
Marcel Holtmann
f0e7bb7509 monitor: Add support for decoding attributes in BSS information 2014-08-06 04:02:15 +02:00
Marcel Holtmann
477682ad5d monitor: Add support for attributes containing signed 32-bit integers 2014-08-06 04:01:49 +02:00
Marcel Holtmann
080338ba41 monitor: Print address attributes as strings and not binary 2014-08-06 04:01:12 +02:00
Marcel Holtmann
8b11aedacd monitor: Read the generic netlink id from the trace file 2014-08-06 00:27:19 +02:00
Marcel Holtmann
d484715a17 monitor: Check that protocol type is set to generic netlink 2014-08-06 00:12:20 +02:00
Marcel Holtmann
d0068dcf4c monitor: Add support for reading traces from PCAP files 2014-08-05 22:40:43 +02:00
Marcel Holtmann
ce202ac843 monitor: Add helper functions for parsing-only netlink monitor 2014-08-05 22:37:31 +02:00
Marcel Holtmann
e260854da3 monitor: Add command line option for netlink monitor device 2014-08-05 21:39:54 +02:00
Marcel Holtmann
81118dfc1f monitor: Add initial support for nested attribute decoding 2014-08-03 22:07:07 +02:00
Marcel Holtmann
dfcb1ddbc1 monitor: Print data packet for unknown attributes 2014-08-03 08:38:55 +02:00
Marcel Holtmann
34d8b0d308 ie: Keep copyright notice the same for all source files 2014-08-03 08:14:16 +02:00
Marcel Holtmann
8894e213e5 README: Add notes about netlink monitoring requirements 2014-08-03 08:07:35 +02:00
Marcel Holtmann
db60e4d48f monitor: Add initial version of iwmon utitlity 2014-08-03 06:03:53 +02:00
Marcel Holtmann
e724c166fe linux: Update copy of kdbus.h public header 2014-08-03 00:10:37 +02:00
Marcel Holtmann
1262d53c20 linux: Update copy of nl80211.h public header 2014-08-03 00:09:49 +02:00
Denis Kenzior
2c0e997ee8 build: Avoid redefining _FORTIFY_SOURCE
Gentoo (and others) define _FORTIFY_SOURCE=2 by default.  Since we
always define it as well, this results in redefinition warnings &
configure failure.
2014-08-01 09:52:36 -05:00
Denis Kenzior
1f65caf4e4 unit: Take out unused function 2014-07-31 10:18:47 -05:00
Denis Kenzior
70f6999a61 unit: Redo test data setup 2014-07-31 10:17:07 -05:00
Denis Kenzior
89b91b7629 unit: Fix warnings
unit/test-ie.c: In function ‘ie_test_writer’:
unit/test-ie.c:238:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
unit/test-ie.c:251:17: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-31 09:59:55 -05:00
Jukka Rissanen
b461863f78 unit: Add IE builder test cases 2014-07-31 09:59:01 -05:00
Jukka Rissanen
b90d914a3f ie: Adding IE builder support
These functions can be used to create IE TLV messages.
2014-07-31 09:58:58 -05:00
Jukka Rissanen
8cb16f41a8 unit: Refactor IE reader test
Use real beacon frame data when testing the IE reader API.
2014-07-30 17:14:46 -05:00
Marcel Holtmann
999ba12f31 core: Add skeleton for nl80211 setup 2014-07-29 21:25:01 +02:00
Marcel Holtmann
3cb432a81c doc: Prefer !var over var == NULL checks 2014-07-20 17:48:48 +02:00
Denis Kenzior
54b0b7d9e9 doc: Add coding-style.txt from oFono 2014-07-19 23:17:51 -05:00
Jukka Rissanen
61245bc14e ie: Adding function to recurse when reading
This function is needed when building recursive IE.
2014-07-15 19:19:04 -05:00
Denis Kenzior
4943f2300d AUTHORS: Mention Jukka's contributions 2014-07-15 19:18:08 -05:00
Denis Kenzior
15d6663a54 .gitignore: Ignore test-ie 2014-07-15 19:18:08 -05:00
Denis Kenzior
119a1e7de3 ie: Add additional boundary checking
==20758== Invalid read of size 1
==20758==    at 0x401254: ie_tlv_iter_next (ie.c:55)
==20758==    by 0x40104B: ie_test (test-ie.c:57)
==20758==    by 0x4021C0: l_test_run (test.c:83)
==20758==    by 0x4011B7: main (test-ie.c:123)
==20758==  Address 0x51e10f3 is 0 bytes after a block of size 19 alloc'd
==20758==    at 0x4C2C874: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20758==    by 0x4010CF: append_data (test-ie.c:101)
==20758==    by 0x40118F: main (test-ie.c:119)
==20758==
==20758== Invalid read of size 1
==20758==    at 0x401266: ie_tlv_iter_next (ie.c:56)
==20758==    by 0x40104B: ie_test (test-ie.c:57)
==20758==    by 0x4021C0: l_test_run (test.c:83)
==20758==    by 0x4011B7: main (test-ie.c:123)
==20758==  Address 0x51e10f4 is 1 bytes after a block of size 19 alloc'd
==20758==    at 0x4C2C874: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20758==    by 0x4010CF: append_data (test-ie.c:101)
==20758==    by 0x40118F: main (test-ie.c:119)
2014-07-15 19:18:08 -05:00
Denis Kenzior
5cf28c6dc7 unit: Fix memory leak
==7978== 29 bytes in 3 blocks are definitely lost in loss record 2 of 2
==7978==    at 0x4C2C66D: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7978==    by 0x4012FD: l_malloc (util.c:62)
==7978==    by 0x4018EF: l_util_hexstring (util.c:372)
==7978==    by 0x40118E: ie_test (in
/home/denkenz/iwd-master/unit/test-ie)
==7978==    by 0x401BE7: l_test_run (test.c:83)
==7978==    by 0x401016: main (in /home/denkenz/iwd-master/unit/test-ie)
2014-07-15 19:18:08 -05:00
Denis Kenzior
f2ae753964 unit: Fix compiler warning
unit/test-ie.c: In function ‘ie_test’:
unit/test-ie.c:70:2: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
2014-07-15 19:18:08 -05:00
Denis Kenzior
d0e76fda03 unit: Fix style issue 2014-07-15 19:18:08 -05:00
Jukka Rissanen
e12bdd02bd unit: Add information element parser unit test cases 2014-07-15 19:18:08 -05:00
Jukka Rissanen
458ac1aba4 ie: Simple informational element parser
The parsing API goes through the byte stream and parses the
TLV (Type, Length and Value) values and avoids data copying.
2014-07-15 19:18:08 -05:00
Denis Kenzior
70ae80ffa5 AUTHORS: Mention Denis' contributions 2014-07-15 19:18:08 -05:00
Marcel Holtmann
ad27f03a49 build: Add debug options to configure 2014-07-16 02:10:15 +02:00
Jukka Rissanen
eedadd860b ie: Add information element types
IE types are from IEEE Std 802.11 chapter 8.4.2
2014-07-15 15:45:03 -05:00
Marcel Holtmann
43f91eb168 core: Fix a few compiler warnings 2014-07-15 22:29:02 +02:00
Marcel Holtmann
c11be930ea build: Use default compiler flags 2014-07-15 22:18:59 +02:00
Marcel Holtmann
188917cc29 core: Add missing include for network interface tracking 2014-06-21 20:54:58 +02:00
Marcel Holtmann
37cba460a8 core: Add tracking of network interfaces via RTNL 2014-06-21 13:41:40 +02:00
Marcel Holtmann
c1bc53ff4a build: Adjust for building with Generic Netlink from ELL 2014-06-20 13:12:26 +02:00
Marcel Holtmann
ad6302830d build: Adjust for including netlink private header from ELL 2014-06-20 11:51:38 +02:00
Marcel Holtmann
233cc120b0 build: Add ChangeLog file to satisfy distribution requirements 2014-05-22 19:53:56 -07:00
Marcel Holtmann
5b0f239d84 build: Adjust source files for internal ELL compilation 2014-05-22 18:48:11 -07:00
Marcel Holtmann
2d2b983d33 build: Add COPYING and INSTALL template files 2014-05-22 10:09:24 -07:00