aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bootp.c
AgeCommit message (Collapse)AuthorFilesLines
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2006-04-17From Thomas Anders:Jaap Keuter1-67/+90
- allow DHCP option 43 suboption 8 (OUI) for CableLabs clients to be a 6-byte string (as required for DOCSIS CMs) to account for inconsistencies in different CableLabs specifications - add new DHCP option 60 fields 0x0d (IP Filters Support) and 0x0e (LLC Filters Support) for CableLabs DOCSIS 2.0 CMs - rename PKT_CM_* variables to have a DOCS_CM prefix instead (overdue, as indicated by an existing comment) - update specification references svn path=/trunk/; revision=17884
2006-03-09Display more info for some PXE DHCP options:Tim Potter1-6/+76
- Display UUID for tag #97 (Client machine identifier) - Display UNDI major and minor version for tag #94 (Client network interface identifier) - Use value strings for tag #93 (Client system architecture) The byte ordering is messed up for the GUID though. svn path=/trunk/; revision=17541
2006-02-16Use the new "proto_tree_add_*_format_value" routines.Guy Harris1-15/+15
svn path=/trunk/; revision=17316
2006-02-08Add support for PacketCable option 60/suboption 5.23. Sponsored by Gerald Combs1-18/+102
CableLabs. svn path=/trunk/; revision=17219
2006-01-16done:Jörg Mayer1-3/+0
packet-ntp.c: Rather confused and incorrect use of g_snprintf return value packet-pim.c: whitespace change packet-icmpv6.c: g_snprintf takes trailing \0 into account, fix off by 1 error packet-clnp.c: Fix incorrect use of g_snprintf return value packet-isakmp.c: g_snprintf takes trailing \0 into account packet-tr.c: Fix incorrect use of g_snprintf return value packet-radius.c: Fix incorrect use of g_snprintf return value packet-radius.h: constify a string variable packet-ldap.c: The return value isn't needed, so don't use it incorrectly packet-tcp.c: Fix incorrect use of g_snprintf return value packet-windows-common.c: Remove unneeded DISSECTOR_ASSERT packet-smb-sidsnooping.c: g_snprintf takes trailing \0 into account packet-pvfs2.c: g_snprintf takes trailing \0 into account packet-ptp.c: Remove #include snprintf packet-ppp.c: Fix incorrect use of g_snprintf return value packet-ospf.c: Fix incorrect use of g_snprintf return value packet-mip6.c: snprintf -> g_snprintf packet-bootp.c: Remove a commented out bad use of g_snprintf packet-ber.c: snprintf -> g_snprintf, g_snprintf takes trailing \0 into account 2do: 52 packet-ieee80211.c: 2DO 2 packet-nfs.c: 2DO - too many side effects 33 packet-bgp.c: 2DO 18 packet-dns.c: 2DO 14 packet-dcm.c: 2DO 13 packet-x11.c: 2DO 11 packet-kerberos.c: 2DO 10 packet-diameter.c: 2DO 9 packet-snmp.c: 2DO 9 packet-pgm.c: 2DO 7 packet-nbns.c: 2DO 6 packet-fcswils.c: 2DO 5 packet-wccp.c: 2DO 5 packet-cops.c: 2DO 4 packet-wtp.c: 2DO svn path=/trunk/; revision=17038
2006-01-11From Thomas SillaberJaap Keuter1-0/+35
here is the Patch for: - AVA (Alcatel Automatic VLAN Assignment) - QBSS ( QOS Basic Service Set) svn path=/trunk/; revision=17008
2005-12-23add Jaap K's extensionsRonnie Sahlberg1-349/+412
also change one (of several:-( ) arrays to be accessed through accessor functions so proper bounds checking is done. there are many other inbstances of arrays in this dissector that are accessed with no proper bounds checking and the same thing should be done for them svn path=/trunk/; revision=16891
2005-12-22As reported by Mark Millet <mmillet@cisco.com>Jörg Mayer1-26/+25
Add message types 13-17 for option 53 decoding. svn path=/trunk/; revision=16879
2005-10-20From Stephen Donovan:Anders Broman1-1/+1
Allow Ethereal to decode the IP address inside of Option 118 svn path=/trunk/; revision=16275
2005-10-08improve get_dns_name now that we have cheap emem allocated buffersRonnie Sahlberg1-4/+3
and get rid of a few strcpy() a whole lot of arrays from the stack and make the function prototype slightly nicer. svn path=/trunk/; revision=16166
2005-09-13Convert some more "tvb_memcpy()"s fetching IPv4 and IPv6 addresses toGuy Harris1-7/+8
calls to "tvb_get_ipv4()" and "tvb_get_ipv6()". Fix a call in the BGP dissector to properly fetch an IEEE floating-point number. Update some I-D info. svn path=/trunk/; revision=15774
2005-09-11Replace tvb_memcpy() calls that extract IPv4 addresses into a guint32,Guy Harris1-1/+1
and that extract IPv6 addresses into a "struct e_in6_addr", with tvb_get_ipv4() and tvb_get_ipv6() calls - except for some that we remove, by using proto_tree_add_item(), rather than replacing. Have epan/tvbuff.h include epan/ipv6-utils.h, to define "struct e_in6_addr" (not necessary to declare the tvbuff routines, but including it there means "struct e_in6_addr" is guaranteed to be defined before those declarations, so we don't get compiler complaints if we define it *after* those declarations). svn path=/trunk/; revision=15758
2005-09-01Get rid of a no-longer-used #define.Guy Harris1-2/+0
svn path=/trunk/; revision=15659
2005-09-01Use "proto_tree_append_text()" rather than appending to an ep_allocedGuy Harris1-142/+114
buffer (that buffer wasn't getting cleared for each item). svn path=/trunk/; revision=15655
2005-08-31change g_string_sprintf[a]() to g_snprintf() and emem allocated memory.Ronnie Sahlberg1-58/+62
svn path=/trunk/; revision=15631
2005-08-30remove some g_string_printf[a]() and replace it with g_snprintf() to ↵Ronnie Sahlberg1-15/+17
ememified buffers svn path=/trunk/; revision=15622
2005-08-28another value_string that was not terminatedRonnie Sahlberg1-1/+1
fix a bug from the previous checking as well. svn path=/trunk/; revision=15577
2005-08-28add missing value_string terminationRonnie Sahlberg1-0/+1
svn path=/trunk/; revision=15576
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