"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/bgpd/bgpd.h" between
openbgpd-6.7p0.tar.gz and openbgpd-6.8p0.tar.gz

About: OpenBGPD is a Border Gateway Protocol (BGP) daemon which manages the network routing tables. Its main purpose is to exchange information concerning "network reachability" with other BGP systems.

bgpd.h  (openbgpd-6.7p0):bgpd.h  (openbgpd-6.8p0)
/* $OpenBSD: bgpd.h,v 1.402 2020/04/23 16:13:11 claudio Exp $ */ /* $OpenBSD: bgpd.h,v 1.403 2020/05/10 13:38:46 deraadt Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
skipping to change at line 39 skipping to change at line 39
#include <net/pfkeyv2.h> #include <net/pfkeyv2.h>
#include <poll.h> #include <poll.h>
#include <stdarg.h> #include <stdarg.h>
#include <imsg.h> #include <imsg.h>
#define BGP_VERSION 4 #define BGP_VERSION 4
#define BGP_PORT 179 #define BGP_PORT 179
#define PEER_DESCR_LEN 32 #define PEER_DESCR_LEN 32
#define SHUT_COMM_LEN 256 /* includes NUL terminato r */ #define REASON_LEN 256 /* includes NUL terminato r */
#define PFTABLE_LEN 32 #define PFTABLE_LEN 32
#define TCP_MD5_KEY_LEN 80 #define TCP_MD5_KEY_LEN 80
#define IPSEC_ENC_KEY_LEN 32 #define IPSEC_ENC_KEY_LEN 32
#define IPSEC_AUTH_KEY_LEN 20 #define IPSEC_AUTH_KEY_LEN 20
#define SET_NAME_LEN 128 #define SET_NAME_LEN 128
#define MAX_PKTSIZE 4096 #define MAX_PKTSIZE 4096
#define MIN_HOLDTIME 3 #define MIN_HOLDTIME 3
#define READ_BUF_SIZE 65535 #define READ_BUF_SIZE 65535
#define MAX_SOCK_BUF (4 * READ_BUF_SIZE) #define MAX_SOCK_BUF (4 * READ_BUF_SIZE)
skipping to change at line 384 skipping to change at line 384
#define CAPA_GR_F_FLAG 0x80 #define CAPA_GR_F_FLAG 0x80
struct peer_config { struct peer_config {
struct bgpd_addr remote_addr; struct bgpd_addr remote_addr;
struct bgpd_addr local_addr_v4; struct bgpd_addr local_addr_v4;
struct bgpd_addr local_addr_v6; struct bgpd_addr local_addr_v6;
struct peer_auth auth; struct peer_auth auth;
struct capabilities capabilities; struct capabilities capabilities;
char group[PEER_DESCR_LEN]; char group[PEER_DESCR_LEN];
char descr[PEER_DESCR_LEN]; char descr[PEER_DESCR_LEN];
char shutcomm[SHUT_COMM_LEN]; char reason[REASON_LEN];
char rib[PEER_DESCR_LEN]; char rib[PEER_DESCR_LEN];
char if_depend[IFNAMSIZ]; char if_depend[IFNAMSIZ];
char demote_group[IFNAMSIZ]; char demote_group[IFNAMSIZ];
u_int32_t id; u_int32_t id;
u_int32_t groupid; u_int32_t groupid;
u_int32_t remote_as; u_int32_t remote_as;
u_int32_t local_as; u_int32_t local_as;
u_int32_t max_prefix; u_int32_t max_prefix;
u_int32_t max_out_prefix; u_int32_t max_out_prefix;
enum export_type export_type; enum export_type export_type;
skipping to change at line 712 skipping to change at line 712
struct kroute kr4; struct kroute kr4;
struct kroute6 kr6; struct kroute6 kr6;
} kr; } kr;
u_int8_t valid; u_int8_t valid;
u_int8_t krvalid; u_int8_t krvalid;
}; };
struct ctl_neighbor { struct ctl_neighbor {
struct bgpd_addr addr; struct bgpd_addr addr;
char descr[PEER_DESCR_LEN]; char descr[PEER_DESCR_LEN];
char shutcomm[SHUT_COMM_LEN]; char reason[REASON_LEN];
int show_timers; int show_timers;
int is_group; int is_group;
}; };
#define F_PREF_ELIGIBLE 0x01 #define F_PREF_ELIGIBLE 0x01
#define F_PREF_ACTIVE 0x02 #define F_PREF_ACTIVE 0x02
#define F_PREF_INTERNAL 0x04 #define F_PREF_INTERNAL 0x04
#define F_PREF_ANNOUNCE 0x08 #define F_PREF_ANNOUNCE 0x08
#define F_PREF_STALE 0x10 #define F_PREF_STALE 0x10
#define F_PREF_INVALID 0x20 #define F_PREF_INVALID 0x20
skipping to change at line 1318 skipping to change at line 1318
/* timer.c */ /* timer.c */
time_t getmonotime(void); time_t getmonotime(void);
/* util.c */ /* util.c */
const char *log_addr(const struct bgpd_addr *); const char *log_addr(const struct bgpd_addr *);
const char *log_in6addr(const struct in6_addr *); const char *log_in6addr(const struct in6_addr *);
const char *log_sockaddr(struct sockaddr *, socklen_t); const char *log_sockaddr(struct sockaddr *, socklen_t);
const char *log_as(u_int32_t); const char *log_as(u_int32_t);
const char *log_rd(u_int64_t); const char *log_rd(u_int64_t);
const char *log_ext_subtype(short, u_int8_t); const char *log_ext_subtype(short, u_int8_t);
const char *log_shutcomm(const char *); const char *log_reason(const char *);
int aspath_snprint(char *, size_t, void *, u_int16_t); int aspath_snprint(char *, size_t, void *, u_int16_t);
int aspath_asprint(char **, void *, u_int16_t); int aspath_asprint(char **, void *, u_int16_t);
size_t aspath_strlen(void *, u_int16_t); size_t aspath_strlen(void *, u_int16_t);
u_int32_t aspath_extract(const void *, int); u_int32_t aspath_extract(const void *, int);
int aspath_verify(void *, u_int16_t, int); int aspath_verify(void *, u_int16_t, int);
#define AS_ERR_LEN -1 #define AS_ERR_LEN -1
#define AS_ERR_TYPE -2 #define AS_ERR_TYPE -2
#define AS_ERR_BAD -3 #define AS_ERR_BAD -3
#define AS_ERR_SOFT -4 #define AS_ERR_SOFT -4
u_char *aspath_inflate(void *, u_int16_t, u_int16_t *); u_char *aspath_inflate(void *, u_int16_t, u_int16_t *);
 End of changes. 5 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)