mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Makes krt.c much more readable.
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
struct kif_params {
|
||||
};
|
||||
|
||||
struct kif_status {
|
||||
struct kif_state {
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ struct krt_params {
|
||||
int table_id; /* Kernel table ID we sync with */
|
||||
};
|
||||
|
||||
struct krt_status {
|
||||
struct krt_state {
|
||||
};
|
||||
|
||||
|
||||
|
@@ -10,13 +10,13 @@ CF_HDR
|
||||
|
||||
CF_DECLS
|
||||
|
||||
CF_KEYWORDS(ASYNC, KERNEL, TABLE, KRT_PREFSRC, KRT_REALM)
|
||||
CF_KEYWORDS(KERNEL, TABLE, KRT_PREFSRC, KRT_REALM)
|
||||
|
||||
CF_GRAMMAR
|
||||
|
||||
CF_ADDTO(kern_proto, kern_proto nl_item ';')
|
||||
CF_ADDTO(kern_proto, kern_proto kern_sys_item ';')
|
||||
|
||||
nl_item:
|
||||
kern_sys_item:
|
||||
KERNEL TABLE expr {
|
||||
if ($3 <= 0 || $3 >= NL_NUM_TABLES)
|
||||
cf_error("Kernel routing table number out of range");
|
||||
|
@@ -1086,18 +1086,16 @@ nl_open_async(void)
|
||||
static u8 nl_cf_table[(NL_NUM_TABLES+7) / 8];
|
||||
|
||||
void
|
||||
krt_sys_start(struct krt_proto *p, int first)
|
||||
krt_sys_start(struct krt_proto *p)
|
||||
{
|
||||
nl_table_map[KRT_CF->sys.table_id] = p;
|
||||
if (first)
|
||||
{
|
||||
nl_open();
|
||||
nl_open_async();
|
||||
}
|
||||
|
||||
nl_open();
|
||||
nl_open_async();
|
||||
}
|
||||
|
||||
void
|
||||
krt_sys_shutdown(struct krt_proto *p UNUSED, int last UNUSED)
|
||||
krt_sys_shutdown(struct krt_proto *p UNUSED)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user