netlink_route.c (ab591c874b68512170750a7a54e41fd508249814) | netlink_route.c (7fc9cfa57ccd4ee8ee71f8edfacfc26afab9cd2e) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2022 Alexander V. Chernikov <melifaro@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 101 unchanged lines hidden (view full) --- 110 .route_f = rtnl_handle_route_event, 111 .ifmsg_f = rtnl_handle_ifnet_event, 112}; 113static struct rtbridge *nlbridge_orig_p; 114 115static void 116rtnl_load(void *u __unused) 117{ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2022 Alexander V. Chernikov <melifaro@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 101 unchanged lines hidden (view full) --- 110 .route_f = rtnl_handle_route_event, 111 .ifmsg_f = rtnl_handle_ifnet_event, 112}; 113static struct rtbridge *nlbridge_orig_p; 114 115static void 116rtnl_load(void *u __unused) 117{ |
118 NL_LOG(LOG_NOTICE, "rtnl loading"); | 118 NL_LOG(LOG_DEBUG2, "rtnl loading"); |
119 nlbridge_orig_p = netlink_callback_p; 120 netlink_callback_p = &nlbridge; 121 rtnl_neighs_init(); 122 rtnl_ifaces_init(); 123 rtnl_nexthops_init(); 124 rtnl_routes_init(); 125 netlink_register_proto(NETLINK_ROUTE, "NETLINK_ROUTE", rtnl_handle_message); 126} --- 13 unchanged lines hidden --- | 119 nlbridge_orig_p = netlink_callback_p; 120 netlink_callback_p = &nlbridge; 121 rtnl_neighs_init(); 122 rtnl_ifaces_init(); 123 rtnl_nexthops_init(); 124 rtnl_routes_init(); 125 netlink_register_proto(NETLINK_ROUTE, "NETLINK_ROUTE", rtnl_handle_message); 126} --- 13 unchanged lines hidden --- |