public NASIPAddressAttribute(byte[] octets){
  super(octets);
  byte[] addr=new byte[octets.length - 2];
  System.arraycopy(octets,2,addr,0,addr.length);
  try {
    ip=InetAddress.getByAddress(addr);
  }
 catch (  UnknownHostException e) {
    e.printStackTrace();
  }
}

public NASIPAddressAttribute ( byte [ ] octets ) { super ( octets ) ; byte [ ] addr = new byte [ octets . length - 2 ] ; System . arraycopy ( octets , 2 , addr , 0 , addr . length ) ; try { ip = InetAddress . getByAddress ( addr ) ; } catch ( UnknownHostException e ) { e . printStackTrace ( ) ; } }
constructs a new instance from the on - the - wire bytes for this attribute including the prefixing attribute - type code octet and length octet .
