/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _OSPF_H
#define _OSPF_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Definitions for parsing OSPF packets (RFC 2328 and RFC 2740)
*/
#ifdef __cplusplus
extern "C" {
#endif
extern char *ospf_types[];
struct bits {
const char *str;
};
char *ospf_print_lsa_age(long);
/* Options *_options */
/* ospf_authtype */
/* db_flags */
/* ls_type */
/* extensions 23 July 1991) */
/* rla_link.link_type */
/* rla_flags */
/* sla_tosmetric breakdown */
/* asla_tosmetric breakdown */
/* multicast vertex type */
/* link state advertisement header */
struct lsa_hdr {
};
/* link state advertisement */
struct lsa {
/* Link state types */
union {
/* Router links advertisements */
struct {
struct rlalink {
} un_rla;
/* Network links advertisements */
struct {
} un_nla;
/* Summary links advertisements */
struct {
} un_sla;
/* AS external links advertisements */
struct {
struct aslametric {
} un_asla;
/* Multicast group membership */
struct mcla {
} lsa_un;
};
/*
* TOS metric struct (will be 0 or more in router links update)
*/
struct tos_metric {
};
/*
* OSPF minimum header sizes
*/
/*
* ospf packet header
*/
struct ospfhdr {
union {
/* Hello packet */
struct {
} un_hello;
/* Database Description packet */
struct {
} un_db;
/* Link State Request */
struct lsr {
/* Link State Update */
struct {
} un_lsu;
/* Link State Acknowledgement */
struct {
} un_lsa;
} ospf_un;
};
#ifdef __cplusplus
}
#endif
#endif /* _OSPF_H */