Commit Graph

20995 Commits

Author SHA1 Message Date
Guy Harris febd662cf3 Get rid of unused variable.
svn path=/trunk/; revision=21582
2007-04-26 02:36:24 +00:00
Guy Harris abc66d168a Use the right local variable.
svn path=/trunk/; revision=21581
2007-04-26 02:35:36 +00:00
Guy Harris d78cbd4b00 Get rid of no-longer-needed variable.
svn path=/trunk/; revision=21580
2007-04-26 01:35:26 +00:00
Guy Harris 7537b3afa3 Add missing backslash.
svn path=/trunk/; revision=21579
2007-04-26 01:11:24 +00:00
Guy Harris bba0b00392 Rename HASH_ADDRESS to ADD_ADDRESS_TO_HASH, to make it clearer what it
does (i.e., it will add the address bytes to the value that's already
there - it will not initialize the value, so you have to clear it before
doing any hashing).

svn path=/trunk/; revision=21578
2007-04-26 01:01:27 +00:00
Guy Harris 1ed26d317c Add a macro for hashing the bytes of an address into a hash value.
Use it in the IAX2 dissector and in the conversation code.

svn path=/trunk/; revision=21577
2007-04-26 00:51:33 +00:00
Guy Harris 41cafa2212 The data pointer of an address structure is a void *; convert it to a
guint8 * in order to look at the raw bytes of the address.

svn path=/trunk/; revision=21576
2007-04-26 00:03:41 +00:00
Guy Harris 2a48544203 Check to make sure the address really *is* an IPv4 address.
If it is, convert the "void *" data pointer to a "guint8 *", so we can
look at the first byte.

svn path=/trunk/; revision=21575
2007-04-26 00:01:29 +00:00
Guy Harris e077465aa4 The data pointer in an address structure is a void *; if the address is
a MAC address, convert it to a guint8 * in order to look at the bytes of
the address.

svn path=/trunk/; revision=21574
2007-04-25 23:58:43 +00:00
Guy Harris ef5b370850 Use "address_to_str()" to format an address, rather than assuming it's
an IPv4 address.

svn path=/trunk/; revision=21573
2007-04-25 23:56:46 +00:00
Guy Harris 9439c19e31 The data field of an address structure is a void *, so we can't look at
what it points to.  Stop doing that in the code to check for source
routing.

svn path=/trunk/; revision=21572
2007-04-25 23:54:54 +00:00
Guy Harris 17b1c57ec9 Fix the previous fix.
svn path=/trunk/; revision=21571
2007-04-25 23:31:22 +00:00
Guy Harris f5bd20cacf Check that the addresses are FC addresses before looking at them.
If the address is an FC address, convert the data pointer to a guint8 *,
as it's a void *.

svn path=/trunk/; revision=21570
2007-04-25 23:11:22 +00:00
Guy Harris 20611f65e4 Fail if the addresses being checked aren't Ethernet addresses.
svn path=/trunk/; revision=21569
2007-04-25 23:09:58 +00:00
Guy Harris e7fc05410d Use "address_to_str()" to format an address, rather than assuming it's
an IPv4 address.

svn path=/trunk/; revision=21568
2007-04-25 22:33:47 +00:00
Guy Harris e26198a1f7 The data field of an address structure is now a void *; convert it as
appropriate.

Also, throw in a check for the types of the addresses.

svn path=/trunk/; revision=21567
2007-04-25 22:04:46 +00:00
Guy Harris 2361eb46de The data field of an address structure is now a void *; convert it as
appropriate.

svn path=/trunk/; revision=21566
2007-04-25 21:37:15 +00:00
Guy Harris 7acd23c938 The "data" field of an address structure is a "void *"; when looking at
a MAC address, convert it to a "guint8 *".

svn path=/trunk/; revision=21565
2007-04-25 20:14:41 +00:00
Gerald Combs 99c0698b95 From Dustin Johnson:
- A-MSDU updates
  - Secondary Channel Offset tag updates
  - A-MPDU parameter updates
  - Lots of string fixes updates
  
