Commit Graph

361 Commits

Author SHA1 Message Date
vemax78 8d9985fdea The capwap data channel migrated from userspace to kernalspace 2014-09-10 21:58:23 +02:00
vemax78 71006a9121 Fix minor bug.
Add draft of ac kernel module.
2014-06-15 09:09:48 +02:00
vemax78 2d6c4c4dd8 Check netlink file descriptor only if receive IEEE 802.11 packets in usermode. 2014-06-14 14:52:02 +02:00
vemax78 c3865e4cbb Change WTP Kernel Module path 2014-06-10 22:34:38 +02:00
vemax78 089a044f3f Fix capwap protocol and optional wireless information header.
Complete IEEE802.11 frames tunnel WTP side.
Now WTP can send data packets to the AC.
2014-06-09 22:30:04 +02:00
vemax78 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
vemax78 92c86462dc Created a patch for mac80211 that allows to capture the raw IEEE80211 packets
(management, control, data) of one or more wireless interfaces.
Not necessary the monitor interface. The patch allows to discriminate which
IEEE802.11 types and IEEE802.11 subtypes capture.
2014-06-04 22:58:34 +02:00
vemax78 0ebf1a434f Add skeleton code for CAPWAP Data Channel kernel module.
The IEEE802.11 data packets will embedded into CAPWAP Data Channel directly in
kernel mode. The CAPWAP Data Channel in usermode be used only for compatibility
reasons.
2014-06-01 16:32:30 +02:00
vemax78 289fbe01c7 Fix error into wifi change frequency 2014-05-28 22:49:03 +02:00
vemax78 3573dd4251 Removing the OpenSSL library for CyaSSL.
OpenSSL license was not compatible with the GPL license.
2014-05-15 21:43:21 +02:00
vemax78 e1023a388e Add business logic of Authentication/Association in SplitMAC mode. 2014-04-25 22:05:36 +02:00
vemax78 d4d7649f3b Removed the necessity of having to calculate each time the string of
macaddress stations.
2014-04-23 22:39:19 +02:00
vemax78 1c810c2d72 Fix disconnect station in local mac.
Fix management of AC IEEE802.11 management packet to station.
2014-04-23 22:11:24 +02:00
vemax78 ebb4eb0c98 Fix function/variable name
Prepared to management the IEEE802.11 Management Frame coming from the AC.
2014-04-22 23:02:49 +02:00
vemax78 7668ab7c7c Moved the management of the AP and Stations from nl80211 driver to generic wifi. 2014-04-21 23:16:56 +02:00
vemax78 fbd717b779 Added Delete Station Message Element into Station Configuration Message. 2014-04-15 22:26:31 +02:00
vemax78 21661277a0 Add station timer. Fix multiple bug. 2014-04-15 21:59:35 +02:00
vemax78 3e06393469 Change the location of binding file. 2014-04-15 16:45:39 +02:00
vemax78 3569267283 Big update with type fix and minor new function.
Complete the IEEE802.11 Station Association with interation of AC in LocalMAC mode.
After the IEEE802.11 Authorization / Association is complete, the AC can now
authorize the WTP to accept data station packets with Station Configuration Message.
2014-04-14 22:33:12 +02:00
vemax78 2ec98ac74d Prepare for add station configuration message 2014-04-09 19:25:08 +02:00
vemax78 127d2f944c Removed obsolete functions 2014-04-09 18:45:22 +02:00
vemax78 539fa51e69 Fix functions and logic.
Add new functions
Add logic into AC for create/destroy station
2014-04-06 17:02:31 +02:00
vemax78 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
vemax78 7fd2d4357a Preparations to parse IEEE802.11 management packets 2014-03-26 21:35:52 +01:00
vemax78 4c466d68be Added the function to extract the frame from CAPWAP data packet 2014-03-23 22:24:59 +01:00
vemax78 bb85dc3e23 Fix value of IEEE802.11 MTU 2014-03-23 22:23:20 +01:00
vemax78 884130dff1 Fix packetlength value when packet is fragment 2014-03-23 21:59:57 +01:00
vemax78 eee74744d0 Changed the scope of stations. Now the stations are managed on a global level. 2014-03-23 20:42:59 +01:00
vemax78 0873967b88 Fix code 2014-03-22 21:31:09 +01:00
vemax78 b48f7793cf First steps to handling stations timeout 2014-03-20 20:32:49 +01:00
vemax78 1a3e02ac50 Fix param type 2014-03-20 20:22:17 +01:00
vemax78 3dff1dc28b Remove assertion and permit to call timeout functions with unset index timeout 2014-03-16 22:10:28 +01:00
vemax78 684a829158 Added the ability to manage timeouts inside the wireless module 2014-03-16 21:36:01 +01:00
vemax78 738a5d9c93 The IEEE 802.11 Management packages can be sent into CAPWAP Data Channel only
in native format
2014-03-16 21:34:29 +01:00
vemax78 72dc064a23 Fix warning "value computed is not used" when call BIO_dgram_get_peer and
BIO_dgram_set_peer.

