CVS commit: src/usr.sbin/ifwatchd

2020-10-04 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sun Oct  4 20:36:32 UTC 2020

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
ifwatchd: Enable SO_RERROR to re-sync interface state.

Interface arrival, departure and link state changes will sync
and if different will be actioned.

Currently we do not track addresses, so any changes there are still lost.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2020-09-27 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sun Sep 27 19:55:22 UTC 2020

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
ifwatchd: remove SIOCGIFDATA and SIOCGIFMEDIA ioctls

getifaddrs(3) and route(4) provide all the data we need.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2020-09-22 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 23 02:32:04 UTC 2020

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
ifwatchd: Check link state if no media is supported on initial ups.

We can check this via SIOCGIFDATA and ifi_link_state.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2019-02-17 Thread David H. Gutteridge
Module Name:src
Committed By:   gutteridge
Date:   Sun Feb 17 20:50:25 UTC 2019

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.8

Log Message:
ifwatchd(8): remove lingering references to dhclient(8). In this case,
its replacement handles carrier detection itself. Addresses part of
PR misc/53669.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/ifwatchd/ifwatchd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2018-03-07 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Mar  7 10:06:41 UTC 2018

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Remove case labels we will never trigger due to filtering.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2017-04-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Tue Apr 11 14:21:35 UTC 2017

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Use RO_MSGFILTER.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-10-07 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct  7 15:49:59 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
CID 1373516: Missing breaks
Also delete perror, fix fprintf to be syslog.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-10-06 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Oct  6 11:13:57 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Inhibit initial up should only apply at program start, not for hot plugged 
interfaces while it's running.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-10-06 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Oct  6 11:08:56 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Remove rescan_interfaces as the interface announcement message
contains the interface index.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-10-06 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Oct  6 10:33:05 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Simplify logic - invoke script when address is added and ready or
when removed.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-10-06 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Oct  6 10:30:31 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
We already know the interface name, so don't bother calling if_indextoname
to work it out again.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Sep 29 15:25:28 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Sprinkle some RCSID loving.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Sep 29 15:21:09 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Now that sppp announces address additions and removals with state
flags, we no longer need the custom sppp code to detect if we are
connected or not.

Add commentary on if we really need to handle RTM_DELADDR only when
detached.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Sep 29 13:36:30 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Don't invoke scripts for INADDR_ANY or INADDR_BROADCAST addresses.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 21:07:29 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Check address is not tentative, duplicated or detached before running
scripts.

XXX Do we want new script actions for detached or duplicated addresses?


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 20:31:32 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
We should always know the interface the address message was for.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 18:18:10 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Add some consistency for dispatching  always send the whole message.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 16:47:35 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Sprinkle some const.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 14:50:48 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Skip message if not our RTM_VERSION and silently ignore old message types.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-09-21 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Sep 21 14:46:55 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Use recvmsg to ensure we get every message rather than potentially overflowing 
our buffer.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2016-01-27 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Jan 27 18:55:51 UTC 2016

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
Use unsigned, not signed, int for shifting 1 left until zero.

Signed shift into sign bit and beyond is undefined behaviour.

>From Michael McConville.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2011-08-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Aug 30 18:57:38 UTC 2011

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/ifwatchd/ifwatchd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2010-04-16 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Fri Apr 16 13:56:45 UTC 2010

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.8

Log Message:
Remove trailing whitespace, replace "Ar -i" with "Fl i".


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.sbin/ifwatchd/ifwatchd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/ifwatchd

2010-04-16 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Fri Apr 16 13:47:50 UTC 2010

Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.8

Log Message:
add examples for setting ipv6 default routes in ip-up/ip-down scripts


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/ifwatchd/ifwatchd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.