HardenedBSD src tree
Go to file
Garrett Wollman 9f9b3dc4ae Add three new route flags to help determine what sort of address
the destination represents.  For IP:

- Iff it is a host route, RTF_LOCAL and RTF_BROADCAST indicate local
  (belongs to this host) and broadcast addresses, respectively.

- For all routes, RTF_MULTICAST is set if the destination is multicast.

The RTF_BROADCAST flag is used by ip_output() to eliminate a call to
in_broadcast() in a common case; this gives about 1% in our packet-generation
experiments.  All three flags might be used (although they aren't now)
to determine whether a packet can be forwarded; a given host route can
represent a forwardable address if:

	(rt->rt_flags & (RTF_HOST | RTF_LOCAL | RTF_BROADCAST | RTF_MULTICAST))
	== RTF_HOST

Obviously, one still has to do all the work if a host route is not present,
but this code allows one to cache the results of such a lookup if rtalloc1()
is called without masking RTF_PRCLONING.
1996-05-06 17:42:13 +00:00
bin
eBones
etc
games
gnu
include
lib
libexec Finally commit the changes that make getty(8) no longer depend on the 1996-05-05 19:01:13 +00:00
lkm
release Bring in some changes to make the FTP installation warn you if it can't 1996-05-05 21:54:23 +00:00
sbin
secure
share
sys Add three new route flags to help determine what sort of address 1996-05-06 17:42:13 +00:00
tools
usr.bin
usr.sbin We DON'T ship bash by default, why is it the default shell? 1996-05-06 06:15:19 +00:00
COPYRIGHT
Makefile