OpenBSD CVS

CVS log for src/usr.sbin/rtadvd/Attic/rtadvd.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.93, Mon Jul 23 12:04:46 2018 UTC (5 years, 10 months ago) by florian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.92: +1 -1 lines
FILE REMOVED

Remove rtadvd(8), it's time to switch to rad(8).

Revision 1.92 / (download) - annotate - [select for diffs], Mon Jul 16 07:56:04 2018 UTC (5 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored)

rtadvd is only interested in IPv6 so limit route socket to AF_INET6.
OK florian@

Revision 1.91 / (download) - annotate - [select for diffs], Tue Aug 22 01:44:09 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.90: +13 -13 lines
Diff to previous 1.90 (colored)

Rename now oddly-named variable.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Aug 13 07:52:17 2017 UTC (6 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.89: +1 -6 lines
Diff to previous 1.89 (colored)

The impossibility has been impossible since an impossible long
time. And indeed it is impossible to arrive here with something other
than a ND_OPT_PREFIX_INFORMATION. Remove #if 0'ed block.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Aug 12 07:38:26 2017 UTC (6 years, 9 months ago) by florian
Branch: MAIN
Changes since 1.88: +5 -1 lines
Diff to previous 1.88 (colored)

No need to constantly re-open a socket. Just open it up front and keep
it around.
OK jca

Revision 1.88 / (download) - annotate - [select for diffs], Thu Aug 10 19:07:14 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.87: +116 -136 lines
Diff to previous 1.87 (colored)

No need to handle multiple routing messages here.

route(4) sockets only ever ship a single routing message per read(2)
call, so simplify this.  Mostly mechanical diff for now, some further
cleanups will follow.

ok rob@ florian@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jul 12 06:11:07 2017 UTC (6 years, 10 months ago) by florian
Branch: MAIN
Changes since 1.86: +3 -5 lines
Diff to previous 1.86 (colored)

replace
log_warnx("foo");
exit(1);
with
fatalx("foo);
OK benno

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jun 9 13:31:03 2017 UTC (7 years ago) by florian
Branch: MAIN
Changes since 1.85: +24 -18 lines
Diff to previous 1.85 (colored)

If we receive a router solicitation with a source link-layer address
option respond with a unicast advertisement. This improves air time on
wireless networks and reduces energy consumption on battery powered
devices. For details see RFC 7772 "Reducing Energy Consumption of
Router Advertisements" aka BCP 202.
Input & OK bluhm@

Revision 1.85 / (download) - annotate - [select for diffs], Wed Apr 5 14:50:05 2017 UTC (7 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.84: +15 -16 lines
Diff to previous 1.84 (colored)

Unify variables used for recvmsg/sendmsg

ok millert@ deraadt@

Revision 1.84 / (download) - annotate - [select for diffs], Wed Apr 5 14:48:48 2017 UTC (7 years, 2 months ago) by jca
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

sendmsg returns a signed value, fix error check

ok millert@ deraadt@

Revision 1.83 / (download) - annotate - [select for diffs], Fri Jan 20 23:29:58 2017 UTC (7 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored)

work on making log.c similar in all daemons:
reduce the (mostly whitespace) differences so that log.c's can be
diffed easily.
need to set verbose in main() when option -d is used.

ok florian@

Revision 1.82 / (download) - annotate - [select for diffs], Mon Sep 26 17:15:19 2016 UTC (7 years, 8 months ago) by jca
Branch: MAIN
Changes since 1.81: +7 -1 lines
Diff to previous 1.81 (colored)

Exit early from rdaemon() is the passed fd is invalid.

fd == -1 check suggested by deraadt@, ok florian@

Revision 1.81 / (download) - annotate - [select for diffs], Wed Sep 21 18:54:24 2016 UTC (7 years, 8 months ago) by jca
Branch: MAIN
Changes since 1.80: +16 -9 lines
Diff to previous 1.80 (colored)

Use a properly aligned buffer (malloc'd, not on stack) to get routing messages.

This fixes rtadvd on (at least) armv7.  Problem reported and fix tested
by Martin Brandenburg.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Sep 21 18:51:05 2016 UTC (7 years, 8 months ago) by jca
Branch: MAIN
Changes since 1.79: +5 -5 lines
Diff to previous 1.79 (colored)

Use the correct local variable to get address & prefixlen in routing messages

This currently has no effect because route sockets are datagram
(PR_ATOMIC) sockets, so we only get one message at a time.  This means
that the parsing code could be simplified.  route(4) sockets cluebat
from claudio@

Revision 1.79 / (download) - annotate - [select for diffs], Thu Sep 15 16:16:03 2016 UTC (7 years, 8 months ago) by jca
Branch: MAIN
Changes since 1.78: +44 -7 lines
Diff to previous 1.78 (colored)

Go in the background later, using rdaemon().

rdaemon() works like daemon(3) but requires its caller to pre-open
/dev/null.  This makes it possible to go in the background after
a chroot(2), allowing for more error checking.  The pattern is basically
- open /dev/null
- chroot
- privdrop
- rdaemon

"design" initialy discussed with semarie@ a while ago, ok dlg@

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 3 16:57:29 2016 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

typos

Revision 1.77 / (download) - annotate - [select for diffs], Sat Aug 20 15:10:18 2016 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

Tweak timer debug output.

-RA timer on em0 is set to 16:0
+RA timer on em0 is set to 16.0s

Revision 1.76 / (download) - annotate - [select for diffs], Tue Aug 2 17:00:09 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.75: +70 -95 lines
Diff to previous 1.75 (colored)

Move to libevent; ok florian@

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jun 30 10:17:18 2016 UTC (7 years, 11 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.74: +9 -6 lines
Diff to previous 1.74 (colored)

Prevent NULL deref, pointed out by llvm's scan-build.
OK jca, millert

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jun 29 14:19:38 2016 UTC (7 years, 11 months ago) by jca
Branch: MAIN
Changes since 1.73: +46 -62 lines
Diff to previous 1.73 (colored)

Spring cleanup

- pointless casts, kill caddr_t or replace it with char *
- signed counters
- simplify if_getmtu, only one method is needed and SIOCGIFMTU is the
  cheapest
- we no longer have drivers for IFT_FDDI
- hide details of iflist management
- if (dflag) log_debug -> log_debug
- dead code and comments
- etc etc

Input from and ok florian@

Revision 1.73 / (download) - annotate - [select for diffs], Tue Mar 1 20:51:05 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

fatal("malloc") -> fatal(NULL)

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 1 12:52:43 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.71: +1 -10 lines
Diff to previous 1.71 (colored)

Pointless 'return;' in void functions

Revision 1.71 / (download) - annotate - [select for diffs], Fri Feb 26 12:50:03 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

sys/signal.h -> signal.h

Revision 1.70 / (download) - annotate - [select for diffs], Fri Feb 26 12:46:10 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.69: +1 -2 lines
Diff to previous 1.69 (colored)

Unused variable.

Revision 1.69 / (download) - annotate - [select for diffs], Fri Feb 26 12:34:30 2016 UTC (8 years, 3 months ago) by jca
Branch: MAIN
Changes since 1.68: +1 -25 lines
Diff to previous 1.68 (colored)

GC remnants of the Router Renumbering code; ok florian@

Revision 1.68 / (download) - annotate - [select for diffs], Tue Feb 9 00:40:00 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

another typo

Revision 1.67 / (download) - annotate - [select for diffs], Tue Feb 9 00:39:13 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.66: +1 -33 lines
Diff to previous 1.66 (colored)

Kill code to send unicast packets which never got enabled.

and get rid of pointless memory allocations.

ok bluhm@

Revision 1.66 / (download) - annotate - [select for diffs], Mon Feb 8 23:19:00 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.65: +16 -16 lines
Diff to previous 1.65 (colored)

Kill trailing whitespace.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Feb 8 23:15:37 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

typos

Revision 1.64 / (download) - annotate - [select for diffs], Sun Feb 7 21:10:33 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Mark a few others functions as __dead; ok bluhm@

Revision 1.63 / (download) - annotate - [select for diffs], Fri Feb 5 12:16:21 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

select -> poll in log message; ok bluhm@ florian@

Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 5 12:15:15 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.61: +15 -11 lines
Diff to previous 1.61 (colored)

Bail out if an unknown option is passed.

There is no reason for rtadvd to be different from other daemons.

Input from and ok bluhm@ florian@

Revision 1.61 / (download) - annotate - [select for diffs], Tue Dec 1 12:11:31 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.60: +16 -7 lines
Diff to previous 1.60 (colored)

Use setsockopt(ROUTE_MSGFILTER) instead of hand-rolled filtering.

ok florian@

Revision 1.60 / (download) - annotate - [select for diffs], Mon Nov 30 20:58:08 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Clean up get_next_msg(): kill dead argument/code

The "ifindex" argument has always been zero, making the interface index
checks within get_next_msg() useless.  The caller already properly
retrieves and handle the interface index of the routing messages.

ok florian@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Nov 30 20:52:28 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.58: +4 -53 lines
Diff to previous 1.58 (colored)

Remove the already disabled Router Renumbering support (RFC2894).

This code has only been reachable for two months after rtadvd has been
imported into the tree.  This unsafe protocol is supposed to be used
along with IPsec and rrenumd(8), a KAME tool that we don't have.
I couldn't find an example of use in the real world.

ok sthen@ florian@ millter@

Revision 1.58 / (download) - annotate - [select for diffs], Sun Oct 25 22:11:34 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.57: +8 -11 lines
Diff to previous 1.57 (colored)

ansify

Revision 1.57 / (download) - annotate - [select for diffs], Sun Oct 25 21:31:58 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.56: +4 -1 lines
Diff to previous 1.56 (colored)

pledge "stdio inet route"; ok deraadt@

Revision 1.56 / (download) - annotate - [select for diffs], Sun Oct 25 21:23:42 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.55: +1 -6 lines
Diff to previous 1.55 (colored)

Stop writing down a pidfile.

pid files aren't useful on OpenBSD, the rc.d(8) framework doesn't use
them.  In rtadvd, not writing a pid file means that we can set tighter
pledge(2) settings.  Also the pid file handling is pretty basic and the
atexit handler can't remove the pid file since rtadvd did a chroot - beurk.

ok florian@, "perfect" deraadt@ (!)

Revision 1.55 / (download) - annotate - [select for diffs], Thu Aug 20 22:39:29 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw

Revision 1.54 / (download) - annotate - [select for diffs], Tue Aug 18 20:25:28 2015 UTC (8 years, 9 months ago) by miod
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Fix inconsistent spelling of `inconsistent'

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:20 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jan 1 20:28:27 2015 UTC (9 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.51: +4 -8 lines
Diff to previous 1.51 (colored)

"The logging of errors SHOULD be restricted to conflicting information
that causes hosts to switch from one value to another with each
received advertisement." (RFC 4861)

Receiving of RAs on non-advertising interfaces is not a conflicting
information; don't log it.

"Mike." (the.lists AT mgm51 DOT com) reported that this
leads to excessive logging with certain cable providers in 2013.
Recently reported again by Aaron Riekenberg (aaron.riekenberg AT gmail
DOT com). Thanks!

OK bluhm@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Jan 1 16:31:59 2015 UTC (9 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.50: +15 -16 lines
Diff to previous 1.50 (colored)

KNF; no binary change

Revision 1.50 / (download) - annotate - [select for diffs], Tue Nov 18 20:54:29 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

Nuke more obvious #include duplications.

ok deraadt@ millert@ tedu@

Revision 1.49 / (download) - annotate - [select for diffs], Sun Nov 2 02:33:33 2014 UTC (9 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +16 -27 lines
Diff to previous 1.48 (colored)

convert select() to poll().
tested by brad (who found a conversion bug..)

Revision 1.48 / (download) - annotate - [select for diffs], Wed Oct 22 19:47:28 2014 UTC (9 years, 7 months ago) by brad
Branch: MAIN
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

Replace abs(3) with llabs(3).

Pointed out by LLVM.

rtadvd.c:979:7: warning: absolute value function 'abs' given an argument of type
'long long' but has parameter of type 'int' which may cause truncation of value
[-Wabsolute-value]


ok dcoppa@ millert@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 4 22:39:31 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.46: +3 -4 lines
Diff to previous 1.46 (colored)

malloc+memset -> calloc

from Benjamin Baier (programmer (at) netzbasis.de)

Revision 1.46 / (download) - annotate - [select for diffs], Thu May 15 05:03:24 2014 UTC (10 years ago) by jca
Branch: MAIN
Changes since 1.45: +7 -2 lines
Diff to previous 1.45 (colored)

Deal with - actually, ignore - route info messages on the listening side.
Issue reported by consus at gmx dot com on bugs@.
ok bluhm@

Revision 1.45 / (download) - annotate - [select for diffs], Sun May 5 14:25:52 2013 UTC (11 years, 1 month ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

typo in log message.  ok sthen@

Revision 1.44 / (download) - annotate - [select for diffs], Tue Apr 30 12:30:40 2013 UTC (11 years, 1 month ago) by florian
Branch: MAIN
Changes since 1.43: +6 -9 lines
Diff to previous 1.43 (colored)

- replace TIMEVAL_* function/macros with macros from sys/time.h
- replace insque(3) with SLIST from queue(3)
- with that, rewrite rtadvd_check_timer() logic to avoid
  timeval {0x7fffffff, 0x7fffffff}

test/ok sthen@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Apr 30 12:29:04 2013 UTC (11 years, 1 month ago) by florian
Branch: MAIN
Changes since 1.42: +12 -12 lines
Diff to previous 1.42 (colored)

move variables to type time_t; fix format strings

test/ok sthen@

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 19 05:06:35 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.41: +3 -5 lines
Diff to previous 1.41 (colored)

print tv_sec properly

Revision 1.41 / (download) - annotate - [select for diffs], Wed Apr 17 00:14:37 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

handle large tv_sec

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 8 10:46:00 2012 UTC (11 years, 11 months ago) by phessler
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.39: +27 -13 lines
Diff to previous 1.39 (colored)

Add support for advertising dns servers and search paths in router
advertisements, according to RFC 6106.

original diff from Stephane A. Sezer on tech@, many thanks!

OK phessler@, todd@

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 2 17:30:48 2011 UTC (13 years, 3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

Don't use a flag value as index into the 2 element array on_off.
Fixes a segmentation fault.
ok deraadt@

Revision 1.38 / (download) - annotate - [select for diffs], Fri Nov 21 23:44:04 2008 UTC (15 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

closefrom the fds that we aren't interested in.  pr5994

Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 3 07:02:44 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

be more clear about what getpwnam failed; ok claudio

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jun 9 22:53:24 2008 UTC (16 years ago) by rainer
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.35: +14 -1 lines
Diff to previous 1.35 (colored)

drop root privileges in rtadvd to _rtadvd

ok deraadt@, reyk@, pyr@

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 8 21:08:57 2008 UTC (16 years ago) by rainer
Branch: MAIN
Changes since 1.34: +5 -6 lines
Diff to previous 1.34 (colored)

Send debug output to syslog instead of a file when receiving SIGUSR1.
This is a preparation for dropping privileges.

ok henning@, pyr@

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 2 04:28:51 2008 UTC (16 years, 1 month ago) by pyr
Branch: MAIN
Changes since 1.33: +6 -2 lines
Diff to previous 1.33 (colored)

do not always delay log initialization, when no configuration file is
present, which is the most common use of rtadvd, it would otherwise
always print messages to the console though the situation is valid.

this fixes a regression introduced with the new logging code.

ok rainer@, todd@, fgsch@

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 23 10:17:50 2008 UTC (16 years, 1 month ago) by pyr
Branch: MAIN
Changes since 1.32: +41 -41 lines
Diff to previous 1.32 (colored)

Replace handrolled lists with SLISTs or TAILQs.
Timers remain and will be handled later.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 21 20:40:55 2008 UTC (16 years, 1 month ago) by rainer
Branch: MAIN
Changes since 1.31: +233 -397 lines
Diff to previous 1.31 (colored)

Clean up logging by introducing the logging API used in
other daemons and clean up the command line options.
For details, see rtadvd(8).

ok bluhm@, pyr@

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 13 00:22:17 2008 UTC (16 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Use arc4random_buf() when requesting more than a single word of output

Use arc4random_uniform() when the desired random number upper bound
is not a power of two

ok deraadt@ millert@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Mar 24 16:11:05 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -9 lines
Diff to previous 1.29 (colored)

msg_controllen has to be CMSG_SPACE so that the kernel can account for
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len).  This
works now that kernel fd passing has been fixed to accept a bit of
sloppiness because of this ABI repair.
lots of discussion with kettenis

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 18 19:32:18 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +11 -5 lines
Diff to previous 1.28 (colored)

correct CMSG_SPACE and CMSG_LEN handling as done in other places.  These
are the complicated cases where multiple messages are sent.  discussed
with kettenis, hshoexer, and rtsol tested by jmc - thanks

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 10 08:10:47 2007 UTC (17 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.27: +1 -16 lines
Diff to previous 1.27 (colored)

remove ancient code.  sync w/ kame

Revision 1.27 / (download) - annotate - [select for diffs], Fri Dec 15 06:14:07 2006 UTC (17 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.26: +1 -19 lines
Diff to previous 1.26 (colored)

reduce RFC2292/3542 #ifdef.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Oct 27 18:26:13 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

sort options and sync usage();

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 14 18:46:45 2003 UTC (21 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

correct use of sizeof.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 14 18:33:58 2003 UTC (21 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.23: +25 -2 lines
Diff to previous 1.23 (colored)

add missing ND option length validation.  from kame

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 10 05:31:17 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.22: +6 -7 lines
Diff to previous 1.22 (colored)

signo and ansi

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 10 19:57:35 2002 UTC (22 years ago) by espie
Branch: MAIN
Changes since 1.21: +75 -75 lines
Diff to previous 1.21 (colored)

Kill __FUNCTION__.
ok itojun@

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jun 9 00:56:09 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

do not use \n in syslog()

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jun 7 00:42:14 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.19: +22 -10 lines
Diff to previous 1.19 (colored)

avoid fd_set overrun.  sync w/kame

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 4 05:13:42 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.18: +3 -6 lines
Diff to previous 1.18 (colored)

use arc4random

Revision 1.18 / (download) - annotate - [select for diffs], Wed May 29 14:34:05 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.17: +6 -30 lines
Diff to previous 1.17 (colored)

KNF, strlcpy, cleanups from kame

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 21 23:33:56 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

duplicated prototype

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 21 23:29:46 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.15: +293 -297 lines
Diff to previous 1.15 (colored)

minor KNF.  plug a memory leak on reconfig.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +9 -9 lines
Diff to previous 1.14 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.14 / (download) - annotate - [select for diffs], Sat Feb 16 21:28:08 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +12 -12 lines
Diff to previous 1.13 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 11 03:51:08 2002 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

call daemon(3) prior to socket setups to avoid file descriptor close mistakes.
noted by markus, sync with kame

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 1 23:27:23 2001 UTC (22 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.11: +6 -11 lines
Diff to previous 1.11 (colored)

Use pidfile() instead of doing the equivalent thing by hand, and sometimes
forgetting to unlink the pid file at exit.
ok millert@ deraadt@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Dec 1 19:27:28 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

fd_set, not struct fd_set

Revision 1.10 / (download) - annotate - [select for diffs], Sat Nov 17 19:49:40 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

use volatile sig_atomic_t where possible; simply volatile i other places

Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 4 06:22:05 2001 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.8: +16 -9 lines
Diff to previous 1.8 (colored)

avoid infinite loop when -s is specified (select loop mistake).
make agetent() 32bit clean.  KAME PR 127.
disable -R (router renumbering receiver).  sync with kame.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 15 11:06:28 2001 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.7: +157 -37 lines
Diff to previous 1.7 (colored)

sync with latest kame tree.
- reduce chances for signal handler rae condition
- decrease chances for misconfiguration
- feedbacks from router renumbering protocol bakeoff
- cleanups related to mtu handling

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 6 10:14:48 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.6: +118 -28 lines
Diff to previous 1.6 (colored)

sync with router renumber struct decl change.
more logs.  make it very sure to close temporary socket.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 23 11:33:48 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)

forgot to cvs add dump.[ch]
strict prototype

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 23 11:23:23 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.4: +83 -20 lines
Diff to previous 1.4 (colored)

sync with latest kame.
- weaken logging priority for /etc/resolv.conf open failure
- gather stats, emit stats by SIGUSR1
- use SIOCGIFMTU to get interface MTU (just a matter of #ifdef)
From: "Todd T. Fries" <todd@fries.net>

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 13 06:16:11 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.3: +45 -10 lines
Diff to previous 1.3 (colored)

bring in latest rtadvd source from kame.
this fixes unclosed file descriptor in router renumbering case.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 2 04:10:37 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.2: +55 -4 lines
Diff to previous 1.2 (colored)

add -R flag (accept router renumbering).  this makes rtadvd to
take the safer side (router renumbering requires certain ipsec setup).
die gracefully on SIGTERM.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 11 10:33:29 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)

enable rtadvd in usr.sbin/Makefile.
rcsid police on usr.sbin/rtadvd.
add sample config into etc/rtadvd.conf.
add files into distrib/sets/list.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 11 10:23:26 1999 UTC (24 years, 6 months ago) by itojun
Branch: KAME
CVS Tags: kame_19991211
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

router advertisement daemon, from KAME

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 11 10:23:26 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN

Initial revision

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.