Example #1
0
        /**
         * To ia prefix.
         *
         * @param lease the lease
         * @return the ia prefix
         */
        protected IaPrefix ToIaPrefix(DhcpLease lease)
        {
            IaPrefix iaPrefix = new IaPrefix();

            iaPrefix.SetIpAddress(lease.GetIpAddress());
            iaPrefix.SetPrefixLength(lease.GetPrefixLength());
            iaPrefix.SetState(lease.GetState());
            iaPrefix.SetStartTime(lease.GetStartTime());
            iaPrefix.SetPreferredEndTime(lease.GetPreferredEndTime());
            iaPrefix.SetValidEndTime(lease.GetValidEndTime());
            iaPrefix.SetDhcpOptions(lease.GetIaAddrDhcpOptions());
            return(iaPrefix);
        }
Example #2
0
 /* (non-Javadoc)
  * @see com.jagornet.dhcpv6.db.IaManager#deleteIaPrefix(com.jagornet.dhcpv6.db.IaPrefix)
  */
 public void DeleteIaPrefix(IaPrefix iaPrefix)
 {
     DeleteIaAddr(iaPrefix);
 }
 public void DeleteIaPrefix(IaPrefix iaPrefix)
 {
 }
Example #4
0
 /* (non-Javadoc)
  * @see com.jagornet.dhcpv6.db.IaManager#updateIaPrefix(com.jagornet.dhcpv6.db.IaPrefix)
  */
 public void UpdateIaPrefix(IaPrefix iaPrefix)
 {
     UpdateIaAddr(iaPrefix);
 }
 public void UpdateIaPrefix(IaPrefix iaPrefix)
 {
 }