aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
Commit message (Collapse)AuthorAgeFilesLines
* Check for NULL return value from wtap_dump_open().Gilbert Ramirez2006-04-261-0/+4
| | | | | | Fixes coverity bug 159. svn path=/trunk/; revision=18005
* added compression support for capture file output. The Save/As dialog now ↵Ulf Lamping2005-09-141-1/+1
| | | | | | | | | | | | | | | | has a checkbox "Compress with gzip" currently limited to Ethereal and all the variants of libpcap filetypes only. We might want to add output compression support to the other tools as well (tethereal, mergecap, ...). We might also want to add support for the other filetypes, but this is only possible if the filetype functions doesn't use special output operations like fseek. One bug is still left: if the input and output filetypes while saving are the same, Ethereal currently optimizes this by simply copy the binary file instead of using wiretap (so it will be faster but it will ignore the compress setting). Don't know a good workaround for this, as I don't know a way to find out if the input file is currently compressed or not. One idea might be to use a heuristic on the filesize (compared to the packet size summmary). Another workaround I see is to remove this optimization, which is of course not the way I like to do it ... svn path=/trunk/; revision=15804
* The time stamp in a Wiretap packet header is now a wtap_nstime, not aGuy Harris2005-08-241-3/+3
| | | | | | "struct timeval". svn path=/trunk/; revision=15522
* From Brice Augustin: Use the correct packet length in randpkt.Gerald Combs2005-07-261-1/+1
| | | | | | Build randpkt.exe by default under Windows. svn path=/trunk/; revision=15092
* More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer2005-07-231-6/+6
| | | | svn path=/trunk/; revision=15015
* Add SCTP and MEGACO types, so that we can add SCTP to the "random" test.Gerald Combs2005-03-271-16/+61
| | | | svn path=/trunk/; revision=13931
* Insert "%s" at various points in an attempt to trigger format string bugs.Gerald Combs2005-03-171-1/+7
| | | | svn path=/trunk/; revision=13792
* For UDP output, set the length to 65535 instead of 0.Gerald Combs2005-03-161-1/+1
| | | | svn path=/trunk/; revision=13768
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* Remove a comma at end of enumJörg Mayer2004-02-231-2/+2
| | | | svn path=/trunk/; revision=10198
* Clean up the TDS dissector a bit. Change a lot of signed ints toGerald Combs2002-11-171-1/+24
| | | | | | | | | | | | | unsigned, and set their size to match the protocol data assigned to them. Make sure the number of columns read doesn't exceed MAX_COLUMNS. Explicitly check for integer values > 0. Switch from using memcpy with tvb_get_ptr to tvb_memcpy. Make indentation consistent. Add TDS support to randpkt. Most of the generated packets won't pass the heuristic checks, but enough should make it through to adequately test the dissector. svn path=/trunk/; revision=6653
* Add support for building randpkt under Windows.Gerald Combs2002-10-161-1/+5
| | | | svn path=/trunk/; revision=6433
* Fix signed/unsigned type mismatches, as pointed out by Silvio.Gerald Combs2002-10-151-2/+35
| | | | | | Add BGP output to randpkt. svn path=/trunk/; revision=6420
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-4/+4
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Add initial support for GIOP.Gerald Combs2002-05-181-3/+37
| | | | svn path=/trunk/; revision=5501
* From Peter Valchev: fix editcap to assign the result of "getopt()" to anGuy Harris2002-02-241-2/+2
| | | | | | | | | | "int" and to check "getopt()"s return value with -1 rather than EOF. Fix other "getopt()" loops to check against -1 as well (EOF is -1 on most if not all platforms, but the Single UNIX Specification says "getopt()" returns -1, so we should check against -1, not EOF). svn path=/trunk/; revision=4793
* Add ncp2222 as a type of packet than randpkt can produce.Gilbert Ramirez2002-02-141-6/+29
| | | | | | | If type passed in with -t option is unknown, die instead of using Ethernet as a default. svn path=/trunk/; revision=4737
* Hopefully the last time I have to change my e-mail address.Gilbert Ramirez2001-11-131-2/+2
| | | | svn path=/trunk/; revision=4199
* BACNET support, from Hartmut Mueller.Guy Harris2001-03-311-3/+24
| | | | svn path=/trunk/; revision=3214
* Make sure to pass the sent/received direction from pppdump.c inGilbert Ramirez2000-09-211-4/+4
| | | | | | | | | | | | | | | | pseudo_header. Use generic "p2p_phdr" instead of "lapd_phdr". Modify toshiba.c and packet-lapd.c to take that into account. Add frame.p2p_dir, a filterable field, 0=sent, 1=recvd Make p2p_dir available in packe_info, as I think it will be needed in VJ COMP and UNCOMP dissection. Rename WTAP_ENCAP_TR to WTAP_ENCAP_TOKEN_RING. Mention pppd-log support in man page. Mention atmsnoop in README. svn path=/trunk/; revision=2455
* Add syslog support to randpkt.Gerald Combs2000-06-111-2/+24
| | | | | | Fix problems revealed by randpkt, add OS-specific info. svn path=/trunk/; revision=2056
* Add wtap-int.h. Move definitions relevant to the internal workins of wiretapGilbert Ramirez2000-05-191-2/+2
| | | | | | | | | to that file, leave public definitions in wtap.h. Rename "union pseudo_header" to "union wtap_pseudo_header". Make the wtap_pseudo_header pointer available in packet_info struct. svn path=/trunk/; revision=1989
* Use new-style wtap_dump().Gilbert Ramirez2000-05-191-2/+3
| | | | svn path=/trunk/; revision=1978
* Add NBNS support.Guy Harris1999-10-071-2/+24
| | | | svn path=/trunk/; revision=780
* Added ICMP and DNS to randpkt.Gilbert Ramirez1999-10-061-1/+41
| | | | svn path=/trunk/; revision=777
* Fixed randpkt so it isn't linked to X11 libs. Removed randpkt from defaultGilbert Ramirez1999-09-171-2/+2
| | | | | | target list, so a 'make randpkt' is required if you want to build it. svn path=/trunk/; revision=684
* Added ip, tcp, and udp to randpkt.Gilbert Ramirez1999-09-101-3/+54
| | | | svn path=/trunk/; revision=650
* Added random packet generator.Gilbert Ramirez1999-09-101-0/+293
svn path=/trunk/; revision=645