used to set a particular ip binding in the pool as a fixed/static ip lease . this method does not set the lease as active , but instead reserves that ip for only the mac provided . to set the lease as active , the methods getanyavailablelease or getspecificavailablelease will return the correct binding given the same mac provided to this method is used to bind the lease later on . concode_field_sep ArrayList<DHCPBinding> DHCP_POOL concode_elem_sep IPv4Address STARTING_ADDRESS concode_elem_sep Logger log concode_elem_sep boolean POOL_FULL concode_elem_sep int POOL_SIZE concode_elem_sep int POOL_AVAILABILITY concode_elem_sep MacAddress UNASSIGNED_MAC concode_field_sep boolean cancelLeaseOfIPv4 concode_elem_sep DHCPBinding addIPv4ToDHCPPool concode_elem_sep int getPoolSize concode_elem_sep void setPoolFull concode_elem_sep boolean hasAvailableAddresses concode_elem_sep void removeIPv4FromDHCPPool concode_elem_sep void setPoolAvailability concode_elem_sep DHCPBinding getDHCPbindingFromIPv4 concode_elem_sep boolean isIPv4Leased concode_elem_sep void setPoolSize concode_elem_sep int getPoolAvailability concode_elem_sep boolean renewLease concode_elem_sep ArrayList<DHCPBinding> cleanExpiredLeases concode_elem_sep boolean isPoolFull concode_elem_sep DHCPBinding getAnyAvailableLease concode_elem_sep boolean cancelLeaseOfMAC concode_elem_sep DHCPBinding getSpecificAvailableLease concode_elem_sep DHCPBinding getDHCPbindingFromMAC concode_elem_sep void setDHCPbinding
boolean function ( IPv4Address arg0 , MacAddress arg1 ) { DHCPBinding loc0 = this . getDHCPbindingFromIPv4 ( arg0 ) ; if ( loc0 != null ) { loc0 . setMACAddress ( arg1 ) ; loc0 . setStaticIPLease ( true ) ; loc0 . setLeaseStatus ( false ) ; return true ; } else { return false ; } }