debugnet.h (b2b1bb041056e45acae537feb6d1b28d22f53a2a) | debugnet.h (053a24d12cc7bc4fee4340f2e2b11f8d167909ed) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2019 Isilon Systems, LLC. 5 * Copyright (c) 2005-2014 Sandvine Incorporated 6 * Copyright (c) 2000 Darrell Anderson <anderson@cs.duke.edu> 7 * All rights reserved. 8 * --- 249 unchanged lines hidden (view full) --- 258 .dn_event = driver##_debugnet_event, \ 259 .dn_transmit = driver##_debugnet_transmit, \ 260 .dn_poll = driver##_debugnet_poll, \ 261 } 262 263#define DEBUGNET_NOTIFY_MTU(ifp) debugnet_any_ifnet_update(ifp) 264 265#define DEBUGNET_SET(ifp, driver) \ | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2019 Isilon Systems, LLC. 5 * Copyright (c) 2005-2014 Sandvine Incorporated 6 * Copyright (c) 2000 Darrell Anderson <anderson@cs.duke.edu> 7 * All rights reserved. 8 * --- 249 unchanged lines hidden (view full) --- 258 .dn_event = driver##_debugnet_event, \ 259 .dn_transmit = driver##_debugnet_transmit, \ 260 .dn_poll = driver##_debugnet_poll, \ 261 } 262 263#define DEBUGNET_NOTIFY_MTU(ifp) debugnet_any_ifnet_update(ifp) 264 265#define DEBUGNET_SET(ifp, driver) \ |
266 (ifp)->if_debugnet_methods = &driver##_debugnet_methods | 266 if_setdebugnet_methods((ifp), &driver##_debugnet_methods) |
267 268#else /* !DEBUGNET || !INET */ 269 270#define DEBUGNET_DEFINE(driver) 271#define DEBUGNET_NOTIFY_MTU(ifp) 272#define DEBUGNET_SET(ifp, driver) 273 274#endif /* DEBUGNET && INET */ 275#endif /* _KERNEL */ | 267 268#else /* !DEBUGNET || !INET */ 269 270#define DEBUGNET_DEFINE(driver) 271#define DEBUGNET_NOTIFY_MTU(ifp) 272#define DEBUGNET_SET(ifp, driver) 273 274#endif /* DEBUGNET && INET */ 275#endif /* _KERNEL */ |