]> git.proxmox.com Git - mirror_frr.git/blame - zebra/rtread_netlink.c
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / zebra / rtread_netlink.c
CommitLineData
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"
c317d3f2 29#include "zebra/zebra_tc.h"
4e3afb14 30#include "zebra/rt_netlink.h"
a26daa77 31#include "zebra/if_netlink.h"
942bf97b 32#include "zebra/rule_netlink.h"
c317d3f2 33#include "zebra/tc_netlink.h"
718e3744 34
d62a17ae 35void route_read(struct zebra_ns *zns)
718e3744 36{
d62a17ae 37 netlink_route_read(zns);
718e3744 38}
2232a77c 39
d62a17ae 40void macfdb_read(struct zebra_ns *zns)
2232a77c 41{
d62a17ae 42 netlink_macfdb_read(zns);
2232a77c 43}
44
d62a17ae 45void macfdb_read_for_bridge(struct zebra_ns *zns, struct interface *ifp,
784d88aa 46 struct interface *br_if, vlanid_t vid)
2232a77c 47{
784d88aa 48 netlink_macfdb_read_for_bridge(zns, ifp, br_if, vid);
2232a77c 49}
50
9464e5b8
SR
51void macfdb_read_mcast_entry_for_vni(struct zebra_ns *zns,
52 struct interface *ifp, vni_t vni)
53{
54 netlink_macfdb_read_mcast_for_vni(zns, ifp, vni);
55}
56
67fb9374 57void macfdb_read_specific_mac(struct zebra_ns *zns, struct interface *br_if,
1a3bd37f 58 const struct ethaddr *mac, vlanid_t vid)
67fb9374 59{
1a3bd37f 60 netlink_macfdb_read_specific_mac(zns, br_if, mac, vid);
67fb9374
CS
61}
62
d62a17ae 63void neigh_read(struct zebra_ns *zns)
2232a77c 64{
d62a17ae 65 netlink_neigh_read(zns);
2232a77c 66}
67
d62a17ae 68void neigh_read_for_vlan(struct zebra_ns *zns, struct interface *vlan_if)
2232a77c 69{
d62a17ae 70 netlink_neigh_read_for_vlan(zns, vlan_if);
2232a77c 71}
ddfeb486 72
1a3bd37f 73void neigh_read_specific_ip(const struct ipaddr *ip, struct interface *vlan_if)
67fb9374
CS
74{
75 netlink_neigh_read_specific_ip(ip, vlan_if);
76}
77
942bf97b 78void kernel_read_pbr_rules(struct zebra_ns *zns)
79{
80 netlink_rules_read(zns);
81}
82
c317d3f2
SY
83void kernel_read_tc_qdisc(struct zebra_ns *zns)
84{
85 netlink_qdisc_read(zns);
86}
87
a26daa77
SW
88void vlan_read(struct zebra_ns *zns)
89{
90 netlink_vlan_read(zns);
91}
92
ddfeb486 93#endif /* GNU_LINUX */