Commit Graph

21 Commits

Author SHA1 Message Date
dd6f6fcfe2 add format string atrribute to logging and fix all error found by it 2016-03-30 14:30:27 +02:00
9572de350a switch timeout processing to libev
Rework the timeout and network code to use libev.
2016-03-30 14:06:43 +02:00
8dc30ae3c4 rework socket and discovery handling
Swtich sockets to connected when talking to a specific AC. Use
unconnected UDP sockets only during DISCOVERY.

In JOIN, we need send our local address. The old, routing table
based local address discovery is broken for many reasons (VRF,
policy routing, ...). With a connected socket, we can the same
information with a simple getsockname.

During DISCOVERY we are talking to all potential AC's at once.
So using an unconnected socket makes still sense.
2016-03-02 15:13:56 +01:00
1ee42c1881 unsigned long is 64bit on some platforms, use the 32bit datatype instead 2016-02-08 17:33:00 +01:00
7e0b977fcd fix strict aliasing errors 2016-02-05 17:33:57 +01:00
7c9ecebe7d Add debug output messages 2014-12-28 15:48:52 +01:00
2894b2c7aa Fix error management to send socket functions 2014-12-27 18:45:09 +01:00
8d9985fdea The capwap data channel migrated from userspace to kernalspace 2014-09-10 21:58:23 +02:00
67daa8dcbb Permit to forward IEEE802.11 Data Packet from kernel space to user space bypass
kernel network stack.
2014-06-07 22:37:19 +02:00
ae97e96f57 Started implementing the packet management of IEEE802.11 by AC side.
Made it clear some constants.
2014-04-02 22:40:04 +02:00
1a3e02ac50 Fix param type 2014-03-20 20:22:17 +01:00
6042161d75 Reengineering the timeout manager. Allows to create an arbitrary number of timer
with the possibility to invoke a callback function on timeout.
2014-03-02 19:31:27 +01:00
ea02d7379e Refactoring timeout functions, change functions name and add timeout handler
into session.
2014-02-19 19:16:33 +01:00
6ee885f9b6 Divided the logic of the capwap_recvfrom function into two distinct functions:
poll (capwap_wait_recvready) and recv (capwap_recvfrom_fd)
2013-11-02 19:08:05 +01:00
680354c842 Add convertion function from string to macaddress 2013-10-06 22:36:29 +02:00
b94c128a38 Add function to convert macaddress into string 2013-09-30 17:36:43 +02:00
79cb575548 Improved network function 2013-07-15 18:48:47 +02:00
d9e02ded5a Use mnemonic macro of macaddress size 2013-06-09 17:29:50 +02:00
37e60bb755 If not set into wtp.conf the client bind to any port 2013-05-28 22:22:16 +02:00
6c55b4d71f Improve memory administration for tx/rx packet manager 2013-05-27 21:33:23 +02:00
7dd6d43954 First commit 2013-05-01 14:52:55 +02:00