aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bootp.c
AgeCommit message (Collapse)AuthorFilesLines
2005-07-26From Maynard, Chris :Anders Broman1-1/+1
The attached patches, generated via svn diff , correct various compiler & lint warnings, among them: lemon.c(2582) : warning C4090: '=' : different 'const' qualifiers packet-ber.c(212) : warning C4018: '<=' : signed/unsigned mismatch packet-ber.c(228) : warning C4018: '>=' : signed/unsigned mismatch packet-bootp.c(2112) : warning C4018: '<' : signed/unsigned mismatch packet-iscsi.c(801) : warning C4018: '>=' : signed/unsigned mismatch svn path=/trunk/; revision=15085
2005-07-21One forgotten warning fixJörg Mayer1-1/+1
svn path=/trunk/; revision=14974
2005-07-21small warning fixesJörg Mayer1-3/+4
svn path=/trunk/; revision=14973
2005-05-30From Steve Grubb: Fix off by one errors. Fixes part of bug 217.Gerald Combs1-3/+3
svn path=/trunk/; revision=14494
2005-05-24Add extra TLV length checks and signedness fixes. Fixes the infinite loop inGerald Combs1-10/+10
bug 196. svn path=/trunk/; revision=14425
2005-05-06A fix for the previous fix for the infinite loop in bootp, bug #160.Gilbert Ramirez1-3/+3
svn path=/trunk/; revision=14323
2005-05-06Check the offset delta while we loop through the options.Gilbert Ramirez1-2/+11
Make sure the delta is > 0. This intends to fix bug 160, although with a capture file to test it, I can't be totally sure. svn path=/trunk/; revision=14322
2005-05-05Change 802.11f -> F, 802.1d -> D, 802.1x -> X, 802.1q -Q, 802.1P -> pJörg Mayer1-1/+1
svn path=/trunk/; revision=14321
2005-04-19Fix a pile of format string bugs.Gerald Combs1-20/+20
svn path=/trunk/; revision=14141
2005-04-18 some updates from T AndersRonnie Sahlberg1-4/+6
svn path=/trunk/; revision=14125
2005-04-05use proto_item_appent_text() instead of proto_item_append_string() since the ↵Ronnie Sahlberg1-1/+1
hf field is not neccessarily a FT_STRING value always. svn path=/trunk/; revision=14019
2005-03-23The correlation ID is a 32-bit integer, not a string.Guy Harris1-1/+13
svn path=/trunk/; revision=13887
2005-03-23The DNS name data starts at the beginning of the suboption data, not theGuy Harris1-2/+2
beginning of the suboption. svn path=/trunk/; revision=13886
2005-03-23When checking whether suboption data fits within the option, checkGuy Harris1-4/+4
whether the suboption data offset plus the suboption data length is >, not >=, the end of the option data - the end of the option data is the first byte *after* the option data. For CableLabs string suboptions, use the right offset when fetching the data. svn path=/trunk/; revision=13884
2005-01-13Use symbolic names for ARP types.Guy Harris1-5/+7
Clean up indentation. svn path=/trunk/; revision=13015
2005-01-01As we've made the tap_specific_data field of a tap_packet_t structure aGuy Harris1-1/+1
const pointer (so that we don't get complaints when we make the tap-specific data argument to "tap_queue_packet()" a const pointer, allowing dissectors to hand const data to a tap without a complaint), we should make the tap per-packet function take a const pointer as an argument as well. Do so. In some taps, use _U_, or actually use the argument, rather than sticking in dummy "X = X" assignments to fake use of parameters. (This means that the tap functions in question no longer have the notion that they act on a particular static structure wired in.) svn path=/trunk/; revision=12910
2004-12-26From Yaniv Kaul: add Ethernet address-to-name (or, at least, address-to-Guy Harris1-8/+28
vendor-name-and-next-three-bytes-in-hex) resolution for Ethernet/802.x hardware addresses. Move the ARP hardware types into a header file, for use by dissectors other than the ARP dissector. svn path=/trunk/; revision=12839
2004-12-20Use "plurality()" rather than locally-defined "PLURALIZE()" macros, andGuy Harris1-2/+0
get rid of the definition of "PLURALIZE()" in modules that don't use it. svn path=/trunk/; revision=12791
2004-10-26Rename the "boolean" enum to "val_boolean" lest the Microsoft compiler letGerald Combs1-14/+14
its displeasure be known. svn path=/trunk/; revision=12396
2004-10-26Add a "data" item to the opt_info structure, containing a "const voidGuy Harris1-367/+345
*". For val_u_byte, if non-null, it points to a "value_string" table to be used to interpret the value. Replace "toggle" and "yes_no" with "boolean, and have the "data" pointer point to a "struct true_false_string" to be used to interpret the value. The NetBIOS-over-TCP/IP Node Type option can now be a regular val_u_byte value, with the appropriate value_string table. Construct the item for DHCP options by initializing it without the value and appending the value to the item's string with "proto_item_append_text()". svn path=/trunk/; revision=12391
2004-10-25Make yes_no work in "dissect_netware_ip_suboption()" the way it worksGuy Harris1-27/+28
elsewhere, and replace "struct o63_opt_info" with "struct opt_info". svn path=/trunk/; revision=12390
2004-10-25"struct o43pxeclient_opt_info" and "struct o43cablelabs_opt_info" lookGuy Harris1-16/+6
just like "struct opt_info", except for the name of the "enum field_type" field; use "opt_info" instead of them. Rename the equivalent field in "struct o63_opt_info", as well, with an eye towards changing "struct opt_info" to be able to replace "struct o63_opt_info" as well. svn path=/trunk/; revision=12389
2004-10-25Remove val_s_long as it's unimplemented and unused - put it back if it'sGuy Harris1-138/+169
ever necessary. Make some options, that have only one IPv4 address, use ipv4 rather than ipv4_list. Add val_u_short_list, and have val_u_short accept one and only one 16-bit integer. Give options the appropriate type. Shuffle the types a bit in the enum, and shuffle the cases for types around to match the order in the enum. svn path=/trunk/; revision=12388
2004-10-25Rename "ipv4" to "ipv4_list", as it's used for lists of IPv4 addresses,Guy Harris1-48/+58
and add a separate "ipv4"; use that in the dissector for Netware IP options. Add a "presence" option type, for options with no value whose presence is significant; use that in the dissector for Netware IP options. svn path=/trunk/; revision=12387
2004-10-25Pass to the the routines that dissect suboption lists the offset of theGuy Harris1-219/+465
end of the option, and have them do bounds checking. Also, in some places, check the suboption length. In "dissect_netware_ip_suboption()", process the suboption length (which, according to RFC 2242, is present in all suboptions), and use val_u_byte rather than val_u_short for 1-byte options. svn path=/trunk/; revision=12386
2004-10-24Restructure the DHCP option parsing a bit, to make it a bit clearer -Guy Harris1-132/+248
and fix some bugs that this made a bit more obvious. Add checks of the option length. Clean up white space. svn path=/trunk/; revision=12385
2004-10-24Don't display the FQDN in the FQDN option if the length of the FQDN isGuy Harris1-15/+17
zero. Clean up some field names and descriptions. svn path=/trunk/; revision=12384
2004-10-24Fix the length used for the name in the FQDN option.Guy Harris1-2/+2
svn path=/trunk/; revision=12383
2004-10-18From Thomas Anders:Gerald Combs1-20/+23
- change DHCP option 122 dissection to use official RFC 3495/3594 wording (if bootp.pkt.ccc.protocol_version preference setting is 2 or 3) - update CableLabs specification references - some minor cleanup (option 43 also) svn path=/trunk/; revision=12338
2004-10-17From Thomas Anders: DHCP option 6 enhancements:Guy Harris1-42/+109
- add full support for upcoming PacketCable 1.5 - fix bug regarding MTA/CM Device Capabilities Length - PacketCable MTA: fix bug regarding RSVP and UGS-AD options - make presentation more compact (similar to other TLV data dissectors) - change some descriptions and variables to (hopefully) make more sense to DOCSIS/PacketCable users svn path=/trunk/; revision=12325
2004-10-16Clena up a few things.Guy Harris1-3/+5
Squelch a compiler warning. svn path=/trunk/; revision=12311
2004-10-16Add support for draft-ietf-dhc-fqdn-option-07.txtJörg Mayer1-2/+117
svn path=/trunk/; revision=12309
2004-10-16Change Client Identifier display a bit to better handle non-hw identifiers ↵Jörg Mayer1-5/+12
of length 7 svn path=/trunk/; revision=12308
2004-10-14Use "tvb_format_stringzpad()" rather than "tvb_format_text()", as perGuy Harris1-7/+7
RFC 2132, which says Options containing NVT ASCII data SHOULD NOT include a trailing NULL; however, the receiver of such options MUST be prepared to ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ delete trailing nulls if they exist. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ svn path=/trunk/; revision=12295
2004-10-05Use "tvb_format_text()" for string items, so non-printable charactersGuy Harris1-40/+39
don't get stuck into protocol tree item representations (and so that they can be more easily found if, as, and when we get around to handling different character encodings). Clean up white space. Get rid of another sprintf() on top of a string constant. svn path=/trunk/; revision=12211
2004-10-05Fix a bunch of compiler warnings (and some code that was boguslyGuy Harris1-13/+10
attempting to overwrite a string constant - possibly with a longer string!). svn path=/trunk/; revision=12210
2004-10-05Decode cable modem and MTA device capabilities. Make the CableLabsGerald Combs1-130/+852
Client Configuration option number configurable. Add an option to switch between the CCC versions defined in PKT-SP-PROV-I05-021127, IETF draft 5, and RFC 3495. Code contributed by CableLabs. Remove an unneeded macro. svn path=/trunk/; revision=12208
2004-10-01initializing unsigned variables to -1 is considered interestingJörg Mayer1-3/+3
svn path=/trunk/; revision=12173
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-08-22Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bitGuy Harris1-3/+2
integers. Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array values, to the protocol tree, and add routines to add specified 64-bit integer values to the protocol tree. Use those routines in the RSVP dissector. svn path=/trunk/; revision=11796
2004-08-21Missed the second case in last changeJörg Mayer1-1/+1
svn path=/trunk/; revision=11790
2004-08-21The chaddr element is always 16 bytes in size, although only hlen bytes are usedJörg Mayer1-1/+3
svn path=/trunk/; revision=11789
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+1823
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410