| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
IFF_POINTOPOINT link types. The reason was due to the routing
entry returned from the kernel covering the remote end is of an
interface type that does not support ARP. This patch fixes this
problem by providing a hint to the kernel routing code, which
indicates the prefix route instead of the PPP host route should
be returned to the caller. Since a host route to the local end
point is also added into the routing table, and there could be
multiple such instantiations due to multiple PPP links can be
created with the same local end IP address, this patch also fixes
the loopback route installation failure problem observed prior to
this patch. The reference count of loopback route to local end would
be either incremented or decremented. The first instantiation would
create the entry and the last removal would delete the route entry.
MFC after: 5 days
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
PR: 118014
Submitted by: Gardner Bell <gbell72 at rogers dot com>
Approved by: re (rwatson), imp (mentor, implicit)
MFC after: immediate
|
| |
|
|
|
|
|
| |
was never updated. Also, clean up the macro that caused the warning in the
first place (no functional changes, just wrapped and reindented).
|
|
|
|
|
|
| |
PR: docs/134053
Submitted by: Bob Van Zant <bob@veznat.com>
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. The "route" command allows route insertion through the interface-direct
option "-iface". During if_attach(), an sockaddr_dl{} entry is created
for the interface and is part of the interface address list. This
sockaddr_dl{} entry describes the interface in detail. The "route"
command selects this entry as the "gateway" object when the "-iface"
option is present. The "arp" and "ndp" commands also interact with the
kernel through the routing socket when adding and removing static L2
entries. The static L2 information is also provided through the
"gateway" object with an AF_LINK family type, similar to what is
provided by the "route" command. In order to differentiate between
these two types of operations, a RTF_LLDATA flag is introduced. This
flag is set by the "arp" and "ndp" commands when issuing the add and
delete commands. This flag is also set in each L2 entry returned by the
kernel. The "arp" and "ndp" command follows a convention where a RTM_GET
is issued first followed by a RTM_ADD/DELETE. This RTM_GET request fills
in the fields for a "rtm" object, which is reinjected into the kernel by
a subsequent RTM_ADD/DELETE command. The entry returend from RTM_GET
is a prefix route, so the RTF_LLDATA flag must be specified when issuing
the RTM_ADD/DELETE messages.
2. Enforce the convention that NET_RT_FLAGS with a 0 w_arg is the
specification for retrieving L2 information. Also optimized the
code logic.
Reviewed by: julian
|
|
|
|
|
|
|
|
| |
Update arp.8 manual page syntax.
PR: 125896
Submitted by: Marc Olzheim <marcolz@stack.nl>
Approved by: sam
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. separating L2 tables (ARP, NDP) from the L3 routing tables
2. removing as much locking dependencies among these layers as
possible to allow for some parallelism in the search operations
3. simplify the logic in the routing code,
The most notable end result is the obsolescent of the route
cloning (RTF_CLONING) concept, which translated into code reduction
in both IPv4 ARP and IPv6 NDP related modules, and size reduction in
struct rtentry{}. The change in design obsoletes the semantics of
RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland
applications such as "arp" and "ndp" have been modified to reflect
those changes. The output from "netstat -r" shows only the routing
entries.
Quite a few developers have contributed to this project in the
past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and
Andre Oppermann. And most recently:
- Kip Macy revised the locking code completely, thus completing
the last piece of the puzzle, Kip has also been conducting
active functional testing
- Sam Leffler has helped me improving/refactoring the code, and
provided valuable reviews
- Julian Elischer setup the perforce tree for me and has helped
me maintaining that branch before the svn conversion
|
| |
|
|
|
|
|
|
|
|
| |
and RTF_REJECT, respectively
PR: bin/79228
Submitted by: Dan Lukes <dan@obluda.cz>
MFC after: 2 weeks
|
| |
|
|
|
|
| |
-Werror at higher WARNS levels like we did before gcc4 was imported.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
to obtain correct netmask in case of interface with multiple aliases.
- While here, remove a comment with a bad idea.
PR: bin/42120
Submitted by: Dmitry Frolov <frolov riss-telecom.ru>
|
| |
|
| |
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
| |
Submitted by: Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>
|
|
|
|
|
| |
Reminded by: ru
Pointy hat: brooks
|
|
|
|
| |
a given interface to be removed.
|
|
|
|
|
|
| |
permanent ARP entries.
Submitted by: Andrew Alcheyev <buddy telenet.ru>
|
|
|
|
|
|
| |
proxy for hosts that are reachable through the same interface the
request came in from. This feature is mainly for hosts reachable
through some P2P link, e.g. the gif(4) tunnel.
|
|
|
|
| |
Submitted by: ru
|
|
|
|
|
| |
- Document several undocumented sysctl variables.
- Fix spelling of few diagnostics.
|
|
|
|
| |
Submitted by: Michal Mertl <mime^traveller.cz>
|
|
|
|
| |
one functional change (fixed exit status from the "get" operation).
|
|
|
|
|
|
|
| |
made arp(8) command exit status reversed for -s and -S.
Reported by: sem
MFC after: 2 weeks
|
|
|
|
|
|
| |
Submitted by: ru
o Reduce an amount of memory we ask in advance.
|
|
|
|
|
|
|
|
| |
An approach taken from killall/killall.c.
PR: bin/76075
Submitted by: Dmitrij Tejblum
MFC after: 3 weeks
|
|
|
|
|
|
|
|
| |
(Broken in rev. 1.52.)
PR: 75471
Submitted by: Jon Simola
MFC after: 3 days
|
|
|
|
| |
from Berkeley.
|
| |
|
|
|
|
| |
Submitted by: ru
|
|
|
|
|
|
|
|
| |
variable.
PR: docs/21826
Reviewed by: ru
Requested by: Bernd Luevelsmeyer
|
| |
|
|
|
|
|
| |
Reviewed by: md5
Approved by: das (mentor)
|
|
|
|
|
|
|
|
| |
pass function arguments and results.
Hopefully no functional changes except fixing a couple of
bugs which could cause endless loops if an ioctl() on an
interface would fail.
|
|
|
|
|
|
| |
Keep WARNS at 3 though the code does compile with WARNS=5 at least on i386
Noticed by: ru
|
| |
|
|
|
|
|
|
|
|
| |
Remove global variables in favour of local ones.
Fix indentation of a couple of switch statements.
Overall, this program badly need cleaning up, as it relies
on information passed around through global variables.
|
|
|
|
|
|
| |
- Handle empty ARP tables properly.
- Remove register keyword.
- arp(8) is WARNS?=4 clean, so mark it as such to avoid regressions.
|
|
|
|
| |
Reviewed by: ru
|
| |
|
|
|
|
| |
Add sysctl(8) to the list of cross-referenced manual pages.
|
|
|
|
|
|
|
| |
bar on if1' message.
PR: bin/48489
Requested by: ru
|
|
|
|
|
|
|
|
|
|
|
| |
the scope of operation to the ARP entries on a particular
interface. It should be useful on machines with numerous
network interfaces, e.g., on inter-VLAN routers.
PR: bin/54151
Submitted by: Dmitry Morozovsky <marck at rinet.ru>
Discussed on: -net
MFC after: 2 weeks
|
| |
|
| |
|