IP Address Fields in OMAPI

Matt Causey matt.causey at gmail.com
Wed Nov 25 16:35:29 UTC 2009



--
Mall
On Nov 25, 2009, at 6:00, Jason Frisvold <frisvolj at lafayette.edu> wrote:

> On 11/25/2009 01:13 AM, Matt Causey wrote:
>> perl -e 'use Socket; print inet_ntoa( pack( "N", hex( f02fc509 ) ) );
>> print "\n";'
>>
>> Yields:
>>
>> 240.47.197.9
>
> Is 144.47.197.9 the local address?
>
>> This is not my ip address, and I don't know how else to interpret
>> these fields.  This is the same way I interpret the unix time fields,
>> and it works fine.  Grr.
>>
>> Does anyone know how to get the ip address from these fields?
>
> Your code above should suffice.  A bit slicker than what I was  
> using, so I might steal it..  :)
>
> I'm not 100% sure what these fields represent, though.  ie, I'd  
> venture a guess that partner-address is the address of the failover  
> peer, but I'm not 100% certain.  Regardless, your interpretation of  
> the hex code is correct.  At least, from what I've observed locally,  
> anyway.
>
>> Matt
>
> -- 
> ---------------------------
> Jason Frisvold
> Network Engineer
> frisvolj at lafayette.edu
> ---------------------------
> "What I cannot create, I do not understand"
>   - Richard Feynman
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users



More information about the dhcp-users mailing list