bareudp.h 333 B

12345678910111213141516
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NET_BAREUDP_H
  3. #define __NET_BAREUDP_H
  4. #include <linux/netdevice.h>
  5. #include <linux/types.h>
  6. #include <net/rtnetlink.h>
  7. static inline bool netif_is_bareudp(const struct net_device *dev)
  8. {
  9. return dev->rtnl_link_ops &&
  10. !strcmp(dev->rtnl_link_ops->kind, "bareudp");
  11. }
  12. #endif