|
version 1.1, 2012/02/21 17:26:11
|
version 1.1.1.2, 2012/10/09 09:22:28
|
|
Line 95 struct isis_fixed_hdr
|
Line 95 struct isis_fixed_hdr
|
| u_char version2; |
u_char version2; |
| u_char reserved; |
u_char reserved; |
| u_char max_area_addrs; |
u_char max_area_addrs; |
| }; | } __attribute__ ((packed)); |
| |
|
| #define ISIS_FIXED_HDR_LEN 8 |
#define ISIS_FIXED_HDR_LEN 8 |
| |
|
|
Line 114 struct isis_fixed_hdr
|
Line 114 struct isis_fixed_hdr
|
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * | Holding Time | 2 |
* | Holding Time | 2 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * | PDU Lenght | 2 | * | PDU Length | 2 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * | R | Priority | 1 |
* | R | Priority | 1 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
|
Line 142 struct isis_lan_hello_hdr
|
Line 142 struct isis_lan_hello_hdr
|
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * + Holding Time + 2 |
* + Holding Time + 2 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * + PDU Lenght + 2 | * + PDU Length + 2 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * | Local Circuit ID | 1 |
* | Local Circuit ID | 1 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
|
Line 186 struct isis_link_state_hdr
|
Line 186 struct isis_link_state_hdr
|
| } __attribute__ ((packed)); |
} __attribute__ ((packed)); |
| #define ISIS_LSP_HDR_LEN 19 |
#define ISIS_LSP_HDR_LEN 19 |
| |
|
| |
/* |
| |
* Since the length field of LSP Entries TLV is one byte long, and each LSP |
| |
* entry is LSP_ENTRIES_LEN (16) bytes long, the maximum number of LSP entries |
| |
* can be accomodated in a TLV is |
| |
* 255 / 16 = 15. |
| |
* |
| |
* Therefore, the maximum length of the LSP Entries TLV is |
| |
* 16 * 15 + 2 (header) = 242 bytes. |
| |
*/ |
| |
#define MAX_LSP_ENTRIES_TLV_SIZE 242 |
| |
|
| #define L1_COMPLETE_SEQ_NUM 24 |
#define L1_COMPLETE_SEQ_NUM 24 |
| #define L2_COMPLETE_SEQ_NUM 25 |
#define L2_COMPLETE_SEQ_NUM 25 |
| /* |
/* |
| * L1 and L2 IS to IS complete sequence numbers PDU header |
* L1 and L2 IS to IS complete sequence numbers PDU header |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * + PDU Lenght + 2 | * + PDU Length + 2 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
| * + Source ID + id_len + 1 |
* + Source ID + id_len + 1 |
| * +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
|
Line 241 int isis_receive (struct thread *thread);
|
Line 252 int isis_receive (struct thread *thread);
|
| #define ISIS_SNP_PSNP_FLAG 0 |
#define ISIS_SNP_PSNP_FLAG 0 |
| #define ISIS_SNP_CSNP_FLAG 1 |
#define ISIS_SNP_CSNP_FLAG 1 |
| |
|
| |
#define ISIS_AUTH_MD5_SIZE 16U |
| |
|
| /* |
/* |
| * Sending functions |
* Sending functions |
| */ |
*/ |
|
Line 257 int ack_lsp (struct isis_link_state_hdr *hdr,
|
Line 270 int ack_lsp (struct isis_link_state_hdr *hdr,
|
| struct isis_circuit *circuit, int level); |
struct isis_circuit *circuit, int level); |
| void fill_fixed_hdr (struct isis_fixed_hdr *hdr, u_char pdu_type); |
void fill_fixed_hdr (struct isis_fixed_hdr *hdr, u_char pdu_type); |
| int send_hello (struct isis_circuit *circuit, int level); |
int send_hello (struct isis_circuit *circuit, int level); |
| |
|
| |
|
| int authentication_check (struct isis_passwd *one, |
|
| struct isis_passwd *theother); |
|
| |
|
| #endif /* _ZEBRA_ISIS_PDU_H */ |
#endif /* _ZEBRA_ISIS_PDU_H */ |