Thanks to visit codestin.com
Credit goes to cvsweb.openbsd.org

OpenBSD CVS

CVS log for src/usr.sbin/ifstated/ifstated.c


[BACK] Up to [local] / src / usr.sbin / ifstated

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.68 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (17 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE, OPENBSD_7_7, OPENBSD_7_6_BASE, OPENBSD_7_6, HEAD
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

correct indentation; no functional change
ok tb@

Revision 1.67 / (download) - annotate - [select for diffs], Wed Dec 28 21:30:16 2022 UTC (2 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.66: +2 -2 lines
Diff to previous 1.66 (colored)

spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:21 2021 UTC (4 years, 2 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <[email protected]>

ok deraadt@ semarie@ claudio@

Revision 1.65 / (download) - annotate - [select for diffs], Wed Dec 30 18:40:44 2020 UTC (4 years, 8 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.64: +3 -2 lines
Diff to previous 1.64 (colored)

getifaddrs() can return entries where ifa_addr is NULL. Check for this
before accessing anything in ifa_addr.
ok claudio@

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:47 2019 UTC (6 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.63 / (download) - annotate - [select for diffs], Tue Jan 22 09:25:29 2019 UTC (6 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored)

PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used.

ok dlg@

Revision 1.62 / (download) - annotate - [select for diffs], Wed Oct 31 07:39:13 2018 UTC (6 years, 10 months ago) by mestre
Branch: MAIN
Changes since 1.61: +7 -2 lines
Diff to previous 1.61 (colored)

ifstated(8) needs to load configfile from within the main loop, but also to
reload it on SIGHUP so unveil(2) it with read permissions. Additionally all
commands are exec'ed through /bin/sh instead of directly so we can just
unveil(2) /bin/sh with x perms.

OK deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Aug 30 16:14:52 2017 UTC (8 years ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.60: +34 -4 lines
Diff to previous 1.60 (colored)

Add support for interface departure and arrival.

Ok jca@, benno@

Revision 1.60 / (download) - annotate - [select for diffs], Sun Aug 20 17:49:29 2017 UTC (8 years, 1 month ago) by rob
Branch: MAIN
Changes since 1.59: +16 -11 lines
Diff to previous 1.59 (colored)

Stop tracking interface indexes. Suggested by deraadt.

Tweaks and ok jca@
"just get it in" deraadt@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Aug 14 03:15:28 2017 UTC (8 years, 1 month ago) by rob
Branch: MAIN
Changes since 1.58: +1 -4 lines
Diff to previous 1.58 (colored)

Remove some dead logging code that was never used.

Ok benno@

Revision 1.58 / (download) - annotate - [select for diffs], Tue Aug 8 14:09:38 2017 UTC (8 years, 1 month ago) by rob
Branch: MAIN
Changes since 1.57: +5 -6 lines
Diff to previous 1.57 (colored)

Consistent use of log.c, and removal of err.h include. Makes ifstated
configtest output the same as other networking daemons.

Ok jca@

Revision 1.57 / (download) - annotate - [select for diffs], Sun Aug 6 19:27:54 2017 UTC (8 years, 1 month ago) by rob
Branch: MAIN
Changes since 1.56: +25 -14 lines
Diff to previous 1.56 (colored)

Improve error checking during processing of routing messages. Handling of
RTM_DESYNC encouraged by deraadt. ok jca@ benno@

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jul 24 12:33:59 2017 UTC (8 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.55: +4 -1 lines
Diff to previous 1.55 (colored)

Use pledge(2)

Simple promises proposed by Rob Pierce after exploring more complicated
privsep schemes.  ok benno@

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jul 23 13:53:54 2017 UTC (8 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

Don't bother initializing global variables to 0, since they will be in BSS.
ok jca

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jul 23 13:49:18 2017 UTC (8 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

use ssize_t; ok jca

Revision 1.53 / (download) - annotate - [select for diffs], Sat Jul 22 19:52:01 2017 UTC (8 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored)

No need for sys/ioctl.h any more

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jul 21 16:32:18 2017 UTC (8 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Add a newline

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jul 21 16:31:23 2017 UTC (8 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.50: +6 -19 lines
Diff to previous 1.50 (colored)

No need for ioctl(SIOCGIFDATA), getifaddrs(3) gives us the link state

Noticed while reviewing a pledge(2) diff from Rob Pierce.  ok florian@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Jul 4 21:09:52 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored)

rename fetch_state() to fetch_ifstate(). The word "state" is a bit
overloaded in this daemon.
From Rob Pierce

Revision 1.49 / (download) - annotate - [select for diffs], Mon Jul 3 18:45:34 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.48: +7 -10 lines
Diff to previous 1.48 (colored)

Remove obvious clear_config() comments and misleading state_change() comments.
Also relocate do_action() calls for the init block from change_state() to
occur with the corresponding do_action() calls for the body block.
From Rob Pierce
ok stsp@ and i

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jul 2 15:28:26 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.47: +11 -11 lines
Diff to previous 1.47 (colored)

Second diff to rename additional "always" variable in struct ifsd_config.
from Rob Pierce.
Requested by stsp@

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jul 2 14:28:45 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.46: +4 -2 lines
Diff to previous 1.46 (colored)

Remove variable assignment in declaration and add whitespace to improve
readability. No functional change.
from Rob Pierce.

ok stsp@ and me

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jul 2 14:27:30 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.45: +6 -6 lines
Diff to previous 1.45 (colored)

Rename one of the "always" variables to "body" for improved readability.
No functional change.
from Rob Pierce.

ok stsp@ and me

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 28 11:10:08 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.44: +7 -8 lines
Diff to previous 1.44 (colored)

whitespace fixes, from Rob Pierce and me

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 28 10:38:16 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.43: +22 -22 lines
Diff to previous 1.43 (colored)

usage() gets __dead attribute, from Rob Pierce

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 27 20:46:34 2017 UTC (8 years, 2 months ago) by benno
Branch: MAIN
Changes since 1.42: +20 -19 lines
Diff to previous 1.42 (colored)

Hoist some privileged code in preparation for future work.
Based on an approach in vmd with mc146818/ns8250.
diff by Rob Pierce <rob -AT- 2keys -DOT- ca>

ok deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jun 18 12:03:47 2017 UTC (8 years, 3 months ago) by benno
Branch: MAIN
Changes since 1.41: +10 -6 lines
Diff to previous 1.41 (colored)

update log.c in ifstated to the same used in bgpd etc.
Done by Rob Pierce <rob AT 2keys DOT ca>, thanks

Revision 1.41 / (download) - annotate - [select for diffs], Thu May 30 19:22:48 2013 UTC (12 years, 3 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.40: +6 -1 lines
Diff to previous 1.40 (colored)

setsockopt to see messages for interfaces in all routing domains again
instead of just the primary one.
problem reported along with the right idea on how to fix it by Sean
Gallagher (sean at teletech.com.au), actual fix by yours truly. Thanks Sean!
ok ryan claudio

Revision 1.40 / (download) - annotate - [select for diffs], Mon Jul 4 04:34:14 2011 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.39: +2 -3 lines
Diff to previous 1.39 (colored)

LINK_STATE_IS_UP() cleanup userland part. There is no need to special
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does
the right job.
OK deraadt@ henning@

This needs a -current kernel or link state may be not reported correctly.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Mar 15 08:38:07 2011 UTC (14 years, 6 months ago) by okan
Branch: MAIN
Changes since 1.38: +4 -5 lines
Diff to previous 1.38 (colored)

use appropriate timerclear macro - from Christiano F. Haesbaert

ok mcbride@

Revision 1.38 / (download) - annotate - [select for diffs], Wed Jul 7 21:52:00 2010 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Make ifstated cause a little less noise in /var/log/daemon.
State transitions are still logged, but commands run are now
printed only in debug mode (ifstated -d).

ok deraadt

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jun 7 15:14:22 2010 UTC (15 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +2 -4 lines
Diff to previous 1.36 (colored)

setproctitle(NULL) is not needed, Michael Lechtermann; ok mpf

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 4 13:50:14 2010 UTC (15 years, 7 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.35: +9 -2 lines
Diff to previous 1.35 (colored)

remove assumption that internal IFSD_LINK* defines are the same as
LINK_STATE* defines in <net/if.h>, which were changed Sep 14.  this
fixes link state down being treated as up.

ok claudio@ henning@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jun 25 17:14:57 2009 UTC (16 years, 3 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

fix the function name in log_warn() text, it was borrowed from some
previous test code of mine.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 25 09:33:03 2009 UTC (16 years, 3 months ago) by sthen
Branch: MAIN
Changes since 1.33: +7 -1 lines
Diff to previous 1.33 (colored)

Teach ifstated to use ROUTE_FILTER. Requested by claudio@.
ok claudio@ henning@

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 12 19:15:02 2008 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.32: +6 -1 lines
Diff to previous 1.32 (colored)

Error out with usage line if additional arguments are given after the
option parsing. Found out the hard way by jdixon on ifstated.

ok sobrado@, jdixon@, millert@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Nov 27 18:50:00 2007 UTC (17 years, 9 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.31: +1 -5 lines
Diff to previous 1.31 (colored)

remove some unneeded #includes; ok mcbride@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Oct 25 06:03:31 2007 UTC (17 years, 11 months ago) by pyr
Branch: MAIN
Changes since 1.30: +19 -58 lines
Diff to previous 1.30 (colored)

sync logging with most other daemons.
ok mcbride@, mpf@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Nov 28 19:28:16 2006 UTC (18 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored)

handle the new link states as UP

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 16 06:12:58 2006 UTC (19 years, 6 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.28: +5 -6 lines
Diff to previous 1.28 (colored)

Kill useless arguments to libevent *_set() functions.

ok mpf@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Feb 8 13:50:26 2006 UTC (19 years, 7 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

- configuration file can have relative path
- do not suppress logging if there is no configuration yet, otherwise
  we cannot log that configuration parsing failed

ok mpf@ mcbride@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Feb 1 23:23:37 2006 UTC (19 years, 7 months ago) by mpf
Branch: MAIN
Changes since 1.26: +8 -23 lines
Diff to previous 1.26 (colored)

Simplify expression code. Patch from markus@.
ok mcbride@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Feb 1 23:13:09 2006 UTC (19 years, 7 months ago) by mpf
Branch: MAIN
Changes since 1.25: +49 -25 lines
Diff to previous 1.25 (colored)

Run external tests synchronous at state changes and
call adjust_external_expressions() which updates the
expressions for all states.
Address similar state caching problems for external tests as
in previous commit.

Don't ignore set-state actions if they are happening right
after a state change. (Based on a patch from Holger Mikolon).

ok markus@, testing sturm@, ok mcbride@.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Feb 1 22:19:33 2006 UTC (19 years, 7 months ago) by mpf
Branch: MAIN
Changes since 1.24: +24 -14 lines
Diff to previous 1.24 (colored)

If we reenter a state, it still has the old link state values cached.
Therefore, if it enters a state without calling scan_ifstate()
(e.g. through an external-test) ifstated will do the wrong thing (tm).
Change scan_ifstate() to first walk over all states and update the
expressions _before_ they are evaluated.
Help and ok markus@, testing sturm@, ok mcbride@.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 25 00:31:05 2006 UTC (19 years, 8 months ago) by mpf
Branch: MAIN
Changes since 1.23: +1 -3 lines
Diff to previous 1.23 (colored)

Remove gratuitous fetch_state() calls in state_change().
It could race with a second incoming routing message, which would
not trigger any action, because of the already updated status cache.
Found by markus@.
OK markus@ mcbride@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 23 22:19:40 2006 UTC (19 years, 8 months ago) by mpf
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

Open the routing socket before load_config() calls fetch_state().
Otherwise we could loose routing messages that arrive in between.                                                                OK markus@, mcbride@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jul 28 16:59:42 2005 UTC (20 years, 2 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.21: +5 -1 lines
Diff to previous 1.21 (colored)

Fix two situations where ifstated was leaking zombies.
Tested by sturm@ OK henning@

Revision 1.21 / (download) - annotate - [select for diffs], Mon Feb 7 12:38:44 2005 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.20: +3 -4 lines
Diff to previous 1.20 (colored)

Fix protos, and a KNF nit. From Andrey Matveev <[email protected]>

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 5 21:17:02 2004 UTC (20 years, 11 months ago) by mpf
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Use priority instead of facility in vsyslog()
Pointed out by Peter Philipp. ok mcbride@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 21 12:04:39 2004 UTC (21 years ago) by mpf
Branch: MAIN
Changes since 1.18: +11 -7 lines
Diff to previous 1.18 (colored)

Start external tests and init commands also in the initial state.
Log the pid when killing an external program.
Avoid a possible NULL dereference.
ok mcbride@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 15 23:59:11 2004 UTC (21 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

knf

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 27 11:55:27 2004 UTC (21 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

various small fixes;
ok mcbride@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 15 19:42:33 2004 UTC (21 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.15: +4 -5 lines
Diff to previous 1.15 (colored)

call daemon(3) early; from tholo@; ok mcbride@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 10 00:09:42 2004 UTC (21 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Plug memory leak on SIGHUP. From Patrick Latifi.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 7 08:49:05 2004 UTC (21 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.13: +5 -2 lines
Diff to previous 1.13 (colored)

Document -v in ifstated.8 and usage() and use __progname in usage().

Fix from merith at redmoon dot openbsd dot de, with slightly modified wording.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 7 08:37:49 2004 UTC (21 years, 6 months ago) by mcbride
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Don't try to dereference null configuration.

Fix from merith at redmoon dot openbsd dot de.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 26 11:52:59 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.11: +13 -1 lines
Diff to previous 1.11 (colored)

bring in log_init() from bgpd which gives us openlog(), ryan ok

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 16 05:26:58 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

freeifaddrs() data from getifaddrs()

from Patrick Latifi <[email protected]>

Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 15 00:56:01 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.9: +74 -62 lines
Diff to previous 1.9 (colored)

- Check error condition on config; load exit() on initial startup, simply
  warn if loading due to SIGHUP. (pointed out by mpf@)
- Can't just bcopy the config struct, there are TAILQs. Pass pointers instead.
- Initialise the SIGHUP and routing socket handlers after config is loaded.

ok henning@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 12 19:22:13 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

Add missing \n to logit(), reverse logic on asprintf error so the error case
comes last.

ok henning@

Revision 1.8 / (download) - annotate - [select for diffs], Thu Feb 12 08:12:58 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Add missing \n on usage. From Daniel Cavanagh <[email protected]>

Revision 1.7 / (download) - annotate - [select for diffs], Thu Feb 12 01:43:48 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.6: +41 -24 lines
Diff to previous 1.6 (colored)

the macro terminator suggests: hastalavista, LOG()
use a logit() function with varargs and bells and whistles instead of this
macro gore in LOG with static # of args that results in highlights like
LOG(level, "%s", "started")
logit blatantly stolenb from bgpd
test and ok and "remove the \n then" ryan

Revision 1.6 / (download) - annotate - [select for diffs], Thu Feb 12 00:19:42 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.5: +16 -17 lines
Diff to previous 1.5 (colored)

KNF

Revision 1.5 / (download) - annotate - [select for diffs], Thu Feb 12 00:08:14 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

we need to memcpy out the ifmsghdr, it has different alignent requirements
then the char buffer and sparc64 hates unaligned shitz, ryan hshoexer ok

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 12 00:04:08 2004 UTC (21 years, 7 months ago) by henning
Branch: MAIN
Changes since 1.3: +5 -6 lines
Diff to previous 1.3 (colored)

bit KNF, to stderr what belongs to stderr, err where you mean err and not
errx as written
ryan hshoexer ok

Revision 1.3 / (download) - annotate - [select for diffs], Thu Feb 5 02:18:55 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.2: +12 -6 lines
Diff to previous 1.2 (colored)

Clean up command line options:
- Make -v work as intended.
- Add -n to test config without doing anything.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 4 23:47:49 2004 UTC (21 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.1: +509 -172 lines
Diff to previous 1.1 (colored)

Update to ifstated; replace parser, introduce the concept of states,
external tests, and boolean logic. Allows ifstated to handle partial
failures on firewalls that are CARPd to each other.

ok deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 23 21:34:30 2004 UTC (21 years, 8 months ago) by mcbride
Branch: MAIN

ifstated, from mpf@.  This daemon listens on the routing socket for
interface link state changes and runs commands when these changes occur.
This is particularly useful with carp(4) interfaces; stay tuned for
additional features and documentation.

ok deraadt@ mpf@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.