Fixup whitespace.

svn path=/trunk/; revision=21564
2007-04-25 19:38:47 +00:00
Guy Harris c3ac6f1e71 Some types of addresses are data structures; make the address data
pointer in an address structure a "void *", to indicate that it can
point to some arbitrary type of object, rather than a "guint8 *", which
indicates that it points to an array of bytes.

For any address type where the address is a structure, this removes some
alignment warnings; the author of the code to handle a particular
address type has the responsibility of making sure you don't set up the
address structure with misaligned data.  (Yes, it matters, at least on
SPARC.)

svn path=/trunk/; revision=21563
2007-04-25 19:28:56 +00:00
Gerald Combs cde0384abc From Stig Bjørlykke:
Fix break placement for control frames in dissect_ieee80211_common()

svn path=/trunk/; revision=21562
2007-04-25 17:39:38 +00:00
Tomas Kukosa dc9a2c4c14 new parameter EXTERN for #.EXPORTS directive
svn path=/trunk/; revision=21561
2007-04-25 11:14:14 +00:00
Tomas Kukosa dfcfaeeaa9 fread() return value can not match file size on Windows due CR/LF conversion - do not check it
svn path=/trunk/; revision=21560
2007-04-25 10:16:33 +00:00
Tomas Kukosa 6c2acdcfba fix bug in handling of tagged type reference
svn path=/trunk/; revision=21559
2007-04-25 06:33:24 +00:00
Jörg Mayer 70f0c88ea1 proto_tree_add_bits -> iuup_proto_tree_add_bits as discussed
on wireshark-dev to make it compile again

svn path=/trunk/; revision=21558
2007-04-24 21:26:40 +00:00
Luis Ontanon 55507800aa extraInfo was not propperly tagged causing ber decoding errors.
Fixes Bug 1554


svn path=/trunk/; revision=21557
2007-04-24 19:28:12 +00:00
Anders Broman fea883ebec Add a new proto function proto_tree_add_bits() which adds bits to the tree
starting at the bit offset given for the number of bits indicated which wll also return
the value of the bits.
Experimental and for review, documentation to be updated.

svn path=/trunk/; revision=21556
2007-04-24 19:24:14 +00:00
Guy Harris 8ff20a50ce Fix definition of tvb_memcpy() to match declaration.
svn path=/trunk/; revision=21555
2007-04-24 17:12:29 +00:00
Guy Harris 6f8cee8acd "memcpy()" takes void *'s as arguments and returns a void *; have
tvb_memcpy() be similar, to avoid unnecessarily alignment warnings.

Do the same with "ep_tvb_memdup()".

svn path=/trunk/; revision=21554
2007-04-24 11:54:18 +00:00
Ronnie Sahlberg 474e4c7483 add an explicit cast of the callback function in the gtk1 SIGNAL_DISCONNECT_BY_FUNC()
svn path=/trunk/; revision=21553
2007-04-24 06:49:38 +00:00
Guy Harris 0be322bad8 Try to squelch an alignment warning (we put "int"s into the array, so we
know the pointer's aligned appropriately for an array of "int"s).

svn path=/trunk/; revision=21552
2007-04-24 06:43:01 +00:00
Jaap Keuter 686c6b394c Damn qqq-bird. ;)
svn path=/trunk/; revision=21551
2007-04-24 06:16:58 +00:00
Ronnie Sahlberg c1d76f9465 oncly include capture_details_24.xpm IFF we have pcap and if we have gtk>=2 to supress a warning if compiling for gtk 1
svn path=/trunk/; revision=21550
2007-04-24 05:52:01 +00:00
Ronnie Sahlberg 5aaff9b252 if we compile for gtk1 'text' is no longer referenced in the simple_dialog_check_set() function and a warning arises
mark the text argument as _U_ to suppress the warning


