omshell "starts", "ends"

Craig craig5 at pobox.com
Fri May 25 19:58:44 UTC 2007


Did you file a bug or should I?

John Hascall wrote:
>> Ah... should have tried that...
>>
>> Any idea what the following means:
>> starts = "C9VF"
> 
> Looks like a bug in omshell -- it's printing starts
> as a string rather than 4 hex bytes.
> 
>    "C9VF" == 43:39:56:46
> 
> John
> 
> 
>> John Hascall wrote:
>>>> The man page for omshell says that both starts and ends are in hex and 
>>>> should represent the start and end time of the lease.
>>>>
>>>> I tried converting  the number to decimal and then to a date... it 
>>>> wasn't even close.
>>>>
>>>> ends = 03:e2:56:46
>>>> starts = "C9VF"
>>>>
>>>> $ ./cvtHex.pl 03:e2:56:46
>>>> Converting 03e25646...
>>>> dec = 65164870
>>>>          Mon Jan 24 21:21:10 1972
>>>   You've got the bytes backwards
>>>
>>>    0x4656E203 == 1180099075
>>>
>>>   Or about 10 hours from now.
>>>
>>> John
>>>
>>>
>>>
> 
> 
> 
> 


More information about the dhcp-users mailing list