Matteo Cypriani
3f0d07a672
[Listener] Drop packets emitted by ourselves
2011-03-16 16:44:23 +01:00
Matteo Cypriani
a4d001c4fb
[Listener] Fix autocalibration port printing
2011-03-16 16:44:23 +01:00
Matteo Cypriani
22ee24655a
[i-c] Remove ap_ip_addr from autocalibration_hello
...
The listener does not send its IP address explicitly in the Hello
message anymore. Instead, the aggregator now extract the source address
of the Hello packet.
2011-03-16 16:44:23 +01:00
Matteo Cypriani
2af46ea263
[Listener] Fix Hello emission
...
The source interface is not forced to wifi_interface anymore.
2011-03-16 16:44:22 +01:00
Matteo Cypriani
7139be3070
[Client] Get rid of the last indent tabs
2011-03-16 16:44:22 +01:00
Matteo Cypriani
bbe43536ad
[Aggregator] Get rid of the last indent tabs
2011-03-16 16:44:22 +01:00
Matteo Cypriani
719514eab6
[lib] Get rid of the last indent tabs
2011-03-16 16:44:22 +01:00
Matteo Cypriani
e2963e676b
[Listener] Get rid of the last indent tabs
2011-03-16 16:44:22 +01:00
Matteo Cypriani
7b5600881d
[lib-client] Add TODO
2011-03-16 16:44:22 +01:00
Matteo Cypriani
5c7ad599a6
[Listener] Add option autocalibration_ip (-D)
...
This option allows to send the autocalibration requests to an other host
than the aggregation server (which remains the default if -D is not
used).
2011-03-16 16:44:22 +01:00
Matteo Cypriani
d9b7a11d3a
[Listener] Document -P in the short help
2011-03-16 16:44:22 +01:00
Matteo Cypriani
984ced2d10
[Listener] Add option display_captured (-c/-Q)
...
The packet captured are no longer displayed when in verbose mode.
The new option 'display_captured' (or command-line -c) activates this
behaviour. One can use -Q to deactivate.
2011-03-16 16:44:22 +01:00
Matteo Cypriani
ac8438a33b
[Listener] Use verbosity instead of #ifdef DEBUG
...
Whenever possible, test the value of GET_VERBOSE() instead of a #ifdef
DEBUG.
2011-03-16 16:44:22 +01:00
Matteo Cypriani
80f17b08b7
[Aggregator] Fix typo
2011-03-16 16:44:22 +01:00
Matteo Cypriani
3979788c77
[Listener] Change autocalibration requests port
...
Autocalibration positioning requests were previously (and stupidly) sent
on the aggregation port. We can now chose the port for autocalibration
requests.
2011-03-16 16:44:22 +01:00
Matteo Cypriani
ee89f9ea28
[Listener] Reindent macros in header
2011-03-16 16:44:22 +01:00
Matteo Cypriani
57f1331273
[Listener] Fix reading of QoS Data frames
...
The IEEE 802.11 header size is 2 bytes bigger when a Data frame has QoS
information.
2011-03-16 16:44:08 +01:00
Matteo Cypriani
87e364a633
[Listener] Accept all data frames
...
The listener dropped all non-bare Data frames. It now accepts Data
subtypes as well (QoS Data, etc.).
2011-03-16 14:52:58 +01:00
Matteo Cypriani
b07a4eb63d
[Client] Add Makefile for OpenWrt 10.03
2011-03-16 14:52:58 +01:00
Matteo Cypriani
e3353e835b
[Aggregator] Fix deletion of the last AP
2011-03-16 14:52:58 +01:00
Matteo Cypriani
4a89410b49
[Listener] packet_type is now unsigned
2011-03-16 14:52:58 +01:00
Matteo Cypriani
8474fef520
[Listener] Reorganise implicit/explicit code
...
Reorganise read_packet() code for detection of implicit/explicit
requests. Quite buggy, it was.
Word of the day: OMG GOTOZ LOL111
2011-03-16 14:52:58 +01:00
Matteo Cypriani
2e16e62c44
[Listener] Radiotap header is little-endian!
...
Use le16toh() instead of ntohs() for rtap header length.
2011-03-16 14:52:58 +01:00
Matteo Cypriani
0a8ef2793b
[Aggregator] Check "autocalibration" option
...
Option "autocalibration" (-a) was implemented but not checked
(autocalibration was always activated). This is now fixed.
2011-03-16 14:52:58 +01:00
Matteo Cypriani
2bfb322728
[Aggregator] Add -v (verbose) option
2011-03-16 14:52:58 +01:00
Matteo Cypriani
ae3131c047
[Aggregator] Add some debug messages
2011-03-16 14:52:58 +01:00
Matteo Cypriani
8fdfd6819e
Use -Wextra instead of -W in all Makefiles
...
This changes nothing except readability.
Fix default build options in Makefile_atheros for Listener.
2011-03-16 14:52:58 +01:00
Matteo Cypriani
68746458f1
[i-c] Update TODOs
2011-03-16 14:52:57 +01:00
Matteo Cypriani
8319ca112a
[Aggregator] Fix autocalibration scheduler
...
The list of knowns APs is now handled as a double-linked token ring
instead of a double-linked list.
The scheduler for autocalibration transmissions is now operational!
Delete the now-useless function move_ap_front(), which was not used
before anyway.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
97a1e7c72a
[i-c] Use htonl/ntohl() to exchange autocal. orders
2011-03-16 14:52:57 +01:00
Matteo Cypriani
bdecd07125
[Aggregator] Launch monitor aps thread
2011-03-16 14:52:57 +01:00
Matteo Cypriani
05ceea9950
[i-c] Make more verbose autocalibration exchanges
...
When in debug mode, aggregator and listener both output information when
sending or receiving autocalibration hello messages or orders.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
564996262a
[Aggregator] Fix autocalibration hello thread
...
- A second instance of monitor_couples() was threaded instead of
listen_for_aps() (copy/paste fail!).
- Fix a typo in the config variable "autocalbration_port".
- Add some debug messages.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
2d62705edd
[Listener] Use lib-client functions to send Hellos
2011-03-16 14:52:57 +01:00
Matteo Cypriani
cc83d36336
[i-c] Get rid of inline warnings
...
GCC was complaining about functions "declared inline after being
called". This commit suppresses all inline declarations (-O2 inlines
automatically small functions anyway).
2011-03-16 14:52:57 +01:00
Matteo Cypriani
c31d753e00
[Client] Fix initialisation of packet_size
...
+Fix print_usage()
2011-03-16 14:52:57 +01:00
Matteo Cypriani
56c831ffab
[lib-client] Fix "invalid argument" bug
...
Fix arguments of sendto() in owlps_send_packet().
2011-03-16 14:52:57 +01:00
Matteo Cypriani
5fb93d9dd3
[Listener] Get MAC and IP, then launch threads
...
Operation order is better that way, because autocalibrate_hello() needs
to know MAC and IP addresses of the AP.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
c17af1cf95
[Client] Add Makefile_atheros
...
And tweak Makefile.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
6cbbcc957b
[Listener] Update configuration display
...
Configuration display when not using libconfuse was outdated.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
737630b8c9
[Listener] Add option -V
...
The new option -V displays the compilation-time options. In the future,
it should display the version number.
When the user calls the program either with -h or the new option -V, we
do not try any more to open and parse the configuration file (which was
useless since -h, and now -V, exit the program).
2011-03-16 14:52:57 +01:00
Matteo Cypriani
3c0f74fcb3
[Listener] Fix strict-aliasing rule warning
2011-03-16 14:52:57 +01:00
Matteo Cypriani
ed7828a339
[Listener] Fix OWLPSFLAGS in Makefiles
...
Makefiles declared an OWLPSFLAGS variable for compilation-time option,
but did not include it in the compilation command. This is now fixed.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
10e3bb7ab0
[Listener] Fix compilation without pthreads
2011-03-16 14:52:57 +01:00
Matteo Cypriani
58568e276a
[i-c] Fix Atheros Makefiles
...
Add Makefile_atheros for libowlps-client.
Fix Makefile_atheros for listener.
2011-03-16 14:52:57 +01:00
Matteo Cypriani
f804855309
[Aggregator] Send order to APs
...
Add options -C and -K.
Rename default autocalibration values in aggregator and listener.
2011-03-16 14:52:56 +01:00
Matteo Cypriani
f35170173a
[Aggregator] Standardise function's head comments
2011-03-16 14:52:56 +01:00
Matteo Cypriani
074cd5a27a
[Aggregator] Handle AP IP address (from Hello)
2011-03-16 14:52:56 +01:00
Matteo Cypriani
fe0ea4bcdc
[i-c] Update Makefile
...
Add libowlps-client building and update old code.
2011-03-16 14:52:56 +01:00
Matteo Cypriani
eff2455897
[Listener] Send IP in Hello messages
2011-03-16 14:52:56 +01:00