svn path=/trunk/; revision=21549
2007-04-24 05:46:13 +00:00
Ronnie Sahlberg 3a0cdfb42b add a missing change from the previous commit
svn path=/trunk/; revision=21548
2007-04-24 05:09:53 +00:00
Ronnie Sahlberg 1f80370b85 Add tracking of uid->domain/account mappings for SMB by tapping the ntlmssp tap for the information from the authentication messages
Improve the tid tracking by putting the host/share information on the tid expansion line so one can see it without opening the expansion


svn path=/trunk/; revision=21547
2007-04-24 05:09:00 +00:00
Bill Meier 6386eda24c Addt'l fixes so suite-unittests will run under windows
svn path=/trunk/; revision=21546
2007-04-24 03:43:08 +00:00
Bill Meier 2c346d9a3c Use correct install target: 'make ..._install (and not 'make 'install_...')
svn path=/trunk/; revision=21545
2007-04-24 02:17:35 +00:00
Guy Harris 1b2cecda53 Need to include <epan/pint.h> to get pletohl() defined.
svn path=/trunk/; revision=21544
2007-04-23 22:34:31 +00:00
Anders Broman c0dc340d5d From Florent DROUIN:
I have made some changes to the final patch to have the operation code decoded
as ForwardSM. A change for TCAP is included too, to be sure that the
application context is not overwritten by the User Info OID (this was the case,
when a MAP open dialog was included in the request).
Fix bug:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1498

svn path=/trunk/; revision=21543
2007-04-23 21:26:27 +00:00
Guy Harris d6fc852779 byteReverse assumes its argument is aligned on a 32-bit boundary; make
it a pointer to a guint32.  Also, use pletohl() to fetch a 32-bit
little-endian quantity.

svn path=/trunk/; revision=21542
2007-04-23 21:23:30 +00:00
Guy Harris 5a4771d9cb The "in" array in an MD5 context is expected to be aligned on a 4-byte
boundary; make it an array of 16 guint32's rather than 64 guint8's, to
ensure that, and add now-necessary casts and remove now-unnecessary
casts.

(Missed on the previous checkin.)

svn path=/trunk/; revision=21541
2007-04-23 21:12:04 +00:00
Guy Harris 0acc6bc5b8 The "in" array in an MD5 context is expected to be aligned on a 4-byte
boundary; make it an array of 16 guint32's rather than 64 guint8's, to
ensure that, and add now-necessary casts and remove now-unnecessary
casts.

svn path=/trunk/; revision=21540
2007-04-23 20:47:07 +00:00
Anders Broman cd66fcfe16 Remove a relic from experimental code.
svn path=/trunk/; revision=21539
2007-04-23 20:30:31 +00:00
Anders Broman b65e5b390a TCAP: Fix up indentation a bit.
GSM MAP: Add returnResultNotLast from TCAP to the included ROS stuff.

svn path=/trunk/; revision=21538
2007-04-23 20:21:31 +00:00
Anders Broman d07a92f8bc TCAP: Fix up indentation a bit.
GSM MAP: Add returnResultNotLast from TCAP to the included ROS stuff.

svn path=/trunk/; revision=21537
2007-04-23 20:20:46 +00:00
Guy Harris 8e32c1e739 Get rid of no-longer-needed, and warning-generated, casts.
svn path=/trunk/; revision=21536
2007-04-23 18:30:29 +00:00
Guy Harris adcccbcdee More const cleanup.
svn path=/trunk/; revision=21535
2007-04-23 18:18:08 +00:00
Guy Harris cdb59eed63 Make Mk16_le() work on both big-endian and little-endian processors and
on processors that don't support unaligned loads - just use pletohs().

svn path=/trunk/; revision=21534
2007-04-23 18:11:12 +00:00
Guy Harris 6f4a938c64 Dissector table names should be pointed to by const pointers.
svn path=/trunk/; revision=21533
2007-04-23 17:40:33 +00:00