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/netinet/raw_ip.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/raw_ip.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.163 retrieving revision 1.165 diff -u -p -r1.163 -r1.165 --- src/sys/netinet/raw_ip.c 2017/03/03 07:13:06 1.163 +++ src/sys/netinet/raw_ip.c 2017/07/06 17:08:57 1.165 @@ -1,4 +1,4 @@ -/* $NetBSD: raw_ip.c,v 1.163 2017/03/03 07:13:06 ozaki-r Exp $ */ +/* $NetBSD: raw_ip.c,v 1.165 2017/07/06 17:08:57 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,11 +65,10 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.163 2017/03/03 07:13:06 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.165 2017/07/06 17:08:57 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" -#include "opt_compat_netbsd.h" #include "opt_ipsec.h" #include "opt_mrouting.h" #include "opt_net_mpsafe.h" @@ -105,10 +104,6 @@ __KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1 #include #endif /* IPSEC */ -#ifdef COMPAT_50 -#include -#endif - struct inpcbtable rawcbtable; int rip_pcbnotify(struct inpcbtable *, struct in_addr, @@ -149,10 +144,7 @@ rip_sbappendaddr(struct inpcb *last, str if (last->inp_flags & INP_NOHEADER) m_adj(n, hlen); if (last->inp_flags & INP_CONTROLOPTS -#ifdef SO_OTIMESTAMP - || last->inp_socket->so_options & SO_OTIMESTAMP -#endif - || last->inp_socket->so_options & SO_TIMESTAMP) + || SOOPT_TIMESTAMP(last->inp_socket->so_options)) ip_savecontrol(last, &opts, ip, n); if (sbappendaddr(&last->inp_socket->so_rcv, sa, n, opts) == 0) { /* should notify about lost packet */ @@ -213,7 +205,7 @@ rip_input(struct mbuf *m, ...) #if defined(IPSEC) /* check AH/ESP integrity. */ else if (ipsec_used && - ipsec4_in_reject_so(m, last->inp_socket)) { + ipsec4_in_reject(m, last)) { IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); /* do not inject data to pcb */ } @@ -228,7 +220,7 @@ rip_input(struct mbuf *m, ...) #if defined(IPSEC) /* check AH/ESP integrity. */ if (ipsec_used && last != NULL - && ipsec4_in_reject_so(m, last->inp_socket)) { + && ipsec4_in_reject(m, last)) { m_freem(m); IPSEC_STATINC(IPSEC_STAT_IN_POLVIO); IP_STATDEC(IP_STAT_DELIVERED);