The NetBSD Project

CVS log for src/sys/netinet6/raw_ip6.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / netinet6

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: jmcneill-pm


Revision 1.86.4.4 / (download) - annotate - [select for diffs], Mon Dec 3 16:15:12 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.86.4.3: +3 -4 lines
Diff to previous 1.86.4.3 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

Sync with HEAD.

Revision 1.86.4.3 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:36 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.86.4.2: +5 -14 lines
Diff to previous 1.86.4.2 (colored) to branchpoint 1.86 (colored)

Sync with HEAD.

Revision 1.86.4.2 / (download) - annotate - [select for diffs], Sun Nov 4 21:03:46 2007 UTC (16 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.86.4.1: +3 -3 lines
Diff to previous 1.86.4.1 (colored) to branchpoint 1.86 (colored)

Sync with HEAD.

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:23 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.86: +38 -36 lines
Diff to previous 1.86 (colored)

Sync with HEAD.

Revision 1.86 / (download) - annotate - [select for diffs], Thu Jul 19 20:48:58 2007 UTC (16 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.85: +4 -21 lines
Diff to previous 1.85 (colored)

Take steps to hide the radix_node implementation of the forwarding table
from the forwarding table's users:

        Introduce rt_walktree() for walking the routing table and
        applying a function to each rtentry.  Replace most
        rn_walktree() calls with it.

        Use rt_getkey()/rt_setkey() to get/set a route's destination.
        Keep a pointer to the sockaddr key in the rtentry, so that
        rtentry users do not have to grovel in the radix_node for
        the key.

        Add a RTM_GET method to rtrequest.  Use that instead of
        radix_node lookups in, e.g., carp(4).

Add sys/net/link_proto.c, which supplies sockaddr routines for
link-layer socket addresses (sockaddr_dl).

Cosmetic:

        Constify.  KNF.  Stop open-coding LIST_FOREACH, TAILQ_FOREACH,
        et cetera.  Use NULL instead of 0 for null pointers.  Use
        __arraycount().  Reduce gratuitous parenthesization.

        Stop using variadic arguments for rip6_output(), it is
        unnecessary.

        Remove the unnecessary rtentry member rt_genmask and the
        code to maintain it, since nothing actually used it.

        Make rt_maskedcopy() easier to read by using meaningful variable
        names.

        Extract a subroutine intern_netmask() for looking up a netmask in
        the masks table.

        Start converting backslash-ridden IPv6 macros in
        sys/netinet6/in6_var.h into inline subroutines that one
        can read without special eyeglasses.

One functional change: when the kernel serves an RTM_GET, RTM_LOCK,
or RTM_CHANGE request, it applies the netmask (if supplied) to a
destination before searching for it in the forwarding table.

I have changed sys/netinet/ip_carp.c, carp_setroute(), to remove
the unlawful radix_node knowledge.

Apart from the changes to carp(4), netiso, ATM, and strip(4), I
have run the changes on three nodes in my wireless routing testbed,
which involves IPv4 + IPv6 dynamic routing acrobatics, and it's
working beautifully so far.

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.




CVSweb <webmaster@jp.NetBSD.org>