Issue signaled by Udaya Bhaskar Reddy Panditi
2014-03-16 12:48:40 +01:00
vemax78 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
vemax78 aa87719432 Move capwap timeout functions into new file 2014-02-20 21:34:41 +01:00
vemax78 2bdcac10ba Change file position of some ieee80211 functions 2014-02-20 21:23:18 +01:00
vemax78 ea02d7379e Refactoring timeout functions, change functions name and add timeout handler
into session.
2014-02-19 19:16:33 +01:00
vemax78 dff6ecb5e0 Removed unnecessary logging messages 2014-02-16 19:17:21 +01:00
vemax78 6590c50f5a Fix 2014-02-16 18:59:29 +01:00
vemax78 fd0805ff5c Fix debug log 2014-02-16 15:41:59 +01:00
vemax78 4c1a532221 Fix validation data packet 2014-02-16 15:41:44 +01:00
vemax78 5db686194c Merge 2014-02-16 15:29:08 +01:00
vemax78 196d165119 First actions to send managements frame into data channel 2014-02-16 15:28:27 +01:00
Alexis La Goutte 30f6c9fa9e Fix build
../../src/common/capwap_logging.c: In function ‘capwap_logging_printf’:
../../src/common/capwap_logging.c:124:4: error: format not a string literal and no format arguments [-Werror=format-security]
    fprintf(output, prefix);
    ^
