Update of /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10149/core/protocolsuite/tcp_ip
Modified Files:
ProtocolStack.java
Log Message:
Index: ProtocolStack.java
===================================================================
RCS file: /cvsroot/javanetsim/javaNetSim/core/protocolsuite/tcp_ip/ProtocolStack.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** ProtocolStack.java 5 Feb 2006 14:01:51 -0000 1.36
--- ProtocolStack.java 10 Feb 2006 13:00:57 -0000 1.37
***************
*** 79,82 ****
--- 79,83 ----
+
/**
***************
*** 122,125 ****
--- 123,128 ----
private Node mParentNode = null;
+
+ private Ospf mOspfprotocol = null;
***************
*** 851,855 ****
}
! }else{
//need to insert tests for all other packet types
--- 854,892 ----
}
! } else if (ipPacket instanceof ospf_packetheader)
! {
! // call receiveing
! if (((ospf_packetheader)ipPacket).GetPackettype()==1)
! {
! // initialize
! }
! else if (((ospf_packetheader)ipPacket).GetPackettype()==2)
! {
! // Database description
! }
! else if (((ospf_packetheader)ipPacket).GetPackettype()==3)
! {
! // Link state request
! }
! else if (((ospf_packetheader)ipPacket).GetPackettype()==4)
! {
! // Link update
! }
! else if (((ospf_packetheader)ipPacket).GetPackettype()==5)
! {
! // Link acknowlogdgement
! }
!
! }
!
!
!
!
!
!
!
!
!
! else{
//need to insert tests for all other packet types
***************
*** 1892,1895 ****
--- 1929,1937 ----
// }catch(Exception e){}
}
+
+ public void Sendospf(ospf_packetheader tosend)
+ {
+ sendPacket(tosend);
+ }
}//EOF
|