summaryrefslogtreecommitdiff
path: root/drivers/net/bareudp.c
diff options
context:
space:
mode:
authorGuillaume Nault <gnault@redhat.com>2021-12-10 22:56:39 +0300
committerDavid S. Miller <davem@davemloft.net>2021-12-13 15:34:09 +0300
commitdcdd77ee55a70b6ddfcfbe8e6bbf6d002994644c (patch)
treeb5b0567ac33d3ded36195ed66297e3e46d418f94 /drivers/net/bareudp.c
parent614b7a1f28f401332736235a7d2d17ceda16945c (diff)
downloadlinux-dcdd77ee55a70b6ddfcfbe8e6bbf6d002994644c.tar.xz
bareudp: Move definition of struct bareudp_conf to bareudp.c
This structure is used only in bareudp.c. While there, adjust include files: we need netdevice.h, not skbuff.h. Signed-off-by: Guillaume Nault <gnault@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bareudp.c')
-rw-r--r--drivers/net/bareudp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bareudp.c b/drivers/net/bareudp.c
index fb71a0753385..f80330361399 100644
--- a/drivers/net/bareudp.c
+++ b/drivers/net/bareudp.c
@@ -38,6 +38,13 @@ struct bareudp_net {
struct list_head bareudp_list;
};
+struct bareudp_conf {
+ __be16 ethertype;
+ __be16 port;
+ u16 sport_min;
+ bool multi_proto_mode;
+};
+
/* Pseudo network device */
struct bareudp_dev {
struct net *net; /* netns for packet i/o */