Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
labs
BIRD Internet Routing Daemon
Commits
bb027be1
Commit
bb027be1
authored
May 31, 1999
by
Martin Mareš
Browse files
Added extra argument to rt_update hook which contains a pointer to the
temporary attribute list.
parent
75b84c34
Changes
4
Hide whitespace changes
Inline
Side-by-side
nest/protocol.h
View file @
bb027be1
...
...
@@ -22,6 +22,7 @@ struct proto_config;
struct
config
;
struct
proto
;
struct
event
;
struct
ea_list
;
/*
* Routing Protocol
...
...
@@ -111,7 +112,7 @@ struct proto {
void
(
*
if_notify
)(
struct
proto
*
,
unsigned
flags
,
struct
iface
*
i
);
void
(
*
ifa_notify
)(
struct
proto
*
,
unsigned
flags
,
struct
ifa
*
a
);
void
(
*
rt_notify
)(
struct
proto
*
,
struct
network
*
net
,
struct
rte
*
new
,
struct
rte
*
old
);
void
(
*
rt_notify
)(
struct
proto
*
,
struct
network
*
net
,
struct
rte
*
new
,
struct
rte
*
old
,
struct
ea_list
*
tmpa
);
void
(
*
neigh_notify
)(
struct
neighbor
*
neigh
);
struct
ea_list
*
(
*
make_tmp_attrs
)(
struct
rte
*
rt
,
struct
linpool
*
pool
);
void
(
*
store_tmp_attrs
)(
struct
rte
*
rt
,
struct
ea_list
*
attrs
);
...
...
nest/rt-table.c
View file @
bb027be1
...
...
@@ -127,7 +127,7 @@ do_rte_announce(struct announce_hook *a, net *net, rte *new, rte *old, ea_list *
}
}
if
(
new
||
old
)
p
->
rt_notify
(
p
,
net
,
new
,
old
);
p
->
rt_notify
(
p
,
net
,
new
,
old
,
tmpa
);
if
(
new
&&
new
!=
new0
)
/* Discard temporary rte's */
rte_free
(
new
);
if
(
old
&&
old
!=
old0
)
...
...
proto/rip/rip.c
View file @
bb027be1
...
...
@@ -528,7 +528,7 @@ rip_if_notify(struct proto *p, unsigned c, struct iface *iface)
}
static
void
rip_rt_notify
(
struct
proto
*
p
,
struct
network
*
net
,
struct
rte
*
new
,
struct
rte
*
old
)
rip_rt_notify
(
struct
proto
*
p
,
struct
network
*
net
,
struct
rte
*
new
,
struct
rte
*
old
,
struct
ea_list
*
tmpa
)
{
CHK_MAGIC
;
...
...
sysdep/unix/krt.c
View file @
bb027be1
...
...
@@ -574,7 +574,7 @@ krt_scan(timer *t)
*/
static
void
krt_notify
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
)
krt_notify
(
struct
proto
*
P
,
net
*
net
,
rte
*
new
,
rte
*
old
,
struct
ea_list
*
tmpa
)
{
struct
krt_proto
*
p
=
(
struct
krt_proto
*
)
P
;
...
...
Write
Preview
Supports
Markdown
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