Commit Graph

21014 Commits

Author SHA1 Message Date
Tomas Kukosa 9e368307eb minor formal changes
svn path=/trunk/; revision=21601
2007-04-27 07:37:30 +00:00
Tomas Kukosa 9f6c1ed0bb - new #.Exports parameter VALS_WITH_TABLE which "exports" whole table into header file
/it is only one way how to use it in Windows plugins/
- better handling of imports and definitions if more ASN.1 sources are compiled together
- fix tag handling on top level of PDU
- new -I command line option for path(s) of conformance files including

svn path=/trunk/; revision=21600
2007-04-27 07:35:01 +00:00
Jaap Keuter 1eed0eae40 From Bingyao Du:
Attachment is a patch for adding a new Juniper NSRP dissector. In this patch, OICQ author email address 
<dubingyao@gmail.com> has also been updated to <secfire@gmail.com>. 

svn path=/trunk/; revision=21599
2007-04-27 06:34:31 +00:00
Guy Harris 235596a3c8 From Jeff Foster: add support for Cisco HDLC captures.
svn path=/trunk/; revision=21598
2007-04-26 20:06:06 +00:00
Guy Harris 65b4512fe3 As with other types of extra info, tag the UID extra info. Don't add
stuff to the UID tree unless it's UID stuff.

Also, as we appear to allow for null domain and account information in
dissect_smb_uid(), check for null information before trying to add it to
the top-level item.

svn path=/trunk/; revision=21597
2007-04-26 19:44:18 +00:00
Jörg Mayer b5b70b8405 Tiny formatting change
svn path=/trunk/; revision=21596
2007-04-26 15:39:41 +00:00
Guy Harris 08ab8d8734 mtp3_addr_to_str_buf() and mtp3_pc_hash() expect to be passed a pointer
to a mtp3_addr_pc_t; declare them as such, and pass the argument as
such.

svn path=/trunk/; revision=21595
2007-04-26 07:57:44 +00:00
Anders Broman ccac0e7983 Change the signature of proto_tree_add_bits() and add proto_tree_add_bits_ret_val()
which will hopefully be more acceptable.
Change name of tvb_get_bits() in ansi_801

svn path=/trunk/; revision=21594
2007-04-26 06:39:29 +00:00
Jaap Keuter 066ce1b938 Fix for bug 1505. Adding getprinterdriver levels 2, 6, and (partially) 101.
svn path=/trunk/; revision=21593
2007-04-26 06:00:48 +00:00
Guy Harris f13901ef1c memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21592
2007-04-26 05:47:34 +00:00
Guy Harris f260d1cd81 memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21591
2007-04-26 05:43:43 +00:00
Guy Harris ba3792fc78 memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21590
2007-04-26 05:40:48 +00:00
Guy Harris 847846d825 memmove() is needed only if the source and destination might overlap.
svn path=/trunk/; revision=21589
2007-04-26 05:35:04 +00:00
Guy Harris f16cd039c9 Make ADD_ADDRESS_TO_HASH() take a pointer to an address as an argument,
as the other address macros do.

svn path=/trunk/; revision=21588
2007-04-26 04:30:41 +00:00
Guy Harris 8b0bc56f2c See previous comment.
svn path=/trunk/; revision=21587
2007-04-26 03:43:34 +00:00
Guy Harris 9463cd9070 Umm, that's *not* how you compare addresses for equality....
svn path=/trunk/; revision=21586
2007-04-26 03:41:44 +00:00
Guy Harris 29c7090c23 Copy up to 4 bytes from the source address, rather than just copying the
first byte; if the goal is to have the address not be fake for IPv4,
that's the way to do it.

svn path=/trunk/; revision=21585
2007-04-26 03:38:40 +00:00
Guy Harris 8a998bf38a For address types where the address is a bunch of bytes, convert the
address data pointer from a void * to a guint8 *.

For AT_STRINGZ, convert it to a char *.

Fix indentation.

svn path=/trunk/; revision=21584
2007-04-26 03:32:38 +00:00
Guy Harris ff195c6868 For 1-byte and 2-byte FIDs, convert the void * data pointer in the
address to a guint8 *, to get at the bytes.

svn path=/trunk/; revision=21583
2007-04-26 03:08:23 +00:00
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