]>
git.proxmox.com Git - mirror_frr.git/blob - bgpd/bgp_packet.h
7bbcdb230457e20c30c69c954176f23238e3ad7d
1 /* BGP packet management header.
2 Copyright (C) 1999 Kunihiro Ishiguro
4 This file is part of GNU Zebra.
6 GNU Zebra is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 GNU Zebra is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Zebra; see the file COPYING. If not, write to the Free
18 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 #define BGP_NLRI_LENGTH 1
22 #define BGP_TOTAL_ATTR_LEN 2
23 #define BGP_UNFEASIBLE_LEN 2
24 #define BGP_WRITE_PACKET_MAX 10
27 #define REFRESH_IMMEDIATE 1
28 #define REFRESH_DEFER 2
30 /* ORF Common part flag */
31 #define ORF_COMMON_PART_ADD 0x00
32 #define ORF_COMMON_PART_REMOVE 0x80
33 #define ORF_COMMON_PART_REMOVE_ALL 0xC0
34 #define ORF_COMMON_PART_PERMIT 0x00
35 #define ORF_COMMON_PART_DENY 0x20
37 /* Packet send and receive function prototypes. */
38 int bgp_read (struct thread
*);
39 int bgp_write (struct thread
*);
41 void bgp_keepalive_send (struct peer
*);
42 void bgp_open_send (struct peer
*);
43 void bgp_notify_send (struct peer
*, u_int8_t
, u_int8_t
);
44 void bgp_notify_send_with_data (struct peer
*, u_int8_t
, u_int8_t
,
46 void bgp_route_refresh_send (struct peer
*, afi_t
, safi_t
, u_char
, u_char
, int);
47 void bgp_capability_send (struct peer
*, afi_t
, safi_t
, int, int);
48 void bgp_default_update_send (struct peer
*, struct attr
*,
49 afi_t
, safi_t
, struct peer
*);
50 void bgp_default_withdraw_send (struct peer
*, afi_t
, safi_t
);