2006-03-28 Simon Leinen * samplicate.c (enum peer_flags): New flag `pf_CHECKSUM'. (parse_args): Recognize `-n' flag. * README: Document `-n' flag. * rawsend.h (raw_send_from_to): Added `flags' argument. (RAWSEND_COMPUTE_UDP_CHECKSUM): Defined. * rawsend.c (raw_send_from_to): Added `flags' argument. (udp_sum_calc): New function, compute UDP checksum. * AUTHORS: Document UDP checksum generation. 2005-10-26 Simon Leinen * AUTHORS: Added note on James Sella's contributions. * samplicate.c: Integrated support for the `-s' (source address to bind() to) and `-f' (fork) options contributed by James Sella. 2005-10-25 Simon Leinen * AUTHORS: Deleted David's e-mail address. * README: Document `-s' and `-f' options (courtesy of James Sella). * configure.in: Incremented version to 1.3.4. * NEWS: Documented new options in 1.3.4. Updated copyright notice. 2005-10-06 Simon Leinen * NEWS: Added 1.3.3 notes. * configure.in: Incremented version to 1.3.3. * AUTHORS: Mention Jurai Sucik. * samplicate.c (parse_args): Don't forget to clear `defaultflags'. Kudos to Juraj Sucik for finding this bug! 2005-10-06 Simon Leinen * configure.in (AM_INIT_AUTOMAKE): Version 1.3.2 -> 1.3.3. * AUTHORS: Mention Jurai Sucik. * samplicate.c (parse_args): Don't forget to clear `defaultflags'. Kudos to Juraj Sucik for finding this bug! 2001-09-18 Simon Leinen * samplicate.c (parse_args): Terminate on illegal flow port. * configure.in (AM_INIT_AUTOMAKE): Version 1.3.1 -> 1.3.2. * rawsend.c (raw_send_from_to): Convert host to network order in IP header fields for some systems that are known to require that. * samplicate.c (PORT_SEPARATOR): Changed from `:' to `/' to retain backwards compatibility. (usage): Use macros PORT_SEPARATOR, FREQ_SEPARATOR and TTL_SEPARATOR in usage message. (parse_args, parse_peers): Range checks on port and TTL arguments. * ChangeLog: *** empty log message *** * samplicate.c: New parsing code from Vladimir A. Jakovenko. * rawsend.h (DEFAULT_TTL): Moved here from `rawsend.c'. (raw_send_from_to): Take additional `ttl' argument. * rawsend.c (DEFAULT_TTL): Moved to `rawsend.h'. (raw_send_from_to): Take additional `ttl' argument. 2001-09-18 Simon Leinen * samplicate.c: New parsing code from Vladimir A. Jakovenko. * rawsend.h (DEFAULT_TTL): Moved here from `rawsend.c'. (raw_send_from_to): Take additional `ttl' argument. * rawsend.c (DEFAULT_TTL): Moved to `rawsend.h'. (raw_send_from_to): Take additional `ttl' argument. 2001-09-04 Simon Leinen * rawsend.c: Suppress a few type warnings on older systems. 2001-09-02 Simon Leinen * samplicate.c: Include if system has it. (parse_peers, init_samplicator): Changed to return -1 rather than exit() on errors. * rawsend.c (make_raw_udp_socket): Set IP_HDRINCL on systems that define it. * NEWS: Noted BSD spoofing patch. Added pointer to the README for Otmar's patch. * configure.in (AC_INIT): Version 1.3.1. (AC_CHECK_HEADERS): Added ctype.h. * AUTHORS: Added acknowledgement to Vladimir Jakovenko. 2001-07-24 Simon Leinen * samplicate.c: No longer include by default. (read_cf_file): Use strchr() rather than index(). Re-indented. * configure.in: Check for `strchr'. * rawsend.c (raw_send_from_to): Set the destination address. * configure.in: Version 1.2.1 -> 1.3.0. * README: Document -c option and configuration file format (from Otmar Lendl). * NEWS: Document 1.3 changes: `-c' option. * AUTHORS: Better layout. Added Otmar Lendl. 2001-07-24 Simon Leinen * samplicate.c: No longer include by default. (read_cf_file): Use strchr() rather than index(). Re-indented. * configure.in: Check for `strchr'. * rawsend.c (raw_send_from_to): Set the destination address. * configure.in: Version 1.2.1 -> 1.3.0. * AUTHORS: Better layout. Added Otmar Lendl. 2001-07-23 Otmar Lendl * samplicate.c: added configuration file for samplicating based on source address. * README: Document -c option and configuration file format. * NEWS: Document 1.3 changes: `-c' option. 2000-01-20 Simon Leinen * rawsend.c: Use sendmsg() to avoid copying the IP and UDP headers and the received datagram to a separate buffer. * configure.in: Check for . * samplicate.c (parse_args): New function split out from main(). (samplicate): New function split out from main(). Warn if recvfrom() discarded bytes because the buffer was too small. * rawsend.c (raw_send_from_to): Added dynamic allocation of the IP packet buffer. * rawsend.h (MAX_IP_DATAGRAM_SIZE): Removed. * samplicate.c (main): Use the same raw/cooked socket for all peers. * rawtest.c (main): Use make_raw_udp_socket() and new signature of raw_send_from_to(). * rawsend.h, rawsend.c (make_raw_udp_socket): Suppressed address argument. * rawsend.c: Removed Linux-specific code, use BSD interfaces instead. * configure.in: Version -> 1.1. Check for (necessary on Solaris). * INSTALL: Inserted instructions from README. * README: Moved installation instructions to INSTALLATION. * NEWS: Describe `raw' mode. * rawsend.c, rawsend.h (make_raw_udp_socket): New function. (raw_send_from_to): Removed address length arguments. * samplicate.c (enum peer_flags): New type. (struct peer): Added `flags' slot. (main): Understand `-r' option and set pf_RAW on the peers if this is set. (send_pdu_to_peer): New function which calls sendto() or raw_send_from_to() depending on whether the pf_RAW flag is set. (scan_ip): Removed in favor of inet_aton(). * samplicate.c: Include "config.h" and "rawsend.h". Leave out some unnecessary #ifdefs. * rawtest.c: Include "config.h". * rawsend.c: Added autoconf-based header portability. * Makefile.am (EXTRA_PROGRAMS): New macro, put `rawtest' here. 2000-01-19 Simon Leinen * AUTHORS, ChangeLog, COPYING, INSTALL, Makefile.am, NEWS, rawtest.c, rawsend.h, rawsend.c: New files. 2000-01-18 Simon Leinen * samplicate.c (scan_ip): Fixed for little-endian systems. Return error if octet > 255. Use pointer argument to avoid returning a struct. * Makefile.in (LIBS): Set from @LIBS@. 1999-10-29 Simon Leinen * README (DOWNLOADING): New section pointing to the WWW distribution URL. * Makefile.in (DISTDIR): Changed distribution directory. (dist): Make distribution directory before installing files therein. * Makefile.in: Added variables and targets to simplify distribution. 1999-10-06 Simon Leinen * README: New file. 1999-10-05 Simon Leinen * Makefile.in: Simplified by removing APPS variable. Support @srcdir@. * samplicate.c (main): Accept `-h' (help) argument. No longer use select(), just block on recvfrom(). (usage): Further improved. * configure.in: No longer check for sizes of integer types. No longer check for time struct definitions. * configure.in: No longer check for . * samplicate.c (usage): Improved usage message. * configure.in, Makefile.in: replicate -> samplicate. * Makefile.in, configure.in, samplicate.c: New file.