summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2001-02-20 10:33:28 +0000
committeritojun <itojun@openbsd.org>2001-02-20 10:33:28 +0000
commit76e1a8998bde99103094f49c4507eddbbd0bdd70 (patch)
tree3792fc8f2b3aab6393746e464a678cead0252b7f
parenttighten IPv4 option header processing (we may want to do more). (diff)
downloadwireguard-openbsd-76e1a8998bde99103094f49c4507eddbbd0bdd70.tar.xz
wireguard-openbsd-76e1a8998bde99103094f49c4507eddbbd0bdd70.zip
use u_int32_t, not u_int, for DLT_NULL encapsulation. sync with kame
-rw-r--r--sys/net/if_faith.c2
-rw-r--r--sys/net/if_gif.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index 6c582a10e6e..1012a420de3 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -145,7 +145,7 @@ faithoutput(ifp, m, dst, rt)
* try to free it or keep a pointer a to it).
*/
struct mbuf m0;
- u_int af = dst->sa_family;
+ u_int32_t af = dst->sa_family;
m0.m_next = m;
m0.m_len = 4;
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c
index 8ec194b2efb..91074f0d39c 100644
--- a/sys/net/if_gif.c
+++ b/sys/net/if_gif.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gif.c,v 1.12 2001/02/06 03:26:10 mickey Exp $ */
+/* $OpenBSD: if_gif.c,v 1.13 2001/02/20 10:33:28 itojun Exp $ */
/* $KAME: if_gif.c,v 1.32 2000/10/07 03:20:55 itojun Exp $ */
/*
@@ -207,7 +207,7 @@ gif_output(ifp, m, dst, rt)
* try to free it or keep a pointer a to it).
*/
struct mbuf m0;
- u_int af = dst->sa_family;
+ u_int32_t af = dst->sa_family;
m0.m_next = m;
m0.m_len = 4;