36 Commits

Author SHA1 Message Date
William Kelly
833c781d94 FreeBSD port initial checkin. This is based on 5cd6f3294c,
September 9, 2013, before CMake changes. Includes proto_headers.h.
Most or all of __FREEBSD__ changes should, IMHO, be merged back into Linux version.
This should build on Linux with __FREEBSD__ defined.
2013-10-16 22:12:11 -05:00
Eric
2198295c71 Adding icmp unreachable strings (udp_unreach_str) 2013-09-02 19:00:22 -04:00
Eric
754e2dc1f7 Add icmp_responder to UDP fieldset
icmp_responder is the source address of the DEST_UNREACH ICMP
packet, which is not necessarily the same as the saddr (e.g.
NETWORK_UNREACH)
2013-09-02 18:14:58 -04:00
Eric
d694fe69a6 UDP probe module updates saddr fieldset
ICMP responses (e.g. DEST_UNREACH) to UDP probes (generally)
contain the IP/UDP packet that ellicited the response, though
they do not have to come from the host we sent them to (e.g.
NETWORK_UNREACH). We will "correct" this by switching the saddr
fieldset to be the host we WOULD have received a response from
2013-09-02 17:58:20 -04:00
Eric
ee9593938b Move make_ip_str to probe_modules/packet.c
This is a utility function, mostly useful for probe modules
2013-09-02 17:57:32 -04:00
Zakir Durumeric
1d8911ebb7 changing size of udp output fields len 2013-09-02 17:13:17 -04:00
Zakir Durumeric
8c8049dd66 adding data to udp probe module 2013-09-02 17:06:47 -04:00
Zakir Durumeric
51da87c605 removing accidental referal to data in udp module 2013-09-02 15:58:53 -04:00
Zakir Durumeric
b77100a387 fixing Note the incorrect values for icmp_type, icmp_length, and ttl 2013-09-02 15:57:43 -04:00
Eric
b4c2a42a86 print miliseconds in timestamp-str, and correct timestamp-us description 2013-09-02 14:22:10 -04:00
Eric
cec225302a tcp seq is 32-bits 2013-09-02 13:28:17 -04:00
Eric
d44b0f10e4 ipid is 16-bit and ttl is 8-bit 2013-09-02 13:22:52 -04:00
Zakir Durumeric
c943dd529c is_success -> success in udp probe module 2013-08-30 02:57:48 -04:00
Zakir Durumeric
8cd541d039 adding UDP module back in with field set usage 2013-08-30 02:55:39 -04:00
Zakir Durumeric
65d19a8199 resolve merge conflicts and move timestamp to system field. 2013-08-29 23:05:53 -04:00
Zakir Durumeric
161ba170d9 merging in master 2013-08-29 15:03:23 -04:00
Zakir Durumeric
67aa6f0ab0 adding generic csv output module 2013-08-27 12:03:24 -04:00
zakird
0d3ad52ee0 fixing header guards close issue #48 2013-08-26 12:26:01 -04:00
Zakir Durumeric
ea39b3bac4 further progress 2013-08-26 07:59:41 -04:00
Zakir Durumeric
b4f8698cb0 further progress 2013-08-19 18:10:55 -04:00
Zakir Durumeric
952f6cefa1 building fieldset and probe modules 2013-08-19 04:42:25 -04:00
Zakir Durumeric
a0288adec8 beginning the implementation of new output / probe module interface 2013-08-19 03:02:52 -04:00
Zakir Durumeric
b70a2835b9 abstracting out port validation because shared between udp and tcp. 2013-08-18 23:36:57 -04:00
HD Moore
d57091dcbf Fix strdup/malloc/free ordering to always free the right pointer.
This commit ensures that udp_send_msg is freed before being reallocated
and freed before the process exits. This also changes the last fprintf
to a log_warn() call, which should be more inline with the intent.
2013-08-17 20:52:43 -05:00
Eric Wustrow
3b2ea3627e merge 2013-08-17 15:30:31 -04:00
HD Moore
15036cfe83 Proper cleanup and typo fixes 2013-08-17 14:11:58 -05:00
HD Moore
ed47f926f5 Free memory on close 2013-08-17 14:06:34 -05:00
HD Moore
8aac1ccc52 Make oom check consistent, check and correct overlong payload size 2013-08-17 10:20:17 -05:00
Eric Wustrow
ceba676ccf use log_fatal instead of stderr 2013-08-17 01:39:51 -04:00
Eric Wustrow
0b7ab2cac8 use the close callback for cleanup 2013-08-17 01:38:04 -04:00
HD Moore
cfdbe3bbc2 Make the error messages consistent 2013-08-16 22:16:29 -05:00
Eric Wustrow
9f04ca6bd2 Merge branch 'feature/add-udp-probe-specifiers' of github.com:hmoore-r7/zmap into hmoore-r7-feature/add-udp-probe-specifiers 2013-08-16 17:43:30 -04:00
Eric Wustrow
b8246abf06 Add simple length checks on UDP payload; use logger 2013-08-16 17:43:02 -04:00
HD Moore
4fef9f0be8 Bump the snaplen size to full frames 2013-08-16 16:10:37 -05:00
HD Moore
a290942a95 Add support for file:path, text:string, and hex:01020304 for udp probes 2013-08-16 15:50:55 -05:00
Zakir Durumeric
490054d239 inital public release 2013-08-16 11:12:47 -04:00