From aba8525ccebd37836169343b384e3dc9cd4a0bb0 Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 12 Jul 2014 21:04:07 +0000 Subject: [PATCH] Log a warning whenever RTM_DESYNC is seen. Thus giving entrail investigators some clue why dhclient may have gotten confused when some RTM_ messages vanish. sthen@ thinks this is a good start. --- sbin/dhclient/dhclient.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index bf7e92d08db..b5264ce7d39 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.316 2014/07/12 09:04:21 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.317 2014/07/12 21:04:07 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -228,6 +228,9 @@ routehandler(void) goto done; switch (rtm->rtm_type) { + case RTM_DESYNC: + warning("route socket buffer overflow"); + break; case RTM_NEWADDR: ifam = (struct ifa_msghdr *)rtm; if (ifam->ifam_index != ifi->index) -- 2.20.1