OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.101 / (download) - annotate - [select for diffs], Tue May 21 05:00:48 2024 UTC (2 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.100: +1 -2 lines
Diff to previous 1.100 (colored)

remove prototypes with no matching function and externs with no var
partly checked by millert@

Revision 1.100 / (download) - annotate - [select for diffs], Tue Dec 29 19:48:27 2020 UTC (3 years, 5 months ago) by benno
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, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored)

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

Revision 1.99 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:50 2019 UTC (4 years, 11 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.98: +22 -22 lines
Diff to previous 1.98 (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.98 / (download) - annotate - [select for diffs], Tue Jan 22 09:25:29 2019 UTC (5 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

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

ok dlg@

Revision 1.97 / (download) - annotate - [select for diffs], Wed Jul 11 20:38:57 2018 UTC (5 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.96: +1 -4 lines
Diff to previous 1.96 (colored)

Remove RTM_LOSING from the file, it is no longer used by OpenBSD and
route6d is not realy using it anyway.
OK henning@

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jul 1 15:42:37 2018 UTC (5 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.95: +1 -3 lines
Diff to previous 1.95 (colored)

more RTM_LOCK removals

Revision 1.95 / (download) - annotate - [select for diffs], Sun Jul 1 08:53:03 2018 UTC (5 years, 11 months ago) by mpi
Branch: MAIN
Changes since 1.94: +1 -2 lines
Diff to previous 1.94 (colored)

Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE.

ok tb@, sthen@

Revision 1.94 / (download) - annotate - [select for diffs], Thu Jun 14 14:55:10 2018 UTC (5 years, 11 months ago) by florian
Branch: MAIN
Changes since 1.93: +3 -1 lines
Diff to previous 1.93 (colored)

fix mem leak
from Thomas Barabosch (thomas.barabosch AT fkie fraunhofer de), thanks!
OK tb

Revision 1.93 / (download) - annotate - [select for diffs], Tue Jan 16 10:33:55 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.92: +2 -7 lines
Diff to previous 1.92 (colored)

Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsip
of IFF* flags.

inputs from jmc@, ok bluhm@, visa@

Revision 1.92 / (download) - annotate - [select for diffs], Wed Aug 23 11:25:07 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.91: +145 -147 lines
Diff to previous 1.91 (colored)

No need to handle more than one routing message here.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Aug 5 11:38:00 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.90: +18 -7 lines
Diff to previous 1.90 (colored)

Add a -u switch to always log route insertions/deletions.

Route updates (and associated warnings) are always prefixed with "RTADD"
or "RTDEL".  This is useful for people that previously used the -R
option that got removed.

Tested by Freddy Dissaux.

Revision 1.90 / (download) - annotate - [select for diffs], Fri Aug 5 11:34:51 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.89: +2 -2 lines
Diff to previous 1.89 (colored)

Use tighter pledge(2) restrictions.

Made possible by the logging overhaul.  Tested by Freddy Dissaux.

Revision 1.89 / (download) - annotate - [select for diffs], Fri Aug 5 11:32:28 2016 UTC (7 years, 10 months ago) by jca
Branch: MAIN
Changes since 1.88: +207 -306 lines
Diff to previous 1.88 (colored)

Rework logging.

Use log.c like in many other daemons, with small additions to maintain
a log queue (useful to dump a single log line with several logging
statements).  Use log.c to dump the internal state, and remove the -R
option (a similar feature will be implemented differently soon).

The end goal is to avoid touching the filesystem and use much tighter
pledge(2) restrictions.

Tested by Freddy Dissaux.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Jul 13 08:40:46 2016 UTC (7 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.87: +2 -31 lines
Diff to previous 1.87 (colored)

Introduce RTF_MULTICAST and flag corresponding IPv6 routes as such
instead of abusing RTF_CLONING.

Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jul 6 16:38:09 2016 UTC (7 years, 11 months ago) by jca
Branch: MAIN
Changes since 1.86: +7 -23 lines
Diff to previous 1.86 (colored)

route6d spring cleanup

Various tweaks and fixes:
- nuke util.h, not needed since pidfile(3) went away
- nuke the rrt_same member of struct riprt, "future use" since import
- mark rtdexit as __dead
- nuke progname handling
- fix pid handling: cache the pid *after* calling daemon(3)
- nuke setting rtm_pid.  The kernel is responsible for setting this
  in routing messages.
- nuke the useless myseq variable

ok florian@ benno@ millert@ deraadt@ renato@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jan 25 05:15:43 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.85: +1 -2 lines
Diff to previous 1.85 (colored)

No need to declare main().

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jan 25 05:03:23 2016 UTC (8 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.84: +17 -25 lines
Diff to previous 1.84 (colored)

malloc+memset -> calloc

Revision 1.84 / (download) - annotate - [select for diffs], Sat Dec 19 20:02:03 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
Changes since 1.83: +2 -3 lines
Diff to previous 1.83 (colored)

Remove NULL-check before free().

Revision 1.83 / (download) - annotate - [select for diffs], Mon Nov 30 22:02:09 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.82: +19 -21 lines
Diff to previous 1.82 (colored)

Sort includes.

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

Fix error message after conversion from select(2) to poll(2).

Revision 1.81 / (download) - annotate - [select for diffs], Mon Oct 26 00:37:44 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.80: +3 -4 lines
Diff to previous 1.80 (colored)

Partial revert of r1.79, "np" handling is a bit trickier than expected.

Revision 1.80 / (download) - annotate - [select for diffs], Mon Oct 26 00:25:45 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.79: +10 -10 lines
Diff to previous 1.79 (colored)

Rename the struct pollfd array, "set" -> "pfd"

"set" reminds of select(2) fd_set, and is never used elsewhere in the
tree as a name for a pollfd array.  No functional change.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Oct 26 00:20:44 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.78: +11 -12 lines
Diff to previous 1.78 (colored)

Those variables should be local to the functions where they are used.

Gets rid of a lot of warnings with -Wshadow.  No functional change.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Oct 26 00:05:47 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.77: +1 -16 lines
Diff to previous 1.77 (colored)

Kill unused variable and function.

No functional change.

Revision 1.77 / (download) - annotate - [select for diffs], Sun Oct 25 23:53:35 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

hms() returns a pointer to static storage, annotate the return type with "const"

No functional change.

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

Correctly print size_t/time_t.

No functional change.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Oct 25 23:41:50 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.74: +1 -11 lines
Diff to previous 1.74 (colored)

Plug memory leak introduced in r1.15.

No functional change.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Oct 25 23:10:32 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.73: +1 -3 lines
Diff to previous 1.73 (colored)

Those two functions take no parameters, thus /* ARGSUSED */ is meaningless.

No functional change.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Oct 25 23:03:07 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored)

Sync surrounding code after reallocarray introduction.

No functional change.

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

Rename allocopy() to xstrdup(), and make use of strdup(3).

No functional change.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Oct 25 22:38:48 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.70: +1 -3 lines
Diff to previous 1.70 (colored)

Another pidfile(3) removal; ok benno@

Revision 1.70 / (download) - annotate - [select for diffs], Sun Oct 18 14:35:36 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.69: +2 -3 lines
Diff to previous 1.69 (colored)

Tweak previous: call fatal(), not err(3), for consistency. err.h goes away.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 17 01:01:09 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.68: +6 -1 lines
Diff to previous 1.68 (colored)

route6d pledges to use only "stdio rpath wpath cpath inet route mcast"

ok deraadt@

Revision 1.68 / (download) - annotate - [select for diffs], Fri Oct 16 20:43:27 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Unbreak route6d.

Instead of breaking sendmsg(2) by adding unneeded space to its cmsg
item, add space to the cmsg used by recvmsg(2), where it will be used
to get the incoming packet hop limit.

Reported by several over the last years, and more recently by 'bsdsx',
who tested it against NetBSD route6d.  Also works against Quagga ripng.

ok deraadt@ sthen@

Revision 1.67 / (download) - annotate - [select for diffs], Fri Sep 11 20:14:58 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored)

RTF_XRESOLVE is gone.

Revision 1.66 / (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.65: +12 -14 lines
Diff to previous 1.65 (colored)

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

Revision 1.65 / (download) - annotate - [select for diffs], Wed Feb 4 20:16:23 2015 UTC (9 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored)

Fix potentional double free in do-while-loop.
Found by Benjamin Baier with llvm/scan-build;  OK florian@

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:20 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.63: +1 -2 lines
Diff to previous 1.63 (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.63 / (download) - annotate - [select for diffs], Wed Oct 8 10:57:17 2014 UTC (9 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored)

obvious reallocarray(); ok doug

Revision 1.62 / (download) - annotate - [select for diffs], Mon Mar 24 10:48:29 2014 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Remove commented out MSG_DONTROUTE flag.  No object change.

ok florian@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 22 06:24:23 2014 UTC (10 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.60: +3 -7 lines
Diff to previous 1.60 (colored)

RTA_GENMASK is going to die soon so no need to handle it anymore.
OK benno@ and agreed by dlg@

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jan 7 19:23:13 2014 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored)

Asa Yeamans points out that we need to CMSG_SPACE[] for the 2nd message
as well.
ok guenther millert

Revision 1.59 / (download) - annotate - [select for diffs], Thu Oct 17 16:27:48 2013 UTC (10 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

The header file netinet/in_var.h included netinet6/in6_var.h.  This
created a bunch of useless dependencies.  Remove this implicit
inclusion and do an explicit #include <netinet6/in6_var.h> when it
is needed.
OK mpi@ henning@

Revision 1.58 / (download) - annotate - [select for diffs], Mon Aug 26 14:15:08 2013 UTC (10 years, 9 months ago) by naddy
Branch: MAIN
Changes since 1.57: +6 -5 lines
Diff to previous 1.57 (colored)

replace rand(3)/random(3) calls with secure arc4random*()
npppd ok yasuoka@
ok millert@

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 22 04:43:41 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Correct format string mismatches turned up by -Wformat=2

suggestions and ok millert@

Revision 1.56 / (download) - annotate - [select for diffs], Thu Mar 21 04:43:17 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.55: +16 -14 lines
Diff to previous 1.55 (colored)

create realloc() loops around sysctl for array-based mibs, in programs
which want a "full" dump
ok dlg

Revision 1.55 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:54 2009 UTC (14 years, 7 months ago) by deraadt
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, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.54: +1 -5 lines
Diff to previous 1.54 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jun 26 09:50:12 2009 UTC (14 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.53: +9 -9 lines
Diff to previous 1.53 (colored)

More consistent RTM_VERSION checking. A few missing one was in the wrong
spot. OK henning@, sthen@

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jun 5 22:40:24 2009 UTC (15 years ago) by chris
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

rtm->rtm_hdrlen conversion

ok claudio@, henning@

Revision 1.52 / (download) - annotate - [select for diffs], Wed May 13 16:14:57 2009 UTC (15 years ago) by deraadt
Branch: MAIN
Changes since 1.51: +2 -8 lines
Diff to previous 1.51 (colored)

no need for _KERNEL or the rtentry; ok claudio

Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 24 16:11:05 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Sat Mar 15 16:23:27 2008 UTC (16 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.49: +5 -5 lines
Diff to previous 1.49 (colored)

repair msg_controllen and also an errant buf[CMSG_LEN(..)] decl

Revision 1.49 / (download) - annotate - [select for diffs], Thu Mar 13 01:49:53 2008 UTC (16 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.48: +16 -12 lines
Diff to previous 1.48 (colored)

Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due to
an extensive discussion with otto, kettenis, millert, and hshoexer

Revision 1.48 / (download) - annotate - [select for diffs], Mon Nov 26 09:28:34 2007 UTC (16 years, 6 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

typos;  ok jmc@
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@
sys/dev/pci/bktr/* ok jakemsr@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Dec 15 06:16:49 2006 UTC (17 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.46: +6 -88 lines
Diff to previous 1.46 (colored)

reduce RFC2292/3542 #ifdef.

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Wed Nov 15 23:35:02 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_3_9
Changes since 1.43: +81 -7 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

MFC:
Fix by itojun@

validate response packet more carefully. kame revision 1.109->1.111

ok itojun@ deraadt@

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Wed Nov 15 23:25:51 2006 UTC (17 years, 6 months ago) by brad
Branch: OPENBSD_4_0
Changes since 1.45: +81 -7 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

MFC:
Fix by itojun@

validate response packet more carefully. kame revision 1.109->1.111

ok itojun@ deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Wed Nov 15 07:32:44 2006 UTC (17 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.45: +82 -8 lines
Diff to previous 1.45 (colored)

validate response packet more carefully.  kame revision 1.109->1.111

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 16 13:51:21 2006 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE
Branch point for: OPENBSD_4_0
Changes since 1.44: +3 -6 lines
Diff to previous 1.44 (colored)

Don't use rmx_hopcount any longer. The kernel ignores it anyway.
OK henning@, norby@, hshoexer@

Revision 1.44 / (download) - annotate - [select for diffs], Sun Apr 2 21:38:55 2006 UTC (18 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.43: +4 -6 lines
Diff to previous 1.43 (colored)

malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaks
suggested by kjell@; ok otto@ pat@ millert@ jaredy@

Revision 1.43 / (download) - annotate - [select for diffs], Mon Feb 6 17:51:30 2006 UTC (18 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

typos from alexey dobriyan;

Revision 1.42 / (download) - annotate - [select for diffs], Thu May 26 21:56:41 2005 UTC (19 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.41: +2 -14 lines
Diff to previous 1.41 (colored)

remove RTM_OLDADD/_OLDDEL traces (that lead to an "unspported" message anyway)

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 1 18:32:20 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.40: +45 -114 lines
Diff to previous 1.40 (colored)

ansi cleanup; khalek@linuxgamers.net

Revision 1.40 / (download) - annotate - [select for diffs], Fri Oct 31 00:32:07 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.39: +4 -3 lines
Diff to previous 1.39 (colored)

need_trigger/idx should be u_int, not ssize_t.  millert

Revision 1.39 / (download) - annotate - [select for diffs], Fri Oct 31 00:30:19 2003 UTC (20 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.38: +8 -3 lines
Diff to previous 1.38 (colored)

insufficient length check (possible remote DoS).  kame PR 507.
ok deraadt markus mcbride

Revision 1.38 / (download) - annotate - [select for diffs], Fri Aug 22 08:26:39 2003 UTC (20 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

Don't age non-gateway host routes.  NetBSD PR bin/22568 from Andrew White

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jun 28 20:37:30 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +12 -12 lines
Diff to previous 1.36 (colored)

() to (void)

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 22 09:57:04 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

port numbers are unsigned.  use %u.  from kame

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 15 07:22:46 2003 UTC (21 years, 1 month ago) by itojun
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

avoid hardcoding 12; use NI_MAXSERV.  deraadt ok

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 14 22:24:58 2003 UTC (21 years, 2 months ago) by pvalchev
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

%d is 12 chars big, not 10; ok deraadt

Revision 1.33 / (download) - annotate - [select for diffs], Sat Oct 26 20:16:13 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.32: +46 -7 lines
Diff to previous 1.32 (colored)

use poll(2).  sync w/kame originally from netbsd

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 26 20:14:27 2002 UTC (21 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.31: +32 -16 lines
Diff to previous 1.31 (colored)

use strtoul, not atoi.  some error handling sync w/kame.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Aug 21 16:30:29 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.30: +6 -3 lines
Diff to previous 1.30 (colored)

suppress dump output on -q.  sync w/kame

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 9 02:15:54 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

strchr() instead of index()

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 7 16:42:07 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.28: +24 -17 lines
Diff to previous 1.28 (colored)

avoid fd_set overrun.  sync w/kame

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 29 23:09:03 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

rtm_seq is an int.  from deraadt

Revision 1.27 / (download) - annotate - [select for diffs], Wed May 22 09:09:32 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.26: +5 -4 lines
Diff to previous 1.26 (colored)

more strcpy/sprintf death; mpech ok

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 25 02:33:06 2002 UTC (22 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.25: +30 -17 lines
Diff to previous 1.25 (colored)

do not age address on loopback interface.  sync w/kame

Revision 1.25 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:40 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.24: +2 -46 lines
Diff to previous 1.24 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.23: +7 -8 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (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.22: +53 -53 lines
Diff to previous 1.22 (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.22 / (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.21: +10 -17 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (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.20: +4 -8 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Sat Nov 17 19:49:00 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +4 -7 lines
Diff to previous 1.19 (colored)

remove unused signal handler variable

Revision 1.19 / (download) - annotate - [select for diffs], Wed Sep 5 01:27:13 2001 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.18: +174 -118 lines
Diff to previous 1.18 (colored)

sync with the latest kame route6d.
- no select() with FD_SETSIZE.  from deraadt
- use sin6 as varaible name, not sin, to avoid symbol conflict with sin().
- other minor cleanups.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 13 04:08:03 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.17: +23 -10 lines
Diff to previous 1.17 (colored)

need va_start/end pair every time we call vfprintf().  via markus

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 9 03:24:10 2001 UTC (23 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

exit(-#) is wrong

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 8 03:24:57 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.15: +30 -10 lines
Diff to previous 1.15 (colored)

correct delroute() against host routes.  clarify ROUTE6D p2p advert behavior
(no behavior change for normal use).  sync with kame

Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 7 13:52:23 2001 UTC (23 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.14: +385 -294 lines
Diff to previous 1.14 (colored)

bring in latest kame code.
- correct RTA_NETMASK processing
- correct -A filter behavior (do not advert aggregated route to other if)
- better signal handling
- mandate getifaddrs
- do not advert connected routes on !IFF_UP routes.  experimental
sync with kame

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 12 17:48:53 2001 UTC (23 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

make signo a volatile variable.  sync with kame

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 12 14:54:58 2001 UTC (23 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.12: +198 -72 lines
Diff to previous 1.12 (colored)

make signal handler very short, to avoid possibility of race conditions.
commented by deraadt.  sync with kame

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 10 18:15:47 2000 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.11: +30 -3 lines
Diff to previous 1.11 (colored)

do not advertise dynamic/cloned routes

Revision 1.11 / (download) - annotate - [select for diffs], Tue Oct 10 13:06:29 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.10: +7 -6 lines
Diff to previous 1.10 (colored)

cast size_t to u_long on printing, be friendly with alpha.  sync with kame

Revision 1.10 / (download) - annotate - [select for diffs], Fri Oct 6 02:46:58 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.9: +11 -8 lines
Diff to previous 1.9 (colored)

printf string format audit.  from: sommerfeld@netbsd.org

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 13 00:48:39 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.8: +8 -4 lines
Diff to previous 1.8 (colored)

unbroken -A (workaround).  repair LP64 problem. (sync with kame)

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jul 15 04:59:29 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.7: +85 -74 lines
Diff to previous 1.7 (colored)

sync with latest kame.
- correct possible realloc memory leak.
- remove obsolete non-advanced api support (!ADVAPI)
- do not overwrite routing entry, when -A is specified (exit with error).

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 18 13:30:47 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.6: +52 -41 lines
Diff to previous 1.6 (colored)

don't overload rtm_flags with route6d-local flags. sync with latest kame.

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 16 14:16:06 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.5: +164 -32 lines
Diff to previous 1.5 (colored)

correct p2p interface address handling.
avoid memory leak.
bzero() after malloc().
(sync from kame)

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 11 12:02:30 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.4: +11 -5 lines
Diff to previous 1.4 (colored)

ignore routing messages for interfaces that route6d does not care.
do not advertise blackhole/reject static routes.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 25 10:28:25 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.3: +76 -15 lines
Diff to previous 1.3 (colored)

use getifaddrs, not SIOCGIFCONF, to avoid LP64 alignment issue.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jan 2 04:57:27 2000 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.2: +17 -5 lines
Diff to previous 1.2 (colored)

avoid "buf = realloc(buf, n)" (actually no harm).
sync with latest kame tree.

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

add and enable route6d.  fix bogus enties in distrib/sets/lists.

XXX route6d is not really tested on kame/openbsd.  there can be some
trouble with kernel advanced API part.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Dec 11 10:36:07 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)

route6d, simple ripng daemon, from KAME

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 11 10:36:07 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.