diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2017-08-04 14:24:06 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2017-08-04 14:24:06 +0000 |
commit | c246f00532686be947a29e148358d33931d197f8 (patch) | |
tree | c19c55062b791c5ebce240ccfeb974dc7155d226 | |
parent | 2965ed0135e80428a7d5230b130b32c69d880893 (diff) |
We do have SO_TIMESTAMP since some time and there is other code in the
kernel that uses it without the #ifdef guard.
OK bluhm
-rw-r--r-- | sys/netinet/ip_input.c | 5 | ||||
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index ee74eeadc4c..3f74687177d 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_input.c,v 1.315 2017/07/05 14:47:58 visa Exp $ */ +/* $OpenBSD: ip_input.c,v 1.316 2017/08/04 14:24:05 florian Exp $ */ /* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */ /* @@ -1711,7 +1711,6 @@ void ip_savecontrol(struct inpcb *inp, struct mbuf **mp, struct ip *ip, struct mbuf *m) { -#ifdef SO_TIMESTAMP if (inp->inp_socket->so_options & SO_TIMESTAMP) { struct timeval tv; @@ -1721,7 +1720,7 @@ ip_savecontrol(struct inpcb *inp, struct mbuf **mp, struct ip *ip, if (*mp) mp = &(*mp)->m_next; } -#endif + if (inp->inp_flags & INP_RECVDSTADDR) { *mp = sbcreatecontrol((caddr_t) &ip->ip_dst, sizeof(struct in_addr), IP_RECVDSTADDR, IPPROTO_IP); diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index ed8702fa71a..e200d5f1a67 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.198 2017/07/05 11:34:10 bluhm Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.199 2017/08/04 14:24:05 florian Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -942,7 +942,6 @@ ip6_savecontrol(struct inpcb *in6p, struct mbuf *m, struct mbuf **mp) { struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *); -#ifdef SO_TIMESTAMP if (in6p->inp_socket->so_options & SO_TIMESTAMP) { struct timeval tv; @@ -952,7 +951,6 @@ ip6_savecontrol(struct inpcb *in6p, struct mbuf *m, struct mbuf **mp) if (*mp) mp = &(*mp)->m_next; } -#endif /* RFC 2292 sec. 5 */ if ((in6p->inp_flags & IN6P_PKTINFO) != 0) { |