]>
git.proxmox.com Git - mirror_frr.git/blob - zebra/rtread_netlink.c
2 * Kernel routing table readup by netlink
3 * Copyright (C) 1998 Kunihiro Ishiguro
5 * This file is part of GNU Zebra.
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
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.
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
28 #include "zebra/zebra_pbr.h"
29 #include "zebra/zebra_tc.h"
30 #include "zebra/rt_netlink.h"
31 #include "zebra/if_netlink.h"
32 #include "zebra/rule_netlink.h"
33 #include "zebra/tc_netlink.h"
35 void route_read(struct zebra_ns
*zns
)
37 netlink_route_read(zns
);
40 void macfdb_read(struct zebra_ns
*zns
)
42 netlink_macfdb_read(zns
);
45 void macfdb_read_for_bridge(struct zebra_ns
*zns
, struct interface
*ifp
,
46 struct interface
*br_if
, vlanid_t vid
)
48 netlink_macfdb_read_for_bridge(zns
, ifp
, br_if
, vid
);
51 void macfdb_read_mcast_entry_for_vni(struct zebra_ns
*zns
,
52 struct interface
*ifp
, vni_t vni
)
54 netlink_macfdb_read_mcast_for_vni(zns
, ifp
, vni
);
57 void macfdb_read_specific_mac(struct zebra_ns
*zns
, struct interface
*br_if
,
58 const struct ethaddr
*mac
, vlanid_t vid
)
60 netlink_macfdb_read_specific_mac(zns
, br_if
, mac
, vid
);
63 void neigh_read(struct zebra_ns
*zns
)
65 netlink_neigh_read(zns
);
68 void neigh_read_for_vlan(struct zebra_ns
*zns
, struct interface
*vlan_if
)
70 netlink_neigh_read_for_vlan(zns
, vlan_if
);
73 void neigh_read_specific_ip(const struct ipaddr
*ip
, struct interface
*vlan_if
)
75 netlink_neigh_read_specific_ip(ip
, vlan_if
);
78 void kernel_read_pbr_rules(struct zebra_ns
*zns
)
80 netlink_rules_read(zns
);
83 void kernel_read_tc_qdisc(struct zebra_ns
*zns
)
85 netlink_qdisc_read(zns
);
88 void vlan_read(struct zebra_ns
*zns
)
90 netlink_vlan_read(zns
);
93 #endif /* GNU_LINUX */