2014-02-15 11:54:47 +01:00
vemax78 e1e4748367 The preparation for sending IEEE802.11 management packets to the AC by data
channel. Support both Local Mac and Split Mac.
2014-02-09 21:55:10 +01:00
vemax78 152f869354 Add support to Probe response offload 2014-02-09 18:42:15 +01:00
vemax78 025880583c Changed the management of the wireless interfaces, from creation to usage.
The virtual interfaces are created at the startup of the wtp to reduce the time
required to configure a wireless interface.
Applied some patches to build the WTP on OpenWRT trunk
2014-02-08 18:03:38 +01:00
vemax78 64a8bdfa1e Fix code 2014-01-23 21:24:45 +01:00
vemax78 0790fb511a Improved the management of authentication and association of the stations 2014-01-21 19:54:59 +01:00
vemax78 42293aad04 Fix capability mask 2014-01-19 21:25:22 +01:00
vemax78 254ef26ed6 Added ACL of stations 2014-01-18 19:13:10 +01:00
vemax78 9dbd940a00 Update capwap hash 2014-01-18 19:11:07 +01:00
vemax78 e342d5c1a3 Fix capwap_clone function type 2014-01-18 19:10:27 +01:00
vemax78 81284d4c62 Add Hash data type with AVL tree list 2014-01-17 19:01:01 +01:00
vemax78 547e398924 Add code to simple management IEEE802.11 Association Request/Response packets.
Need more code for complete the management of station association.
2014-01-14 19:15:58 +01:00
vemax78 bc2a6183ce Add code to simple management IEEE802.11 Authentication packets 2014-01-13 19:00:51 +01:00
vemax78 b4a95beb89 Update IEEE802.11 Information Element
Add control check length into IE parsing function
2014-01-10 17:53:12 +01:00
vemax78 d2c01ad82a Improved the management of the IEEE802.11 Beacon and add the management of
IEEE802.11 Probe Response.
2014-01-10 13:25:28 +01:00
vemax78 66019df158 Send only one from DSSS and OFDM Control Message Element 2014-01-07 16:22:44 +01:00
vemax78 022585f3a1 Add nl80211 handler message events 2013-12-21 23:50:15 +01:00
vemax78 938f73cd80 Remove old files 2013-12-20 23:15:01 +01:00
vemax78 bef31786ce The first beacon of SmartCAPWAP 2013-12-20 23:14:34 +01:00
vemax78 29ba25e434 Add helper function 2013-12-14 12:32:42 +01:00
vemax78 dcbf837b7a Add basic function for management wlan configuration 2013-12-07 18:14:32 +01:00
vemax78 64784fb460 Fix code 2013-12-07 18:13:42 +01:00
vemax78 7253e60aed Fix code and improve wlan configuration functionality 2013-12-04 22:25:16 +01:00
vemax78 e095195c97 Fix code 2013-12-01 22:51:42 +01:00
vemax78 0fa34f80da First code for management AddWLAN 2013-12-01 22:51:26 +01:00
vemax78 e02815f576 Cleaning code 2013-12-01 22:50:33 +01:00
vemax78 b2b18fec33 Add management Notify Event for Request/Response control message 2013-12-01 22:50:04 +01:00
vemax78 831d8a6184 Cancel all notify event when teardown connection 2013-12-01 22:48:38 +01:00
vemax78 1459c78143 Missing IEEE802.11 Request Control Message 2013-12-01 22:45:57 +01:00
vemax78 91bc075d6a Management SOAP Comet Notify Event 2013-11-24 23:02:09 +01:00
vemax78 d303f057f0 Free backend management resource after close all sessions 2013-11-24 23:00:57 +01:00
vemax78 e320bef6a7 Type change 2013-11-24 19:20:33 +01:00
vemax78 33099da3b7 Rename message queue functions 2013-11-24 17:09:07 +01:00
vemax78 f0c5146563 Improve management SOAP request/response with Director 2013-11-24 16:36:08 +01:00
vemax78 bb44612672 Cleaning wrong comment 2013-11-24 16:35:28 +01:00
vemax78 ebb0ca0dd3 Helper function for convert from int/long to string 2013-11-24 16:34:54 +01:00
vemax78 26b9a9e0fa Fix lock destroy 2013-11-24 14:45:45 +01:00
vemax78 d7b306e432 Add timeout in session data 2013-11-23 22:30:28 +01:00
vemax78 909899526c Change COMET idevent from string to int 2013-11-23 22:30:08 +01:00
vemax78 68f14a8aca Notify event request atomic block of memory 2013-11-21 22:03:05 +01:00
vemax78 0747168361 Separate the control channel from data channel on two different threads.
Solved the DTLS problem of using a separate thread for the data channel.
2013-11-20 23:12:00 +01:00
vemax78 9a6589b636 Into multithread logging also threadid 2013-11-19 23:25:07 +01:00
vemax78 df4161dae7 Add management backend for close WTP sessions or reset a WTP 2013-11-10 22:11:56 +01:00
vemax78 5f635602ce Add debug information into mutex calls 2013-11-10 22:10:40 +01:00
vemax78 bd6e6547b7 It is not necessary that the mutex is recursive 2013-11-10 22:10:10 +01:00
vemax78 db29a6228e Add backtrace call stack for debugging 2013-11-10 22:07:55 +01:00
vemax78 a06618afbc Fix forget unlock 2013-11-10 22:05:35 +01:00
vemax78 3eedd13d8b Remove unusable DFA state 2013-11-07 22:07:05 +01:00
vemax78 516f129fce Cleaning WTP DFA code 2013-11-07 22:06:29 +01:00
vemax78 d3b5d889ab Fix memory leak 2013-11-07 22:05:33 +01:00
vemax78 c07d643ec0 Fix DFA 2013-11-06 23:23:30 +01:00
vemax78 5e29d9241c Fix 2013-11-06 23:23:16 +01:00
vemax78 dbb8f2a621 Remove trivial assertion 2013-11-06 18:14:08 +01:00
vemax78 590b7539bf Cleaning AC DFA code 2013-11-05 17:54:29 +01:00
vemax78 4cbff2eead Stub SOAP action 2013-11-04 18:02:10 +01:00
vemax78 33d262398a Separate close action from generic action list.
Now generic action list can execute only if don't wait capwap respone.
2013-11-03 21:52:14 +01:00
vemax78 992b742478 Add session search function by sessionid 2013-11-02 20:02:00 +01:00
vemax78 ebd342c3ad Terminate SOAP request pending when close the session 2013-11-02 19:26:52 +01:00
vemax78 98b81311f5 Improved the management of locks in multithreaded sessions.
Managed the assurance of all threads is terminate before close the application.
2013-11-02 19:11:01 +01:00
vemax78 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
vemax78 769d0f414e Add support for rwlock 2013-11-02 19:04:56 +01:00
vemax78 b7964ec3af Remove unnecessary call function 2013-10-22 18:26:32 +02:00
vemax78 f48dcae0fd Fix 2013-10-22 18:25:20 +02:00
vemax78 f82cca5e81 Ignore session in teardown state 2013-10-21 18:54:40 +02:00
vemax78 3147abc9bc Before create new session check if receive DTLS Client Hello 2013-10-21 18:44:37 +02:00
vemax78 059f6d9dc9 Add reference of IEEE802.11 message type 2013-10-20 17:33:57 +02:00
vemax78 f0e7a37cca Filter message element 2013-10-14 18:09:46 +02:00
vemax78 5da4cd4a03 Remove radio channel from wtp configuration 2013-10-14 18:09:09 +02:00
vemax78 e0800c672f Work in progress in JSON director 2013-10-10 21:28:02 +02:00
vemax78 d8d284038f Add incomplete management JSON IEEE 802.11 2013-10-06 22:37:13 +02:00
vemax78 680354c842 Add convertion function from string to macaddress 2013-10-06 22:36:29 +02:00
vemax78 a7e9ab26a1 Update code 2013-10-03 18:47:36 +02:00
vemax78 3fd122e9fd Improve management SOAP request/response 2013-10-01 16:40:15 +02:00
vemax78 b0fac2068e Add feature to clone message element 2013-10-01 16:39:27 +02:00
vemax78 06c4763053 Add json binding management 2013-09-30 17:38:08 +02:00
vemax78 fa69ae9bba Fix code 2013-09-30 17:37:34 +02:00
vemax78 c736c23943 Using capwap_printf_macaddress function 2013-09-30 17:37:00 +02:00
vemax78 b94c128a38 Add function to convert macaddress into string 2013-09-30 17:36:43 +02:00
vemax78 fb5327a713 Fix 2013-09-30 13:08:33 +02:00
vemax78 ba699429bf Fix code 2013-09-30 12:19:03 +02:00
vemax78 5e3856cd9c Add ieee 80211 message element to configure request 2013-09-25 21:22:09 +02:00
vemax78 45ca636d6f Add radio configuration with physical information 2013-09-24 19:14:57 +02:00
vemax78 d33daeba4e Fix value 2013-09-24 19:14:27 +02:00
vemax78 8ed0a76617 Improve radio configuration 2013-09-22 22:28:59 +02:00
vemax78 7dcfd657b8 Fix type 2013-09-22 22:28:35 +02:00
vemax78 210e84a453 Added controls 2013-09-22 22:28:07 +02:00
vemax78 2aa926fff8 Fix 2013-09-19 21:17:17 +02:00
vemax78 b5dcf1db0a Fix memory leak into join state 2013-09-18 22:37:29 +02:00
vemax78 3465879b3e Fix SOAP request functions name.
Add check WTP session into capwap echo request
2013-09-16 22:11:32 +02:00
vemax78 08a8af0a70 Drop packets if connection is teardown 2013-09-16 22:10:37 +02:00
vemax78 38b8207f0b Add teardown SOAP request and fix param name 2013-09-15 22:05:27 +02:00
vemax78 89547e1b67 Add forcereset to SOAP Join AC Request for force reset session 2013-09-11 21:21:24 +02:00
vemax78 90eaf9d41e Fix enter loop to wait for the termination of all sessions 2013-08-21 23:14:42 +02:00
vemax78 4474087f15 Added all message element that still need to be included in requests 2013-08-21 23:00:54 +02:00
vemax78 324f1fea88 Add join SOAP event 2013-08-21 22:29:48 +02:00
vemax78 aea53d4e8a Remove dummy string in release build 2013-08-19 22:29:18 +02:00
vemax78 535c952db7 Fix struct type 2013-08-19 22:28:50 +02:00
vemax78 e53808c0d6 Use string into Descriptor Data Sub Message Element 2013-08-19 22:28:41 +02:00
vemax78 d3f1f50c1f Add support for encode/decode base64 binary data 2013-08-18 22:19:56 +02:00
vemax78 d34e98fc2c Implicitly inserted capwap_outofmemory() into the capwap_alloc().
capwap_alloc() can never return NULL.
2013-08-18 19:07:19 +02:00
vemax78 177e997d47 In case of problems with the backend, at receipt of the WTP Requests Message is
correctly sent the result error failer.
2013-08-18 18:37:17 +02:00
vemax78 f81afd5e8c Fix request/response message 2013-08-13 17:53:04 +02:00
vemax78 644084f6d8 Add Running State control message 2013-08-13 17:38:50 +02:00
vemax78 aafe37dc8d Add Configure Status and Data Check Event control message into Capwap DFA 2013-08-13 16:11:31 +02:00
vemax78 17a0bb2f5f Fix type 2013-08-13 16:10:28 +02:00
vemax78 0d34eaa9af Fix 2013-08-11 23:04:24 +02:00
vemax78 badad6e71d Implicit out of memory check in Release Mode 2013-08-11 22:50:12 +02:00
vemax78 7ddb32d217 Added the code that handles the result code of a request. 2013-08-11 18:38:23 +02:00
vemax78 b15e0148b2 Parsed SoapFault error response 2013-08-07 21:48:49 +02:00
vemax78 46857e8864 Add support to soap session into function 2013-08-07 21:48:22 +02:00
vemax78 6b424c5406 Add support to HTTPS SOAP request 2013-08-06 22:15:19 +02:00
vemax78 9a57f2806d Ignore SIGPIPE 2013-08-06 22:14:28 +02:00
vemax78 7b5b9be58b Ignore SIGPIPE 2013-08-06 22:13:00 +02:00
vemax78 deb453f0be Fix dtls 2013-08-05 21:35:03 +02:00
vemax78 9b3dc8152b Add base64 string encode/decode functions 2013-07-30 22:05:32 +02:00
vemax78 73c3354e50 Fix wifi messages 2013-07-27 22:46:17 +02:00
vemax78 47b86f2ea9 Add code for complete authorizeJoin soap request 2013-07-27 22:45:28 +02:00
vemax78 c2ff7e0db5 First stone for the management the AC via webservice 2013-07-25 23:12:43 +02:00
vemax78 996a9e0f36 Progress of the management webservice 2013-07-25 22:19:00 +02:00
vemax78 429fce5420 Improved the code and managed the message HTTP 100 Continue 2013-07-25 22:17:55 +02:00
vemax78 112d9c00e0 Improve soap handler 2013-07-25 17:05:56 +02:00
vemax78 5497650e81 Fix lock 2013-07-24 18:59:37 +02:00
vemax78 75c24a7a9c Fix code 2013-07-23 22:10:35 +02:00
vemax78 4953ff684d Add first draft of calls to backend web service 2013-07-23 22:10:26 +02:00
vemax78 c857ab0d7f Clean code 2013-07-20 22:00:02 +02:00
vemax78 29ceb493fb First draft version of soap client technology into server 2013-07-20 21:01:44 +02:00
vemax78 05203dcea2 Add socket helper function for management non-blocking connection 2013-07-20 17:36:13 +02:00
vemax78 79cb575548 Improved network function 2013-07-15 18:48:47 +02:00
vemax78 fc30c7d54b code cleanup 2013-07-15 18:47:31 +02:00
vemax78 94cf13649a Add action message into dispatch session message 2013-07-07 15:36:53 +02:00
vemax78 2c3c552973 Fix 2013-07-07 11:55:30 +02:00
vemax78 75dcf51496 Rejects the join with the same identifier of the WTP 2013-06-18 22:38:56 +02:00
vemax78 99b6373cd7 Allow daemon mode 2013-06-16 12:09:57 +02:00
vemax78 7b6bd52f48 Centralized control of the AC IP address into recv function 2013-06-09 21:49:43 +02:00
vemax78 00cd4f8511 Fix management controlip message element into discovery state 2013-06-09 21:46:38 +02:00
vemax78 794a8e72d2 Improved handling of message elements parsed. Reduces the memory occupied but
it introduces a small overhead in retrieving of message elements parsed.
2013-06-09 17:41:52 +02:00
vemax78 d9e02ded5a Use mnemonic macro of macaddress size 2013-06-09 17:29:50 +02:00
vemax78 4f119771c0 Inserted zeroed param into create array function 2013-06-08 17:26:10 +02:00
vemax78 49bf2dc5c9 Improved the WTP application to exit 2013-06-05 19:39:03 +02:00
vemax78 4d2292b7f0 Fix data keepalive message init length 2013-06-05 19:28:46 +02:00
vemax78 acd937c3aa Fix array resize with zeroed option 2013-06-05 19:02:02 +02:00
vemax78 444f1e7e92 Complete all message elements 2013-06-02 22:21:49 +02:00
vemax78 4e01450d5c Add message elements 2013-06-01 19:43:28 +02:00
vemax78 ad666966e1 Complete 802.11 message elements 2013-06-01 15:02:56 +02:00
vemax78 214fa54535 Add 80211 message elements 2013-05-31 22:24:58 +02:00
vemax78 cd9fc8b54d Fix error 2013-05-30 22:32:22 +02:00
vemax78 01f3dbd66c Add 80211 message elements 2013-05-30 22:32:08 +02:00
vemax78 96eda13334 Fix control & data keep alive message 2013-05-29 22:35:11 +02:00
vemax78 b99a52ee9d Add also 80211 message element 2013-05-28 23:06:57 +02:00
vemax78 37e60bb755 If not set into wtp.conf the client bind to any port 2013-05-28 22:22:16 +02:00
vemax78 16fe0bb6bd Enable presharedkey SSL 2013-05-27 23:10:49 +02:00
vemax78 6c55b4d71f Improve memory administration for tx/rx packet manager 2013-05-27 21:33:23 +02:00
vemax78 9157cc278b Log netlink error 2013-05-27 21:31:22 +02:00
vemax78 8df566f36e fix thread-safe openssl 2013-05-23 22:38:48 +02:00
vemax78 0a2ae76acc first features of mac80211 driver 2013-05-11 15:08:28 +02:00