Status of "RESERVED" flag via OMAPI

Christof Chen christof at chen.de
Sun Jun 1 11:35:59 UTC 2008


Status "reserved" is setable via OMAPI:

> new lease
obj: lease
> set ip-address=192.168.240.190
obj: lease
ip-address = c0:a8:f0:be
> open
obj: lease
ip-address = c0:a8:f0:be
[...]
flags = 00
> set flags=04:00:00:00
obj: lease
ip-address = c0:a8:f0:be
[...]
flags = 04:00:00:00
> update
obj: lease
ip-address = c0:a8:f0:be
[...]
flags = 04:00:00:00

The trick is to supply 32 bits to the flags...

Best regards,

  Christof Chen



Foggi, Nicola schrieb:
> Yeah I ran across these 2 posts from David:
> 
> http://marc.info/?l=dhcp-users&m=115842725319593&w=2
> http://marc.info/?l=dhcp-users&m=116784943116323&w=2
> 
> which gave me hope that maybe it was just a super secret magic bit that I didn't know :)
> 
> Nicola
> 
> -----Original Message-----
> From: dhcp-users-bounce at isc.org on behalf of Simon Hobson
> Sent: Fri 5/30/2008 1:33 AM
> To: dhcp-users at isc.org
> Subject: Re: Status of "RESERVED" flag via OMAPI
>  
> According to previous comments from David Hankins, it's only setable 
> (at the moment) by editing the leases file.
> 
> 



More information about the dhcp-users mailing list