Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet6/ip6_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2.2.3 retrieving revision 1.3 diff -u -p -r1.2.2.3 -r1.3 --- src/sys/netinet6/ip6_input.c 1999/08/02 22:36:05 1.2.2.3 +++ src/sys/netinet6/ip6_input.c 1999/07/03 21:30:18 1.3 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.2.2.3 1999/08/02 22:36:05 thorpej Exp $ */ +/* $NetBSD: ip6_input.c,v 1.3 1999/07/03 21:30:18 thorpej Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -69,9 +69,6 @@ #endif #if (defined(__FreeBSD__) && __FreeBSD__ >= 3) || defined(__NetBSD__) #include "opt_inet.h" -#ifdef __NetBSD__ /*XXX*/ -#include "opt_ipsec.h" -#endif #endif #include @@ -146,7 +143,7 @@ struct ip6stat ip6stat; static void ip6_init2 __P((void *)); -static int ip6_hopopts_input __P((u_int32_t *, u_int32_t *, struct mbuf **, int *)); +static int ip6_hopopts_input __P((u_int32_t *, long *, struct mbuf **, int *)); /* * IP6 initialization: fill in IP6 protocol switch table. @@ -242,7 +239,7 @@ ip6_input(m) register struct ip6_hdr *ip6; int off = sizeof(struct ip6_hdr), nest; u_int32_t plen; - u_int32_t rtalert = ~0; + long rtalert = -1; int nxt, ours = 0; #ifdef IPSEC @@ -454,7 +451,7 @@ ip6_input(m) * accept the packet if a router alert option is included * and we act as an IPv6 router. */ - if (rtalert != ~0 && ip6_forwarding) + if (rtalert >= 0 && ip6_forwarding) ours = 1; } else nxt = ip6->ip6_nxt; @@ -528,7 +525,7 @@ ip6_input(m) static int ip6_hopopts_input(plenp, rtalertp, mp, offp) u_int32_t *plenp; - u_int32_t *rtalertp; /* XXX: should be stored more smart way */ + long *rtalertp; /* XXX: should be stored more smart way */ struct mbuf **mp; int *offp; { @@ -568,7 +565,7 @@ ip6_process_hopopts(m, opthead, hbhlen, struct mbuf *m; u_int8_t *opthead; int hbhlen; - u_int32_t *rtalertp; + long *rtalertp; u_int32_t *plenp; { struct ip6_hdr *ip6;