pf::OMAPI
pf::OMAPI
use pf::OMAPI; my $omapi = pf::OMAPI->new( key_name => 'pf_omapi_key',key_base64 => 'xJviCHiQKcDu6hk7+Ffa3A==', host => 'localhost', port => 7911); my $data = $omapi->lookup({'ip-address' => "10.229.25.247" });
host of dhcp server
port of the dhcp server
The reference to the buffer of message
The socket used for communicating with the dhcpd server
A check if we are connected to the omapi service
The name of the key
The current operation
The current message to be sent
The current obj to be sent
The auth id to send
The length of signature
The current id of the message
The key used to sign messages
The key base64 representation of the key
The will set the key to the binary from the base 64 version of the key
builds the key from base64 version of the key
Will connect and authenticate to the omapi server
send the auto info
Look up a message
Sends the message to the dhcpd server
send the message
get the reply of the message
Builds the message from current data
Appends a hash to the buffer to send
Creates a socket
Clear the buffer
Append a list of integers to the buffer
pack data and apeends it the buffer
Parse the omapi message from the given stream
Parses the name value pair from the buffer
Packs the ipaddress from a string
Packs the pack_hardware_address from a string
unpacks the ip address from the buffer
unpacks the hardware from the buffer
Sign the message
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
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.