Age | Commit message (Collapse) | Author | Files | Lines |
|
as BPF filters return either 0 if they fail or the snapshot length if
they succeed, and a snapshot length of 0 means success is
indistinguishable from failure and the filter expression would reject
all packets.
Now that a snapshot length of 0, inside Ethereal, means "snapshot length
unknown", we have to, when opening a libpcap file for output, make the
snapshot length some non-zero value. We make it WTAP_MAX_PACKET_SIZE,
in case some program uses the snapshot length as a buffer size. (That
doesn't help if there are packets with more than 65535 bytes of data; if
there are, we'd need to raise WTAP_MAX_PACKET_SIZE just to make those
files readable in Ethereal in any case.)
svn path=/trunk/; revision=4905
|
|
calls that passed TRUE or FALSE, rather than an integer value, as the
last argument.
A SOCKS command is one byte, so make the "socks.command" field an
FT_UINT8.
svn path=/trunk/; revision=4904
|
|
subtree under it, so that if an exception is thrown while we're
dissecting the items in the subtree, it runs to the end of the tvbuff
(as, if an exception is thrown, it means the item should cover the stuff
in the tvbuff *and* stuff beyond it).
svn path=/trunk/; revision=4903
|
|
svn path=/trunk/; revision=4902
|
|
once is enough.
svn path=/trunk/; revision=4901
|
|
svn path=/trunk/; revision=4899
|
|
svn path=/trunk/; revision=4898
|
|
the end of string, and find some old data that looked useful, but was
bogus for the frame.
svn path=/trunk/; revision=4897
|
|
svn path=/trunk/; revision=4895
|
|
Ethereal doesn't dissect SNMP if not linked with an SNMP library (and
*did* confuse at least one person into thinking that). Say "without
SNMP MIB support", instead, as you only lose the ability to read SNMP
MIBs and interpret OIDs and variable bindings according to those MIBs.
svn path=/trunk/; revision=4894
|
|
end of the tvbuff is reached before the maximum_length passed by the
caller is reached and before a terminating NUL is found. In this case,
tvb_get_nstringz() returns a -1, but if the string is not artificially
terminated with a NUL by tvb_get_nstringz(), the
caller has no idea where the string should end because 1) the
return value "-1" gives the impression that the string ends
at the end of the buffer but 2) the string does
not end at the end of the buffer, but somewhere in the middle, due
to the packet being shorter than expected.
tvb_get_nstringz() and tvb_get_nstringz0() were both modified.
The FT_STRINGZ case in proto_tree_add_item() is made simpler.
During regression testing, when investigating a regression that I later
corrected, I discovered that strings added through proto_tree_add_item
(FT_STRING, FT_STRINGZ, and FT_UINT_STRING) leaked memory due to double
allocation of the string. The proto_tree_add_string*() functions do
not leak memory, since they only copy the string once. The memory
leak was fixed by adding another argument to the static function
proto_tree_set_string() to let the string ftype code know to g_strdup()
the string or not.
svn path=/trunk/; revision=4891
|
|
and more readable, "if" statement.
svn path=/trunk/; revision=4890
|
|
bitmap and make the function not static.
This bitmap is present in other RPC protocols for NT services as well
besides SAMR.
svn path=/trunk/; revision=4889
|
|
packet-dcerpc-nt.c since this is a structure that is common to all NT services and not only SAMR.
svn path=/trunk/; revision=4888
|
|
not encoded in the same way in the NDR representation.
svn path=/trunk/; revision=4887
|
|
svn path=/trunk/; revision=4886
|
|
svn path=/trunk/; revision=4885
|
|
the packet data. "print" will only show the first 200 members of an array,
whereas "x" doesn't seem to have a limit.
svn path=/trunk/; revision=4884
|
|
svn path=/trunk/; revision=4883
|
|
items are 8 bytes long.
svn path=/trunk/; revision=4882
|
|
svn path=/trunk/; revision=4881
|
|
*including the length of the TPKT header itself*, not just the length of
the payload.
svn path=/trunk/; revision=4880
|
|
svn path=/trunk/; revision=4879
|
|
svn path=/trunk/; revision=4878
|
|
svn path=/trunk/; revision=4877
|
|
"asn1_string_value_decode()", don't pass "g_malloc()" an argument of 0,
as "g_malloc()" will return NULL in that case, and the callers of
"asn1_string_value_decode()" aren't necessarily prepared for a null
argument.
svn path=/trunk/; revision=4876
|
|
"wtap_read()".
Add some additional error checks to the Sniffer file reader.
svn path=/trunk/; revision=4875
|
|
an "err" argument that points to an "int" into which to put an error
code if it fails.
Check for errors in one call to it, and note that we should do so in
other places.
In the "wtap_seek_read()" call in the TCP graphing code, don't overwrite
"cfile.pseudo_header", and make the buffer into which we read the data
WTAP_MAX_PACKET_SIZE bytes, as it should be.
In some of the file readers for text files, check for errors from the
"parse the record header" and "parse the hex dump" routines when reading
sequentially.
In "csids_seek_read()", fix some calls to "file_error()" to check the
error on the random stream (that being what we're reading).
svn path=/trunk/; revision=4874
|
|
Registration, Admission, and Status, so just call it "h225", not
"h225_cs".
svn path=/trunk/; revision=4871
|
|
svn path=/trunk/; revision=4870
|
|
svn path=/trunk/; revision=4869
|
|
svn path=/trunk/; revision=4868
|
|
svn path=/trunk/; revision=4867
|
|
svn path=/trunk/; revision=4866
|
|
svn path=/trunk/; revision=4861
|
|
svn path=/trunk/; revision=4860
|
|
Python iff PYTHON is defined in "config.nmake".
svn path=/trunk/; revision=4859
|
|
svn path=/trunk/; revision=4858
|
|
For file types where we allocate private data, add "close" routines
where they were missing, to free the private data. Also fix up the code
to clean up after some errors by freeing private data where that wasn't
being done.
Get rid of unused arguments to "wtap_dump_open_finish()".
Fix indentation.
svn path=/trunk/; revision=4857
|
|
svn path=/trunk/; revision=4856
|
|
svn path=/trunk/; revision=4855
|
|
addresses to really be quads, i.e. have four numbers.
svn path=/trunk/; revision=4854
|
|
detected, so we do a better job of reporting the item with the problem.
svn path=/trunk/; revision=4853
|
|
ASN1_ERR_NOERROR, as you can't have a dissection error if you've
dissected nothing.
When dissecting a Bind reply, set "ret" to the return value of
"dissect_ldap_response_bind()", so errors get reported properly.
svn path=/trunk/; revision=4851
|
|
just display the message type and body as an error.
If the message type isn't a type we dissect, display the "Unknown
message type" entry with the right offset and length.
svn path=/trunk/; revision=4850
|
|
request type.
Put the request types in order in the switch statement.
svn path=/trunk/; revision=4849
|
|
scripts, and check in changes to add _U_ to some unused arguments (some
other should perhaps be used, so we leave the _U_ out so that the
warnings serve as a reminder to check those).
svn path=/trunk/; revision=4848
|
|
scripts, and check in changes to add _U_ to some unused arguments (some
other should perhaps be used, so we leave the _U_ out so that the
warnings serve as a reminder to check those).
svn path=/trunk/; revision=4847
|
|
svn path=/trunk/; revision=4845
|
|
draft-ietf-tsvwg-sctpcsum-03.
svn path=/trunk/; revision=4844
|