Matteo Cypriani
fb9d093d5a
[Listener] Add extract_radiotap_data()
...
Another refactoring step for read_packet().
2011-08-04 00:35:32 +02:00
Matteo Cypriani
4bae0c9b4e
[Listener] Add extract_calibration_data()
...
A first step in the long way of read_packet() refactoring.
2011-08-04 00:25:08 +02:00
Matteo Cypriani
1dae048f0c
[lib-client] Delay in ms instead of microseconds
...
In owlclient_send_request(), the delay between two packets is now in
milliseconds.
Client & Listener updated to reflect the change.
2011-07-25 12:46:20 +02:00
Matteo Cypriani
051ce9147c
Use -D DEBUG / NDEBUG in Makefiles
...
Instead of #define DEBUG, we now prefer to use either verbose levels
or, when needed, NDEBUG. Each Makefile was modified to be able to pass
-D NDEBUG to the compiler (but the corresponding lines are commented),
except in the modules where assert is never used, in which case the
Makefile passes -D DEBUG.
Long story short: to totally disable debugging code, comment-out the
"-D DEBUG" lines and uncomment the "-D NDEBUG" lines, in every Makefile.
2011-07-25 12:46:20 +02:00
Matteo Cypriani
f008db0e1c
[Listener] Use perror() after recvfrom()
2011-07-25 12:46:20 +02:00
Matteo Cypriani
f71a56bb9a
[Listener] Use verbose levels
2011-07-25 12:46:20 +02:00
Matteo Cypriani
a62387e465
[Listener] Switch verbose mode to verbose level
2011-07-25 12:46:19 +02:00
Matteo Cypriani
5f72702b88
[Listener] Use ETHERTYPE_IP instead of ETH_P_IP
...
ETH_P_IP is Linux-specific.
2011-06-27 10:09:14 +02:00
Matteo Cypriani
3ac53e7b76
[Listener] Fix compilation without USE_PTHREAD
2011-06-27 10:09:14 +02:00
Matteo Cypriani
95b9ea30bf
[lib] Fix #includes for OpenBSD
...
libowlps now builds on OpenBSD (4.9)!
2011-06-27 10:09:14 +02:00
Matteo Cypriani
00d89efd40
[lib] Move owl_iface_mode_monitor() in Listener
...
Only owlps-listener uses owl_iface_mode_monitor(), so we don't need to
keep it in libowlps.
2011-06-27 10:09:14 +02:00
Matteo Cypriani
cc66eb7c59
[Listener] read_packet(): blank the whole request
...
Blank the whole request with memset() instead of setting to zero each
field.
2011-05-05 13:21:41 +02:00
Matteo Cypriani
be784c8ec0
[Listener] Check SS field before to print it
2011-05-03 13:38:50 +02:00
Matteo Cypriani
52c3b34170
[Listener] Fix -f: do not quit anymore
2011-04-13 00:12:18 +02:00
Matteo Cypriani
c23bddffae
[Listener] print_version(): print version number
...
Use git describe to generate a version label. One can also specify a
label:
make OWLPS_VERSION=v3.14alpha
2011-04-12 23:29:47 +02:00
Matteo Cypriani
d31ac3864e
Position endianess conversion in all modules
2011-04-07 16:15:46 +02:00
Matteo Cypriani
d1c6abdaf7
[Listener] Send coordinates in autocalib. requests
...
One can now provide the coordinates of the listener on the command line.
2011-04-07 09:17:46 +02:00
Matteo Cypriani
c1f4c4e77e
[Listener] Check autocalibration_nb_packets
...
Display a warning if the number of autocalibration packets to send is
null.
2011-04-07 09:17:46 +02:00
Matteo Cypriani
df5ed19834
Include headers as needed
...
Move #includes from .h to .c wherever possible.
2011-03-31 16:03:22 +02:00
Matteo Cypriani
d62a7500b1
[lib] Rename run -> owl_run
2011-03-31 16:03:22 +02:00
Matteo Cypriani
4f74524f05
Handle request type in Listener & Aggregator
...
The listener now sends the request type to the aggregator. The
aggregator writes it to the CSV file and transmit it to the positioning
server.
2011-03-25 17:20:18 +01:00
Matteo Cypriani
204750b8c5
[lib] Rename PACKET_TYPE_* -> OWL_REQUEST_*
2011-03-25 16:30:40 +01:00
Matteo Cypriani
4720399513
[lib] mac_bytes_to_string(): do not malloc anymore
...
owl_mac_bytes_to_string() now uses a static buffer, so the caller do not
need to free the returned buffer manually. Because of this static
buffer, it is not thread-safe anymore, therefore we introduce
owl_mac_bytes_to_string_r() that is a thread-safe version.
2011-03-25 11:48:25 +01:00
Matteo Cypriani
e8aa0838f4
Use ETHER_ADDR_LEN instead of 6
2011-03-25 11:48:25 +01:00
Matteo Cypriani
5f9de6e1dc
[Listener] Fix the "don't want to quit" bug
...
In capture(), the pcap_loop() call was blocking, so the program did not
quit if no packet came on rtap_iface. This is now fixed by a call to
pcap_breakloop() in the signal handlers.
2011-03-25 11:48:24 +01:00
Matteo Cypriani
0a52205916
[Listener] Use pthread_cleanup*
2011-03-25 11:48:24 +01:00
Matteo Cypriani
6c4af9020f
close(fd) instead of (void) close(fd)
2011-03-25 11:48:24 +01:00
Matteo Cypriani
98386514e5
Use INET_ADDRSTRLEN instead of 16
2011-03-25 11:48:23 +01:00
Matteo Cypriani
f71a4650e2
[Listener] Better handling of threads
...
Fix thread headers, check the return value of pthread_create(), and wait
for the threads at the end of the program.
2011-03-25 11:48:23 +01:00
Matteo Cypriani
d4e9d9c97b
[Listener] Rename variable couple -> request
2011-03-25 11:48:22 +01:00
Matteo Cypriani
91cba33dcd
[lib] Rename types
...
- Lowercase all defined types.
- Prefix with "owl_".
- Rename couple_message -> owl_captured_request.
- Rename couple_info -> owl_request_info.
2011-03-25 11:48:22 +01:00
Matteo Cypriani
a72a76d5a9
mv /infrastructure-centred/* /
...
Get rid of the infrastructure-centred directory: all the modules are now
at the same level.
2011-03-25 11:48:22 +01:00