From f06e4616b7aff6dce615a6e662379d9e9744fbea Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Fri, 6 Oct 2017 21:14:56 +0000 Subject: Kill the divert-packet socket option IP_DIVERTFL to filter packets. It used a loop over the global list divbtable that would be hard to make MP safe. The port net/dnsfilter does not work without this, it should be converted to divert-to. Neither other ports nor base use this filter feature. ports checked by sthen@; OK mpi@ benno@ --- sys/netinet/in.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/netinet/in.h') diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 68a3826459d..3bc34d8d7e7 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -1,4 +1,4 @@ -/* $OpenBSD: in.h,v 1.124 2017/08/11 19:53:02 bluhm Exp $ */ +/* $OpenBSD: in.h,v 1.125 2017/10/06 21:14:55 bluhm Exp $ */ /* $NetBSD: in.h,v 1.20 1996/02/13 23:41:47 christos Exp $ */ /* @@ -317,11 +317,6 @@ struct ip_opts { /* source address to use */ #define IP_RTABLE 0x1021 /* int; routing table, see SO_RTABLE */ -#define IP_DIVERTFL 0x1022 /* int; divert direction flag opt */ - -/* Values used by IP_DIVERTFL socket option */ -#define IPPROTO_DIVERT_RESP 0x01 /* divert response packets */ -#define IPPROTO_DIVERT_INIT 0x02 /* divert packets initial direction */ #if __BSD_VISIBLE /* -- cgit v1.2.3