Permalink
Browse files

on openbsd, grab "proto" by myself as ip_input() would not give it to…

… us.

XXX ip_input() uses extra arguments to other purposes and it looks unsafe
to change that - we may break other part if we try to pass "proto".
  • Loading branch information...
1 parent 8ef8830 commit a8f8f7c0425d13041e0c1a987801bc31eebd07fb itojun committed Dec 28, 1999
Showing with 5 additions and 0 deletions.
  1. +5 −0 kame/sys/netinet/in_gif.c
@@ -259,10 +259,15 @@ in_gif_input(m, va_alist)
va_start(ap, m);
off = va_arg(ap, int);
+#ifndef __OpenBSD__
proto = va_arg(ap, int);
+#endif
va_end(ap);
ip = mtod(m, struct ip *);
+#ifdef __OpenBSD__
+ proto = ip->ip_p;
+#endif
/* this code will be soon improved. */
#define satosin(sa) ((struct sockaddr_in *)(sa))

0 comments on commit a8f8f7c

Please sign in to comment.