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 32.290.783 Times

Net::DHCP::Packet 0.66

  Date Added: March 09, 2010  |  Visits: 1.632


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 =>, Siaddr =>, 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
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  
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  
Libraries  -  CPAN::Mini::Extract 1.16
CPAN::Mini::Extract is a Perl module that can create CPAN::Mini mirrors with the archives extracted. SYNOPSIS # Create a CPAN extractor my $cpan = CPAN::Mini::Extract->new( remote =>, local =>...
26.62 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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
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...
3.88 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