diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-07-12 21:04:08 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-07-12 21:04:08 +0000 |
commit | a9810777b8982f665ef03499c7420769ba79251a (patch) | |
tree | 25399c5a91f85509ba855034e091d0340727a55e /sbin | |
parent | a06ce0c016a3ad7d7e84444a4ec9e33adb42799c (diff) |
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.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/dhclient.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <henning@openbsd.org> @@ -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) |