1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

do not define the prefix, prefixlen and community structs used for

the filters from within struct filter_match but explicit; no functional change
This commit is contained in:
henning 2004-07-27 15:26:45 +00:00
parent d1e55a1afc
commit 1ba5bd56b6

View File

@ -1,4 +1,4 @@
/* $OpenBSD: bgpd.h,v 1.135 2004/07/05 16:54:53 henning Exp $ */
/* $OpenBSD: bgpd.h,v 1.136 2004/07/27 15:26:45 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -499,22 +499,28 @@ struct filter_peers {
#define COMMUNITY_NO_EXPSUBCONFED 0xff03
#define COMMUNITY_NO_PEER 0xff04 /* rfc3765 */
struct filter_prefix {
struct bgpd_addr addr;
u_int8_t len;
};
struct filter_prefixlen {
sa_family_t af;
enum comp_ops op;
u_int8_t len_min;
u_int8_t len_max;
};
struct filter_community {
int as;
int type;
};
struct filter_match {
struct {
struct bgpd_addr addr;
u_int8_t len;
} prefix;
struct {
sa_family_t af;
enum comp_ops op;
u_int8_t len_min;
u_int8_t len_max;
} prefixlen;
struct as_filter as;
struct {
int as;
int type;
} community;
struct filter_prefix prefix;
struct filter_prefixlen prefixlen;
struct as_filter as;
struct filter_community community;
};
TAILQ_HEAD(filter_head, filter_rule);