diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:03:47 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 18:03:47 -0700 |
| commit | 3f9c7369f7112d87007b87a5faaa61cdd5e24c39 (patch) | |
| tree | 2a9f7a8368ea0468932fbb2fd755f8aa92f7a3d9 /lib/stream.h | |
| parent | 759a13f3ccad95e2717871b803729d49be18d995 (diff) | |
BGP: Add dynamic update group support
This patch implements the 'update-groups' functionality in BGP. This is a
function that can significantly improve BGP performance for Update generation
and resultant network convergence. BGP Updates are formed for "groups" of
peers and then replicated and sent out to each peer rather than being formed
for each peer. Thus major BGP operations related to outbound policy
application, adj-out maintenance and actual Update packet formation
are optimized.
BGP update-groups dynamically groups peers together based on configuration
as well as run-time criteria. Thus, it is more flexible than update-formation
based on peer-groups, which relies on operator configuration.
[Note that peer-group based update formation has been introduced into BGP by
Cumulus but is currently intended only for specific releases.]
From 11098af65b2b8f9535484703e7f40330a71cbae4 Mon Sep 17 00:00:00 2001
Subject: [PATCH] updgrp commits
Diffstat (limited to 'lib/stream.h')
| -rw-r--r-- | lib/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index f0c742c052..3efabe358d 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -173,9 +173,12 @@ extern int stream_putq (struct stream *, uint64_t); extern int stream_putq_at (struct stream *, size_t, uint64_t); extern int stream_put_ipv4 (struct stream *, u_int32_t); extern int stream_put_in_addr (struct stream *, struct in_addr *); +extern int stream_put_in_addr_at (struct stream *, size_t, struct in_addr *); +extern int stream_put_in6_addr_at (struct stream *, size_t, struct in6_addr *); extern int stream_put_prefix (struct stream *, struct prefix *); extern void stream_get (void *, struct stream *, size_t); +extern void stream_get_from (void *, struct stream *, size_t, size_t); extern u_char stream_getc (struct stream *); extern u_char stream_getc_from (struct stream *, size_t); extern u_int16_t stream_getw (struct stream *); |
