<<

NAME

pf::util::dhcp - DHCP related utilities

DESCRIPTION

DHCP related functions necessary to analyze DHCP traffic.

SUBROUTINES

decompose_dhcp

Parses a raw Ethernet frame and decompose it into layers and returns every layer as objects (l2, l3, l4) or hashref (dhcp).

decode_dhcp

Parses raw UDP packet and create an hashref with all the properties of DHCP.

We throw exceptions here on decoding failures.

decode_dhcp_options

Parses the Options portion of a DHCP packet and populate the hashref passed as a parameter.

We try to be as clever as possible regarding how data should be formatted and we convert it to appropriate types.

  decode_dhcp_options( hashref, @options )
dhcp_summary

Returns a one-liner string representing most important information about DHCP Packet hashref passed.

_decode_dhcp_option82

Parses Relay Agent Information (option 82) and add information understood to the dhcp hashref. Relay Agent Information is defined in RFC3046.

On cisco, option 82 can be populated on the layer 3 switch when relaying by entering the following commands:

    conf t
    ip dhcp relay information option
make_pcap_filter

create the pcap filter from the supported DHCP Messages Type

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<<