@Test public void testPopulateHeader() throws Exception { ospfPacketHeader.populateHeader(new OspfPacketHeader()); assertThat(ospfPacketHeader, is(notNullValue())); }
public void populateHeader(OspfPacketHeader ospfPacketHeader) { this.setInterfaceIndex(ospfPacketHeader.interfaceIndex()); this.setSourceIp(ospfPacketHeader.sourceIp()); this.setOspfVer(ospfPacketHeader.ospfVersion()); this.setOspftype(ospfPacketHeader.ospfType()); this.setOspfPacLength(ospfPacketHeader.ospfPacLength()); this.setRouterId(ospfPacketHeader.routerId()); this.setAreaId(ospfPacketHeader.areaId()); this.setChecksum(ospfPacketHeader.checksum()); this.setAuthType(ospfPacketHeader.authType()); this.setAuthentication(ospfPacketHeader.authentication()); }
OspfPacketHeader implements OspfMessage { public void populateHeader(OspfPacketHeader ospfPacketHeader) { this.setInterfaceIndex(ospfPacketHeader.interfaceIndex()); this.setSourceIp(ospfPacketHeader.sourceIp()); this.setOspfVer(ospfPacketHeader.ospfVersion()); this.setOspftype(ospfPacketHeader.ospfType()); this.setOspfPacLength(ospfPacketHeader.ospfPacLength()); this.setRouterId(ospfPacketHeader.routerId()); this.setAreaId(ospfPacketHeader.areaId()); this.setChecksum(ospfPacketHeader.checksum()); this.setAuthType(ospfPacketHeader.authType()); this.setAuthentication(ospfPacketHeader.authentication()); } }
OspfPacketHeader implements OspfMessage { public void populateHeader(OspfPacketHeader ospfPacketHeader) { this.setInterfaceIndex(ospfPacketHeader.interfaceIndex()); this.setSourceIp(ospfPacketHeader.sourceIp()); this.setOspfVer(ospfPacketHeader.ospfVersion()); this.setOspftype(ospfPacketHeader.ospfType()); this.setOspfPacLength(ospfPacketHeader.ospfPacLength()); this.setRouterId(ospfPacketHeader.routerId()); this.setAreaId(ospfPacketHeader.areaId()); this.setChecksum(ospfPacketHeader.checksum()); this.setAuthType(ospfPacketHeader.authType()); this.setAuthentication(ospfPacketHeader.authentication()); }  }
OspfPacketHeader implements OspfMessage { public void populateHeader(OspfPacketHeader ospfPacketHeader) { this.setInterfaceIndex(ospfPacketHeader.interfaceIndex()); this.setSourceIp(ospfPacketHeader.sourceIp()); this.setOspfVer(ospfPacketHeader.ospfVersion()); this.setOspftype(ospfPacketHeader.ospfType()); this.setOspfPacLength(ospfPacketHeader.ospfPacLength()); this.setRouterId(ospfPacketHeader.routerId()); this.setAreaId(ospfPacketHeader.areaId()); this.setChecksum(ospfPacketHeader.checksum()); this.setAuthType(ospfPacketHeader.authType()); this.setAuthentication(ospfPacketHeader.authentication()); }  Ip4Address sourceIp(); void setSourceIp(Ip4Address sourceIp); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); int ospfVersion(); void setOspfVer(int ospfVer); int ospfType(); void setOspftype(int ospfType); int ospfPacLength(); void setOspfPacLength(int ospfPacLength); Ip4Address routerId(); void setRouterId(Ip4Address routerId); Ip4Address areaId(); void setAreaId(Ip4Address areaId); int checksum(); void setChecksum(int checkSum); int authType(); void setAuthType(int auType); int authentication(); void setAuthentication(int authentication); Ip4Address destinationIp(); void setDestinationIp(Ip4Address destinationIp); int interfaceIndex(); void setInterfaceIndex(int interfaceIndex); void populateHeader(OspfPacketHeader ospfPacketHeader); @Override String toString(); }
OspfPacketHeader implements OspfMessage { public void populateHeader(OspfPacketHeader ospfPacketHeader) { this.setInterfaceIndex(ospfPacketHeader.interfaceIndex()); this.setSourceIp(ospfPacketHeader.sourceIp()); this.setOspfVer(ospfPacketHeader.ospfVersion()); this.setOspftype(ospfPacketHeader.ospfType()); this.setOspfPacLength(ospfPacketHeader.ospfPacLength()); this.setRouterId(ospfPacketHeader.routerId()); this.setAreaId(ospfPacketHeader.areaId()); this.setChecksum(ospfPacketHeader.checksum()); this.setAuthType(ospfPacketHeader.authType()); this.setAuthentication(ospfPacketHeader.authentication()); }  Ip4Address sourceIp(); void setSourceIp(Ip4Address sourceIp); @Override OspfPacketType ospfMessageType(); @Override void readFrom(ChannelBuffer channelBuffer); @Override byte[] asBytes(); int ospfVersion(); void setOspfVer(int ospfVer); int ospfType(); void setOspftype(int ospfType); int ospfPacLength(); void setOspfPacLength(int ospfPacLength); Ip4Address routerId(); void setRouterId(Ip4Address routerId); Ip4Address areaId(); void setAreaId(Ip4Address areaId); int checksum(); void setChecksum(int checkSum); int authType(); void setAuthType(int auType); int authentication(); void setAuthentication(int authentication); Ip4Address destinationIp(); void setDestinationIp(Ip4Address destinationIp); int interfaceIndex(); void setInterfaceIndex(int interfaceIndex); void populateHeader(OspfPacketHeader ospfPacketHeader); @Override String toString();  }