Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   roy
Date:           Mon Mar 23 18:33:17 UTC 2015

Modified Files:
        src/sbin/route: route.8 route.c rtutil.c show.c
        src/share/man/man4: route.4
        src/sys/net: route.h
        src/sys/netinet: if_arp.c ip_flow.c ip_output.c
        src/sys/netinet6: ip6_flow.c
        src/usr.bin/netstat: netstat.1

Log Message:
Add RTF_BROADCAST to mark routes used for the broadcast address when
they are created on the fly. This makes it clear what the route is for
and allows an optimisation in ip_output() by avoiding a call to
in_broadcast() because most of the time we do talk to a host.
It also avoids a needless allocation for the storage of llinfo_arp and
thus vanishes from arp(8) - it showed as incomplete anyway so this
is a nice side effect.

Guard against this and routes marked with RTF_BLACKHOLE in
ip_fastforward().
While here, guard against routes marked with RTF_BLACKHOLE in
ip6_fastforward().
RTF_BROADCAST is IPv4 only, so don't bother checking that here.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sbin/route/route.8
cvs rdiff -u -r1.150 -r1.151 src/sbin/route/route.c
cvs rdiff -u -r1.5 -r1.6 src/sbin/route/rtutil.c
cvs rdiff -u -r1.47 -r1.48 src/sbin/route/show.c
cvs rdiff -u -r1.24 -r1.25 src/share/man/man4/route.4
cvs rdiff -u -r1.87 -r1.88 src/sys/net/route.h
cvs rdiff -u -r1.161 -r1.162 src/sys/netinet/if_arp.c
cvs rdiff -u -r1.65 -r1.66 src/sys/netinet/ip_flow.c
cvs rdiff -u -r1.233 -r1.234 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.23 -r1.24 src/sys/netinet6/ip6_flow.c
cvs rdiff -u -r1.71 -r1.72 src/usr.bin/netstat/netstat.1

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




Home | Main Index | Thread Index | Old Index