Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BIRD Internet Routing Daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
02bd064a
Commit
02bd064a
authored
May 13, 2000
by
Martin Mareš
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to new rt_notify semantics.
parent
e4bfafa1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
25 deletions
+13
-25
TODO
TODO
+0
-1
proto/bgp/attrs.c
proto/bgp/attrs.c
+6
-18
proto/pipe/pipe.c
proto/pipe/pipe.c
+6
-5
sysdep/unix/krt.c
sysdep/unix/krt.c
+1
-1
No files found.
TODO
View file @
02bd064a
...
...
@@ -18,7 +18,6 @@ Core
- client: data losses on large dumps?
- table: ocassional core dumps in rt_prune()
- table: filtering of old routes during updates?
- table: do feeding by parts
- bgp: timing of updates?
...
...
proto/bgp/attrs.c
View file @
02bd064a
...
...
@@ -402,7 +402,7 @@ bgp_export_check(struct bgp_proto *p, ea_list *new)
}
static
struct
bgp_bucket
*
bgp_get_bucket
(
struct
bgp_proto
*
p
,
ea_list
*
old
,
ea_list
*
tmp
,
int
originate
)
bgp_get_bucket
(
struct
bgp_proto
*
p
,
ea_list
*
attrs
,
int
originate
)
{
ea_list
*
t
,
*
new
;
unsigned
i
,
cnt
,
hash
,
code
;
...
...
@@ -410,21 +410,9 @@ bgp_get_bucket(struct bgp_proto *p, ea_list *old, ea_list *tmp, int originate)
u32
seen
=
0
;
struct
bgp_bucket
*
b
;
/* Merge the attribute lists */
if
(
tmp
)
{
for
(
t
=
tmp
;
t
->
next
;
t
=
t
->
next
)
;
t
->
next
=
old
;
new
=
alloca
(
ea_scan
(
tmp
));
ea_merge
(
tmp
,
new
);
t
->
next
=
NULL
;
}
else
{
new
=
alloca
(
ea_scan
(
old
));
ea_merge
(
old
,
new
);
}
/* Merge the attribute list */
new
=
alloca
(
ea_scan
(
attrs
));
ea_merge
(
attrs
,
new
);
ea_sort
(
new
);
/* Normalize attributes */
...
...
@@ -516,7 +504,7 @@ bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck)
}
void
bgp_rt_notify
(
struct
proto
*
P
,
net
*
n
,
rte
*
new
,
rte
*
old
,
ea_list
*
tmpa
)
bgp_rt_notify
(
struct
proto
*
P
,
net
*
n
,
rte
*
new
,
rte
*
old
,
ea_list
*
attrs
)
{
struct
bgp_proto
*
p
=
(
struct
bgp_proto
*
)
P
;
struct
bgp_bucket
*
buck
;
...
...
@@ -526,7 +514,7 @@ bgp_rt_notify(struct proto *P, net *n, rte *new, rte *old, ea_list *tmpa)
if
(
new
)
{
buck
=
bgp_get_bucket
(
p
,
new
->
attrs
->
eattrs
,
tmpa
,
new
->
attrs
->
source
!=
RTS_BGP
);
buck
=
bgp_get_bucket
(
p
,
attrs
,
new
->
attrs
->
source
!=
RTS_BGP
);
if
(
!
buck
)
/* Inconsistent attribute list */
return
;
}
...
...
proto/pipe/pipe.c
View file @
02bd064a
...
...
@@ -19,7 +19,7 @@
#include "pipe.h"
static
void
pipe_send
(
struct
pipe_proto
*
p
,
rtable
*
dest
,
net
*
n
,
rte
*
new
,
rte
*
old
)
pipe_send
(
struct
pipe_proto
*
p
,
rtable
*
dest
,
net
*
n
,
rte
*
new
,
rte
*
old
,
ea_list
*
attrs
)
{
net
*
nn
;
rte
*
e
;
...
...
@@ -38,6 +38,7 @@ pipe_send(struct pipe_proto *p, rtable *dest, net *n, rte *new, rte *old)
a
.
proto
=
&
p
->
p
;
a
.
source
=
RTS_PIPE
;
a
.
aflags
=
0
;
a
.
eattrs
=
attrs
;
e
=
rte_get_temp
(
&
a
);
e
->
net
=
nn
;
}
...
...
@@ -49,21 +50,21 @@ pipe_send(struct pipe_proto *p, rtable *dest, net *n, rte *new, rte *old)
}
static
void
pipe_rt_notify_pri
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
ea_list
*
tmpa
)
pipe_rt_notify_pri
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
ea_list
*
attrs
)
{
struct
pipe_proto
*
p
=
(
struct
pipe_proto
*
)
P
;
DBG
(
"PIPE %c> %I/%d
\n
"
,
(
new
?
'+'
:
'-'
),
net
->
n
.
prefix
,
net
->
n
.
pxlen
);
pipe_send
(
p
,
p
->
peer
,
net
,
new
,
old
);
pipe_send
(
p
,
p
->
peer
,
net
,
new
,
old
,
attrs
);
}
static
void
pipe_rt_notify_sec
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
ea_list
*
tmpa
)
pipe_rt_notify_sec
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
ea_list
*
attrs
)
{
struct
pipe_proto
*
p
=
((
struct
pipe_proto
*
)
P
)
->
phantom
;
DBG
(
"PIPE %c< %I/%d
\n
"
,
(
new
?
'+'
:
'-'
),
net
->
n
.
prefix
,
net
->
n
.
pxlen
);
pipe_send
(
p
,
p
->
p
.
table
,
net
,
new
,
old
);
pipe_send
(
p
,
p
->
p
.
table
,
net
,
new
,
old
,
attrs
);
}
static
int
...
...
sysdep/unix/krt.c
View file @
02bd064a
...
...
@@ -663,7 +663,7 @@ krt_scan(timer *t)
*/
static
void
krt_notify
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
struct
ea_list
*
tmpa
)
krt_notify
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
struct
ea_list
*
attrs
)
{
struct
krt_proto
*
p
=
(
struct
krt_proto
*
)
P
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment