This structure is used only in bareudp.c. While there, adjust include files: we need netdevice.h, not skbuff.h.
Unified · Split
| @@ -38,6 +38,13 @@ struct bareudp_net { · 37 unmodified lines | ||
| 38 | 38 | struct list_head bareudp_list; |
| 39 | 39 | }; |
| 40 | 40 | |
| 41 | +struct bareudp_conf { | |
| 42 | + __be16 ethertype; | |
| 43 | + __be16 port; | |
| 44 | + u16 sport_min; | |
| 45 | + bool multi_proto_mode; | |
| 46 | +}; | |
| 47 | + | |
| 41 | 48 | /* Pseudo network device */ |
| 42 | 49 | struct bareudp_dev { |
| 43 | 50 | struct net *net; /* netns for packet i/o */ |
| @@ -3,17 +3,10 @@ · 2 unmodified lines | ||
| 3 | 3 | #ifndef __NET_BAREUDP_H |
| 4 | 4 | #define __NET_BAREUDP_H |
| 5 | 5 | |
| 6 | +#include <linux/netdevice.h> | |
| 6 | 7 | #include <linux/types.h> |
| 7 | −#include <linux/skbuff.h> | |
| 8 | 8 | #include <net/rtnetlink.h> |
| 9 | 9 | |
| 10 | −struct bareudp_conf { | |
| 11 | − __be16 ethertype; | |
| 12 | − __be16 port; | |
| 13 | − u16 sport_min; | |
| 14 | − bool multi_proto_mode; | |
| 15 | −}; | |
| 16 | − | |
| 17 | 10 | static inline bool netif_is_bareudp(const struct net_device *dev) |
| 18 | 11 | { |
| 19 | 12 | return dev->rtnl_link_ops && |