]>
Commit | Line | Data |
---|---|---|
718e3744 | 1 | /* |
2 | * Kernel routing table readup by netlink | |
3 | * Copyright (C) 1998 Kunihiro Ishiguro | |
4 | * | |
5 | * This file is part of GNU Zebra. | |
6 | * | |
7 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
8 | * under the terms of the GNU General Public License as published by the | |
9 | * Free Software Foundation; either version 2, or (at your option) any | |
10 | * later version. | |
11 | * | |
12 | * GNU Zebra is distributed in the hope that it will be useful, but | |
13 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * General Public License for more details. | |
16 | * | |
896014f4 DL |
17 | * You should have received a copy of the GNU General Public License along |
18 | * with this program; see the file COPYING; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
718e3744 | 20 | */ |
21 | ||
22 | #include <zebra.h> | |
7dbeea9d | 23 | |
ddfeb486 DL |
24 | #ifdef GNU_LINUX |
25 | ||
5e6a74d8 | 26 | #include "vty.h" |
05f7f5db | 27 | #include "zebra/rt.h" |
942bf97b | 28 | #include "zebra/zebra_pbr.h" |
4e3afb14 | 29 | #include "zebra/rt_netlink.h" |
942bf97b | 30 | #include "zebra/rule_netlink.h" |
718e3744 | 31 | |
d62a17ae | 32 | void route_read(struct zebra_ns *zns) |
718e3744 | 33 | { |
d62a17ae | 34 | netlink_route_read(zns); |
718e3744 | 35 | } |
2232a77c | 36 | |
d62a17ae | 37 | void macfdb_read(struct zebra_ns *zns) |
2232a77c | 38 | { |
d62a17ae | 39 | netlink_macfdb_read(zns); |
2232a77c | 40 | } |
41 | ||
d62a17ae | 42 | void macfdb_read_for_bridge(struct zebra_ns *zns, struct interface *ifp, |
43 | struct interface *br_if) | |
2232a77c | 44 | { |
d62a17ae | 45 | netlink_macfdb_read_for_bridge(zns, ifp, br_if); |
2232a77c | 46 | } |
47 | ||
d62a17ae | 48 | void neigh_read(struct zebra_ns *zns) |
2232a77c | 49 | { |
d62a17ae | 50 | netlink_neigh_read(zns); |
2232a77c | 51 | } |
52 | ||
d62a17ae | 53 | void neigh_read_for_vlan(struct zebra_ns *zns, struct interface *vlan_if) |
2232a77c | 54 | { |
d62a17ae | 55 | netlink_neigh_read_for_vlan(zns, vlan_if); |
2232a77c | 56 | } |
ddfeb486 | 57 | |
942bf97b | 58 | void kernel_read_pbr_rules(struct zebra_ns *zns) |
59 | { | |
60 | netlink_rules_read(zns); | |
61 | } | |
62 | ||
ddfeb486 | 63 | #endif /* GNU_LINUX */ |