Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.895.813 Times

Net::DHCP::Packet 0.66

  Date Added: March 09, 2010  |  Visits: 1.576

Net::DHCP::Packet

Report Broken Link
Printer Friendly Version


Product Homepage
Download (87 downloads)



Net::DHCP::Packet is a Perl module with object methods to create a DHCP packet. SYNOPSIS use Net::DHCP::Packet; my $p = new Net::DHCP::Packet->new( Chaddr => 000BCDEF, Xid => 0x9F0FD, Ciaddr => 0.0.0.0, Siaddr => 0.0.0.0, Hops => 0); Represents a DHCP packet as specified in RFC 1533, RFC 2132. CONSTRUCTOR This module only provides basic constructor. For "easy" constructors, you can use the Net::DHCP::Session module. new( ) new( BUFFER ) new( ARG => VALUE, ARG => VALUE... ) Creates an Net::DHCP::Packet object, which can be used to send or receive DHCP network packets. BOOTP is not supported. Without argument, a default empty packet is created. $packet = Net::DHCP::Packet(); A BUFFER argument is interpreted as a binary buffer like one provided by the socket recv() function. if the packet is malformed, a fatal error is issued. use IO::Socket::INET; use Net::DHCP::Packet; $sock = IO::Socket::INET->new(LocalPort => 67, Proto => "udp", Broadcast => 1) or die "socket: $@"; while ($sock->recv($newmsg, 1024)) { $packet = Net::DHCP::Packet->new($newmsg); print $packet->toString(); } To create a fresh new packet new() takes arguments as a key-value pairs : ARGUMENT FIELD OCTETS DESCRIPTION -------- ----- ------ ----------- Op op 1 Message op code / message type. 1 = BOOTREQUEST, 2 = BOOTREPLY Htype htype 1 Hardware address type, see ARP section in "Assigned Numbers" RFC; e.g., 1 = 10mb ethernet. Hlen hlen 1 Hardware address length (e.g. 6 for 10mb ethernet). Hops hops 1 Client sets to zero, optionally used by relay agents when booting via a relay agent. Xid xid 4 Transaction ID, a random number chosen by the client, used by the client and server to associate messages and responses between a client and a server. Secs secs 2 Filled in by client, seconds elapsed since client began address acquisition or renewal process. Flags flags 2 Flags (see figure 2). Ciaddr ciaddr 4 Client IP address; only filled in if client is in BOUND, RENEW or REBINDING state and can respond to ARP requests. Yiaddr yiaddr 4 your (client) IP address. Siaddr siaddr 4 IP address of next server to use in bootstrap; returned in DHCPOFFER, DHCPACK by server. Giaddr giaddr 4 Relay agent IP address, used in booting via a relay agent. Chaddr chaddr 16 Client hardware address. Sname sname 64 Optional server host name, null terminated string. File file 128 Boot file name, null terminated string; "generic" name or null in DHCPDISCOVER, fully qualified directory-path name in DHCPOFFER. IsDhcp isDhcp 4 Controls whether the packet is BOOTP or DHCP. DHCP conatains the "magic cookie" of 4 bytes. 0x63 0x82 0x53 0x63. DHO_*code Optional parameters field. See the options documents for a list of defined options. See Net::DHCP::Constants. Padding padding * Optional padding at the end of the packet See below methods for values and syntax descrption. Note: DHCP options are created in the same order as key-value pairs..

Requirements: No special requirements
Platforms: Linux
Keyword: Address Client Create A Dhcp Ip Address Libraries Netdhcppacket New Packet Perl Module Rfc To Create
Users rating: 0/10

License: Freeware Size: 21.5 KB
USER REVIEWS
More Reviews or Write Review


NET::DHCP::PACKET RELATED
Libraries  -  Basset::Object 1.04
Basset::Object is a Perl module used to create objects. This is my ultimate object creation toolset to date. It has roots in Mail::Bulkmail, Text::Flowchart, and the unreleased abstract object constructors that Ive tooled around with in the...
143.36 KB  
Libraries  -  List::RewriteElements 0.09
List::RewriteElements is a Perl module that can create a new list by rewriting elements of a first list. SYNOPSIS use List::RewriteElements; Constructor Simplest case: Input from array, output to STDOUT. $lre =...
26.62 KB  
Libraries  -  GPS::Lowrance 0.31
GPS::Lowrance is a Perl module connect to Lowrance and Eagle GPS devices. REQUIREMENTS The following modules are required to use this module: Carp::Assert GPS::Lowrance::LSI 0.23 Parse::Binary::FixedFormat Win32::SerialPort or...
22.53 KB  
DNS Tools  -  Dynu Basic Dynamic DNS Client 3.42
Dynu Basic Dynamic DNS client uses true dynamic DNS client/server technology to fix a static domain name to a dynamic IP address. While this service is free, it allows Internet users with modems to host Web, FTP, mail and game servers, or other...
898.44 KB  
Network & Internet  -  HTTPManifold 0.9b
HTTPManifold is an application for tunnelling Web/HTTP traffic for multiple servers through a single IP address (a reverse proxy). HTTPManifold is intended for home users and small businesses so that they can host multiple domains and sub-domains...
317.44 KB  
Networking Tools  -  BlockHosts 2.0.5
BlockHosts is a script to record how many times "sshd" or "proftpd" is being attacked, and when a particular IP address exceeds a configured number of failed login attempts, that IP address is added to /etc/hosts.allow (or optionally to any other...
38.91 KB  
Networking Tools  -  Ipanto 3.0.1a
Ipanto Lite is a powerful IP address management (IPAM) tool. The Ipanto project can be used to administer all IP addresses, subnets, and locations within a single repository. It manages up to 5000 devices, offers reporting, and gives access to...
68.9 MB  
Libraries  -  WWW::YahooMaps 0.3
WWW::YahooMaps is a Perl module which can create links to Yahoo! Maps. SYNOPSIS use WWW::YahooMaps; #first method: PASSING ADDRESS BIT-BY-BIT my %addr = ( "street" => "555 N Michigan Ave", "city" => "Chicago, IL 60611", "country" =>...
4.1 KB  
Networking Tools  -  tinc 1.0.8
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and encryption to create a secure private network between hosts on the Internet. tinc is Free Software and licensed under the GNU General Public License. Because the VPN...
491.52 KB  
Libraries  -  HTML::Adsense 0.1
HTML::Adsense is a Perl module that can create adsense widgets easily. SYNOPSIS This module wraps Google Adsense ad creation in OO perl code. use HTML::Adsense; my $myad = HTML::Adsense->new( client => pub-4763368282156432, ); # OR...
4.1 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB