diff options
Diffstat (limited to 'contrib/tcpdump/ospf6.h')
-rw-r--r-- | contrib/tcpdump/ospf6.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/contrib/tcpdump/ospf6.h b/contrib/tcpdump/ospf6.h index 85e81d7..3d810cf 100644 --- a/contrib/tcpdump/ospf6.h +++ b/contrib/tcpdump/ospf6.h @@ -1,3 +1,4 @@ +/* @(#) $Header: /tcpdump/master/tcpdump/ospf6.h,v 1.3 2000/12/17 23:07:50 guy Exp $ (LBL) */ /* * Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. @@ -83,10 +84,10 @@ #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 */ @@ -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; |