From 0d9b833993850ac45e91004eca447798dc7f4a93 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Wed, 20 May 2020 23:54:54 +0000 Subject: Remove no longer necessary RTLEN. --- sbin/dhclient/kroute.c | 5 ++--- sbin/dhclient/privsep.h | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'sbin/dhclient') diff --git a/sbin/dhclient/kroute.c b/sbin/dhclient/kroute.c index c6112cfce34..dd53554444d 100644 --- a/sbin/dhclient/kroute.c +++ b/sbin/dhclient/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.179 2020/05/20 23:47:23 krw Exp $ */ +/* $OpenBSD: kroute.c,v 1.180 2020/05/20 23:54:53 krw Exp $ */ /* * Copyright 2012 Kenneth R Westerback @@ -483,8 +483,7 @@ set_routes(char *name, int index, int rdomain, int routefd, struct in_addr addr, in_addr_t addrnet, gatewaynet; unsigned int i, len; - if (rtstatic_len <= RTLEN) - flush_routes(index, routefd, rdomain, rtstatic, rtstatic_len, addr); + flush_routes(index, routefd, rdomain, rtstatic, rtstatic_len, addr); addrnet = addr.s_addr & addrmask.s_addr; diff --git a/sbin/dhclient/privsep.h b/sbin/dhclient/privsep.h index 60ce463e127..de2d9a6448f 100644 --- a/sbin/dhclient/privsep.h +++ b/sbin/dhclient/privsep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.h,v 1.66 2020/05/20 19:13:34 krw Exp $ */ +/* $OpenBSD: privsep.h,v 1.67 2020/05/20 23:54:53 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -24,8 +24,6 @@ enum imsg_code { IMSG_TELL_UNWIND }; -#define RTLEN 128 - struct proposal { struct in_addr ifa; struct in_addr netmask; -- cgit v1.2.3