Commit Graph

25 Commits

Author SHA1 Message Date
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
2198295c71 Adding icmp unreachable strings (udp_unreach_str) 2013-09-02 19:00:22 -04:00
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
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
1d8911ebb7 changing size of udp output fields len 2013-09-02 17:13:17 -04:00
8c8049dd66 adding data to udp probe module 2013-09-02 17:06:47 -04:00
51da87c605 removing accidental referal to data in udp module 2013-09-02 15:58:53 -04:00
b77100a387 fixing Note the incorrect values for icmp_type, icmp_length, and ttl 2013-09-02 15:57:43 -04:00
c943dd529c is_success -> success in udp probe module 2013-08-30 02:57:48 -04:00
8cd541d039 adding UDP module back in with field set usage 2013-08-30 02:55:39 -04:00
ea39b3bac4 further progress 2013-08-26 07:59:41 -04:00
b70a2835b9 abstracting out port validation because shared between udp and tcp. 2013-08-18 23:36:57 -04:00
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
3b2ea3627e merge 2013-08-17 15:30:31 -04:00
15036cfe83 Proper cleanup and typo fixes 2013-08-17 14:11:58 -05:00
ed47f926f5 Free memory on close 2013-08-17 14:06:34 -05:00
8aac1ccc52 Make oom check consistent, check and correct overlong payload size 2013-08-17 10:20:17 -05:00
ceba676ccf use log_fatal instead of stderr 2013-08-17 01:39:51 -04:00
0b7ab2cac8 use the close callback for cleanup 2013-08-17 01:38:04 -04:00
cfdbe3bbc2 Make the error messages consistent 2013-08-16 22:16:29 -05:00
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
b8246abf06 Add simple length checks on UDP payload; use logger 2013-08-16 17:43:02 -04:00
4fef9f0be8 Bump the snaplen size to full frames 2013-08-16 16:10:37 -05:00
a290942a95 Add support for file:path, text:string, and hex:01020304 for udp probes 2013-08-16 15:50:55 -05:00
490054d239 inital public release 2013-08-16 11:12:47 -04:00