diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-27 11:11:54 +0000 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-27 11:11:54 +0000 |
commit | ffb52b1a705814c52d2d1b41c7058897f11b5aa3 (patch) | |
tree | c3887b034c37b95577390c5d33d6d26c347975b2 /bgpd/bgp_notification.c | |
parent | 8bfae24fc3a8baaca3e419f261f132e454163f57 (diff) | |
download | quagga-ffb52b1a705814c52d2d1b41c7058897f11b5aa3.tar.bz2 quagga-ffb52b1a705814c52d2d1b41c7058897f11b5aa3.tar.xz |
Wiring up ROUTE-REFRESH and ORF handling. Work-in-progress.
modified: bgpd/bgp.h
modified: bgpd/bgp_common.c
modified: bgpd/bgp_common.h
modified: bgpd/bgp_connection.c
modified: bgpd/bgp_connection.h
modified: bgpd/bgp_fsm.c
modified: bgpd/bgp_fsm.h
modified: bgpd/bgp_msg_read.c
modified: bgpd/bgp_msg_read.h
modified: bgpd/bgp_msg_write.c
modified: bgpd/bgp_notification.c
modified: bgpd/bgp_notification.h
modified: bgpd/bgp_open_state.c
modified: bgpd/bgp_open_state.h
modified: bgpd/bgp_route_refresh.c
modified: bgpd/bgp_route_refresh.h
modified: lib/qafi_safi.h
Diffstat (limited to 'bgpd/bgp_notification.c')
-rw-r--r-- | bgpd/bgp_notification.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bgpd/bgp_notification.c b/bgpd/bgp_notification.c index 50fe35a9..691622e8 100644 --- a/bgpd/bgp_notification.c +++ b/bgpd/bgp_notification.c @@ -79,6 +79,23 @@ bgp_notify_new(bgp_nom_code_t code, bgp_nom_subcode_t subcode, } ; /*------------------------------------------------------------------------------ + * Allocate and initialise new notification, complete with data + * + * Can specify an expected amount of data. + */ +extern bgp_notify +bgp_notify_new_with_data(bgp_nom_code_t code, bgp_nom_subcode_t subcode, + const void* data, bgp_size_t len) +{ + bgp_notify notification ; + + notification = bgp_notify_new(code, subcode, len) ; + bgp_notify_append_data(notification, data, len) ; + + return notification ; +} ; + +/*------------------------------------------------------------------------------ * Free notification structure * * Does nothing if there is no structure. |