Home | History | Annotate | Download | only in rarpd
History log of /src/usr.sbin/rarpd/mkarp.c
RevisionDateAuthorComments
 1.12  12-Apr-2017  roy Use RO_MSGFILTER.
 1.11  04-Apr-2016  ozaki-r branches: 1.11.2; 1.11.4;
Separate nexthop caches from the routing table

By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
- sysctl(NET_RT_DUMP) doesn't return them
- If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
- RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
- It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
- -[no]cloning remains because it seems there are users
- -[no]connected is introduced and recommended
to be used instead of -[no]cloning
- route show/netstat -r drops some flags
- 'L' and 'c' are not seen anymore
- 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
 1.10  03-Dec-2014  christos c99 initializers
 1.9  30-Aug-2011  joerg static + __printflike + __dead
 1.8  18-Apr-2009  lukem Fix WARNS=4 issues (-Wshadow -Wsign-compare -Wextra)
 1.7  21-Jul-2008  lukem branches: 1.7.6;
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
 1.6  07-Aug-2003  agc branches: 1.6.32;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.
 1.5  08-Apr-2003  petrov Fix alignment for socket addresses in routing socket requests for
LP64 machines. Addresses port-alpha/11089. Reviewed by thorpej.
 1.4  14-Jul-2002  wiz ANSIfy. Remove ifndef __STDC__. Remove __P(). Remove register.
 1.3  11-Feb-2000  abs We need to close and open the socket to prevent routing updates building
up such that when we send our message we never see our reply (and hang)
Fix taken (modified) from PR 7508
 1.2  17-Jan-1998  christos branches: 1.2.2;
PR/4835: Izumi Tsutsui: rarpd does not set the link level address length.
While there change "6" to "ETHER_ADDR_LEN"
 1.1  24-Nov-1997  is branches: 1.1.2;
If we answer a RARP request, also add the mapping to the local arp cache.
[This was broken when the 4.4BSD ARP table changes were done, and never
repaired.]
Inspired by Jarle Greipsland, PR 4531; code stolen from arp.a and cleaned
up (mostly removing global variables).
XXX As pointed out in the PR, this should be in some library (libutil?),
to be usable by other servers like bootpd and dhcpd.
 1.1.2.2  08-Oct-1998  cgd pull up rev 1.2 from trunk (christos).
 1.1.2.1  24-Nov-1997  cgd file mkarp.c was added on branch netbsd-1-3 on 1998-10-08 16:00:47 +0000
 1.2.2.1  12-Feb-2000  he Pull up revision 1.3 (requested by abs):
Stop rarpd from hanging if too many routing updates come in
between requests, also improve debug output slightly. Fixes
PR#7508.
 1.6.32.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.7.6.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.11.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.11.2.1  26-Apr-2017  pgoyette Sync with HEAD

RSS XML Feed