summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix/socket.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-09-14 08:39:12 +0000
committerflorian <florian@openbsd.org>2020-09-14 08:39:12 +0000
commit1bf56eb00e25d09f8e7fc4706142bd4e5ae56489 (patch)
treee751a3899e479d411d73527c4b9a452bd612a7d0 /usr.bin/dig/lib/isc/unix/socket.c
parentRewrite isc_time_microdiff() as uelapsed() and put it directly (diff)
downloadwireguard-openbsd-1bf56eb00e25d09f8e7fc4706142bd4e5ae56489.tar.xz
wireguard-openbsd-1bf56eb00e25d09f8e7fc4706142bd4e5ae56489.zip
Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h dragged in. OK deraadt
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/socket.c')
-rw-r--r--usr.bin/dig/lib/isc/unix/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/dig/lib/isc/unix/socket.c b/usr.bin/dig/lib/isc/unix/socket.c
index e96cbff0294..56851275b90 100644
--- a/usr.bin/dig/lib/isc/unix/socket.c
+++ b/usr.bin/dig/lib/isc/unix/socket.c
@@ -34,7 +34,6 @@
#include <isc/list.h>
#include <isc/log.h>
-#include <isc/net.h>
#include <isc/region.h>
#include <isc/socket.h>
#include <isc/task.h>
@@ -1348,8 +1347,7 @@ socket_create(isc_socketmgr_t *manager0, int pf, isc_sockettype_t type,
switch (sock->type) {
case isc_sockettype_udp:
-#define DCSPPKT(pf) ((pf == AF_INET) ? ISC_NET_DSCPPKTV4 : ISC_NET_DSCPPKTV6)
- sock->pktdscp = (isc_net_probedscp() & DCSPPKT(pf)) != 0;
+ sock->pktdscp = 1;
break;
case isc_sockettype_tcp:
break;