|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--drcl.inet.protocol.ospf.OSPF_LSA_Header
OSPF LSA Header (fixed length = 20 byte) ref: sec. 12.1 & A.4.1 contains fields: ls_age(2), options(1), type(1), LS_ID(4), Adv_router(4), LS_seqno(4), checksum(2), length(2) Ref: RFC 2328 sec. 12 Remark: ls_age, options, type, checksum, length in RFC is defined unsigned type Here we use signed type for simplicity. Besides, we replace struct in_addr with long
OSPF_LSA| Field Summary | |
protected int |
birth
birth: the time when genarating the LSA although 'birth' is not defined in the header, it is necessary to record in the lsa. |
protected static int |
INITIAL_SEQUENCE_NUMBER
|
protected int |
installed
|
protected int |
lsh_advtr
specify router ID of the LSA's originator |
protected int |
lsh_age
Age of the LSA: An instance of age MaxAge is always accepted as most recent; Otherwise, if the ages differ by more than MaxAgeDiff, the instance having the smaller age is accepted as most recent.(sec. |
protected int |
lsh_id
In type 1, link state type always represents router ID ref: sec 12.1.4 table 16 |
protected int |
lsh_seqnum
increase one when the router send one new LSA |
protected int |
lsh_type
|
protected static int |
MAX_SEQUENCE_NUMBER
|
protected static int |
OSPF_LSA_HEADER_SIZE
|
| Method Summary | |
protected int |
check_lsh_type()
Check the correctness of the header type |
java.lang.Object |
clone()
|
protected void |
duplicate(java.lang.Object source_)
duplicate the OSPF_LSA_Header |
protected int |
ospf_age_current(int now_)
get current age of the LSA |
protected void |
ospf_age_update_to_send(int transdelay,
int now_)
update age field of lsa_hdr, add InfTransDelay, when sending out the packet over the interface |
protected static int |
ospf_lsa_issame(OSPF_LSA_Header lsh1,
OSPF_LSA_Header lsh2)
test LSAs identity |
protected int |
size()
return the header size |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final int OSPF_LSA_HEADER_SIZE
protected int lsh_age
protected int lsh_type
protected int lsh_id
protected int lsh_advtr
protected static final int INITIAL_SEQUENCE_NUMBER
protected static final int MAX_SEQUENCE_NUMBER
protected int lsh_seqnum
protected int birth
protected int installed
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectprotected void duplicate(java.lang.Object source_)
protected int size()
protected int check_lsh_type()
protected void ospf_age_update_to_send(int transdelay,
int now_)
protected int ospf_age_current(int now_)
protected static int ospf_lsa_issame(OSPF_LSA_Header lsh1,
OSPF_LSA_Header lsh2)
|
DRCL JavaSim API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||