]> The Tcpdump Group git mirrors - tcpdump/blobdiff - ospf6.h
When checking for pcap_if_t, add $V_INCLS to CFLAGS, so we look at the
[tcpdump] / ospf6.h
diff --git a/ospf6.h b/ospf6.h
index 85e81d7f7e67d492fc7fa93204e208a7869416fd..2fbbfa0c846c4fa37180d5ac146071be8f49d8bc 100644 (file)
--- a/ospf6.h
+++ b/ospf6.h
@@ -1,3 +1,4 @@
+/* @(#) $Header: /tcpdump/master/tcpdump/ospf6.h,v 1.6 2002-12-11 07:13:56 guy Exp $ (LBL) */
 /*
  * Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997
  *     The Regents of the University of California.  All rights reserved.
 #define        SLA_MASK_METRIC         0x00ffffff
 #define SLA_SHIFT_TOS          24
 
-/* asla_tosmetric breakdown    */
-#define        ASLA_FLAG_EXTERNAL      0x80000000
-#define        ASLA_MASK_TOS           0x7f000000
-#define        ASLA_SHIFT_TOS          24
+/* asla_metric */
+#define ASLA_FLAG_EXTERNAL     0x04000000
+#define ASLA_FLAG_FWDADDR      0x02000000
+#define ASLA_FLAG_ROUTETAG     0x01000000
 #define        ASLA_MASK_METRIC        0x00ffffff
 
 /* multicast vertex type */
@@ -104,7 +105,7 @@ struct lsa_hdr {
     u_int32_t ls_seq;
     u_int16_t ls_chksum;
     u_int16_t ls_length;
-} ;
+};
 
 struct lsa_prefix {
     u_int8_t lsa_p_len;
@@ -149,6 +150,13 @@ struct lsa {
            struct lsa_prefix inter_ap_prefix[1];
        } un_inter_ap;
 
+       /* AS external links advertisements */
+       struct {
+           u_int32_t asla_metric;
+           struct lsa_prefix asla_prefix[1];
+           /* some optional fields follow */
+       } un_asla;
+
 #if 0
        /* Summary links advertisements */
        struct {
@@ -156,16 +164,6 @@ struct lsa {
            u_int32_t sla_tosmetric[1]; /* may repeat   */
        } un_sla;
 
-       /* AS external links advertisements */
-       struct {
-           struct in_addr asla_mask;
-           struct aslametric {
-               u_int32_t asla_tosmetric;
-               struct in_addr asla_forward;
-               struct in_addr asla_tag;
-           } asla_metric[1];           /* may repeat   */
-       } un_asla;
-
        /* Multicast group membership */
        struct mcla {
            u_int32_t mcla_vtype;
@@ -197,7 +195,7 @@ struct lsa {
            struct lsa_prefix intra_ap_prefix[1];
        } un_intra_ap;
     } lsa_un;
-} ;
+};
 
 
 /*
@@ -207,7 +205,7 @@ struct tos_metric {
     u_int8_t tos_type;
     u_int8_t tos_zero;
     u_int16_t tos_metric;
-} ;
+};
 
 #define        OSPF_AUTH_SIZE  8
 
@@ -270,7 +268,7 @@ struct ospf6hdr {
            struct lsa_hdr lsa_lshdr[1]; /* may repeat  */
        } un_lsa ;
     } ospf6_un ;
-} ;
+};
 
 #define        ospf6_hello     ospf6_un.un_hello
 #define        ospf6_db        ospf6_un.un_db