summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vxlan.c
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-11-27 16:17:52 +0000
committermpi <mpi@openbsd.org>2015-11-27 16:17:52 +0000
commitfc9545fd8fe12de8fc5be6f6a5daaf33d1f6ddc0 (patch)
treecb343f1de92c18bb356bc117dd5f8f2dbb81edc1 /sys/net/if_vxlan.c
parentDon't panic in pmap_enter() if we deplete the pool of pv entries and the (diff)
downloadwireguard-openbsd-fc9545fd8fe12de8fc5be6f6a5daaf33d1f6ddc0.tar.xz
wireguard-openbsd-fc9545fd8fe12de8fc5be6f6a5daaf33d1f6ddc0.zip
Keep "struct vxlan_softc" private to prevent pulling more headers when
<net/if_vxlan.h> is included.
Diffstat (limited to 'sys/net/if_vxlan.c')
-rw-r--r--sys/net/if_vxlan.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c
index 2669dceef8c..e7a1a228b49 100644
--- a/sys/net/if_vxlan.c
+++ b/sys/net/if_vxlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vxlan.c,v 1.33 2015/10/25 12:05:40 mpi Exp $ */
+/* $OpenBSD: if_vxlan.c,v 1.34 2015/11/27 16:17:52 mpi Exp $ */
/*
* Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org>
@@ -57,6 +57,25 @@
#include <net/if_vxlan.h>
+struct vxlan_softc {
+ struct arpcom sc_ac;
+ struct ifmedia sc_media;
+
+ struct ip_moptions sc_imo;
+ void *sc_ahcookie;
+ void *sc_lhcookie;
+ void *sc_dhcookie;
+
+ struct sockaddr_storage sc_src;
+ struct sockaddr_storage sc_dst;
+ in_port_t sc_dstport;
+ u_int sc_rdomain;
+ int sc_vnetid;
+ u_int8_t sc_ttl;
+
+ LIST_ENTRY(vxlan_softc) sc_entry;
+};
+
void vxlanattach(int);
int vxlanioctl(struct ifnet *, u_long, caddr_t);
void vxlanstart(struct ifnet *);