jhawk
b70721109d
Add kernel counters for arp events, displayable with netstat -s -f arp
2000-08-15 20:24:57 +00:00
jhawk
ca31d672e2
Install "show arptab" (db_show_arptab) in the ddb command tree.
...
Move prototype from netinet/if_inarp.h to ddb/db_interface.h.
Change function to have standard ddb parameters (though they're
ignored).
2000-05-20 03:08:41 +00:00
augustss
8529438fe6
Remove register declarations.
2000-03-30 12:51:13 +00:00
thorpej
fc96443d15
New callout mechanism with two major improvements over the old
...
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.
The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
is
f546d949b6
Decouple IP mtu for ARCnet devices from interface MTU.
...
This is important, because for most protocols, link level fragmentation is
used, but with different default effective MTUs. (e.g.: IPv4 default MTU
is 1500 octets, IPv6 default MTU is 9072 octets).
1999-09-25 17:49:27 +00:00
matt
d3448593e5
Cleanup a little kludge in mtu handling in route.c. Bring down FDDI
...
mtu to legal IP max but don't affect other protocols.
1999-08-21 03:46:35 +00:00
sommerfeld
08e495eda4
Delete debug printfs from arp_drain()
1999-08-05 04:36:56 +00:00
sommerfeld
2aa9696fee
Implement arp_drain(), which frees packets tied up in the arp cache if
...
mbufs are in short supply.
Create a (trivial) protocol domain for arp so that the drain routine will
be called from m_reclaim()
1999-08-05 04:04:28 +00:00
thorpej
51867fc227
When sending an ARP reply, make sure to set the length of the outgoing
...
packet.
Slightly modified from PR #7809 , Zdenek Salvet <salvet@ics.muni.cz>.
1999-06-18 18:20:50 +00:00
bad
6b30aed924
Fix thinko of mine in previous. The source route info is not at m->m_data
...
after various m_adj()s have been done. Kludge around this with a cheesy
macro that knows where the drivers put the mac header in the first mbuf.
XXX There should be a better way to do this.
1999-05-30 00:39:07 +00:00
bad
0b3a9f9e00
Don't assume the Token-Ring source route is in the m_pktdat. Use
...
m_data instead. This isn't a problem with ARP packets but is correct
way to this.
Noticed by pmara@cactus.org (Shashi Mara).
1999-05-29 22:36:07 +00:00
ad
bdf1938edd
For completeness sake, allow this to compile with no loopback interfaces
...
configured.
1999-05-23 20:21:51 +00:00
is
7807c9a493
Fixes PR 7489 by Olaf Seibert. Fix by Zdenek Salvet (PR 7497).
1999-05-04 20:50:35 +00:00
is
7470bd006a
Fix for PR 7490 by Olaf Seibert, fix mostly from PR 7497 bei Zdenek Salvet,
...
but with more verbose error messages.
1999-05-04 14:58:27 +00:00
bad
a5283c98c0
Add support for Token-Ring source routes in the ARP cache.
...
By Onno van der Linden.
1999-03-22 22:30:42 +00:00
drochner
918dfd95e1
-always do an RARP if revarpwhoarewe() is called, it might be for another
...
interface or the server's configuration has changed
-g/c revarpwhoami()
1999-02-21 15:17:14 +00:00
thorpej
12632ebf71
Reverse the copyright-notice-swap. It went against existing practice.
1998-12-19 02:46:12 +00:00
drochner
5ddf423985
print reason for arplookup() failure (ala FreeBSD)
1998-10-01 11:04:24 +00:00
tls
c4730d65cf
Switch order of TNF and UCB copyrights so UCB copyright is first; this seems more appropriate since UCB wrote the original code, after all.
1998-09-30 21:52:24 +00:00
jonathan
3751946b97
defopt INET, NETATALK.
1998-07-05 00:51:04 +00:00
jonathan
466e784ee1
defopt DDB.
1998-07-04 22:18:13 +00:00
is
0ca02c68a7
Thinko in last fix: we have to actually check each address for a copy on
...
our ifp, else we might fail for some strange configurations.
1998-07-02 14:00:39 +00:00
is
d8b8a41918
The rewrite of if_arp.c to work with the hashed interface address lists
...
(1.44) missed a test for the right interface, making some machines answer
to some bogus arp requests (like for WHO-HAS 127.0.0.1).
The quick patch in 1.46-1.47 does not work for so-called "unnumbered"
interfaces, that is, (point-to-point) interfaces that share their local
address with another (e.g., the Ethernet) interface.
We add a macro to in_var.h, to step (in the current implementation) through
the hash chain and fine more entries with the same address, and use that
in if_arp.c to find one which belongs to our interface.
1998-07-02 11:39:56 +00:00
tls
b0d2c08b6b
Fix buglet where we might respond to arp on wrong interface.
1998-06-25 20:47:48 +00:00
matt
c0a1601f95
Change arp so its console log messages print out IP addresses in
...
dotted quad format instead of hex.
1998-05-29 15:34:24 +00:00
tls
91de585d5f
Add correct copyright notice for IP address hash change. This code is donated to TNF by the original copyright holder, Panix.
1998-02-15 18:24:23 +00:00
tls
c9934a9084
Change list of interface IP addresses to a hash. Improves performance on hosts with a large number of IP addresses significantly.
1998-02-13 18:21:38 +00:00
thorpej
e5e283e02d
Finishing merging 4.4BSD-Lite2 netinet. At this point, the only changes
...
left were SCCS IDs and Copyright dates.
1998-01-05 10:31:44 +00:00
gwr
011d063b25
Get rid of the messages: "arp: zero IP addr from ..."
...
If one really wants to know about those confused PCs
trying to use IP address zero, they can use tcpdump.
1997-10-31 02:54:08 +00:00
is
fabb33431c
Reimplement a test for broadcast addresses advertized, which was left out
...
when rewriting the ARP system.
1997-10-02 19:41:56 +00:00
gwr
c74236bfc9
Tweaks to allow operation with an interface address of 0.0.0.0
...
(needed for NFS mountroot using BOOTP to get boot parameters)
1997-08-29 16:02:41 +00:00
lukem
fcbcbc2234
struct loif is an array of NLOOP (from "loop.h") elements
1997-08-04 06:18:49 +00:00
gwr
3cb60b969d
Allow revarpwhoami() to be called multiple times.
...
(Just return the answer if we already have it.)
Without this, the RB_ASKNAME loop fails on every
call to nfs_mountroot after the first call.
1997-05-27 23:14:44 +00:00
jtk
e096ee0e10
add newlines at end of debugging log messages which were missing them
1997-04-07 01:48:30 +00:00
is
4555777c80
Fix several bugs related to the new ARP code, and ARCnet ARP support.
...
Among other, add ARPHRD_ARCNET definition, make sure the hardware type is
set on outgoing ARP packets, make sure we dont send out replies as broadcasts.
1997-03-23 01:22:35 +00:00
is
07b064e02e
New ARP system, supports IPv4 over any hardware link.
...
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.
For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
christos
5545959d0b
backout previous kprintf changes
1996-10-13 02:03:00 +00:00
christos
6d7ad25bea
printf -> kprintf, sprintf -> ksprintf
1996-10-10 23:12:43 +00:00
thorpej
63a2506f79
Merge netbsd-1-2 branch back into mainline.
1996-10-09 01:15:04 +00:00
mycroft
e901286aad
When sending an ARP request, use the interface address for the route, rather
...
than the first address assigned. This gives slightly different behaviour in
the presence of aliases. From Bill Fenner, via Pete Bentley.
1996-05-11 12:59:55 +00:00
thorpej
4edabe2501
Changed struct ifnet to have a pointer to the softc of the underlying
...
device and a printable "external name" (name + unit number), thus eliminating
if_name and if_unit. Updated interface to (*if_watchdog)() and (*if_reset)()
to take a struct ifnet *, rather than a unit number.
1996-05-07 02:40:22 +00:00
christos
dd7163922a
Fix db_printf formats
1996-03-30 21:53:19 +00:00
christos
14d9cd33af
netinet prototypes
1996-02-13 23:40:59 +00:00
mycroft
5482957905
splnet --> splsoftnet
1995-08-12 23:59:09 +00:00
mycroft
6897f39ae9
Various cleanup, including:
...
* Convert several data structures to use queue.h.
* Split in_pcbnotify() into two parts; one for notifying a specific PCB, and
one for notifying all PCBs for a particular foreign address.
1995-06-12 00:46:47 +00:00
mycroft
0a99592372
Clean up many more casts.
1995-06-04 05:06:49 +00:00
cgd
05af191f3b
spacing fixups and KNF. #define ether address size, so it's not
...
hardcoded as '6' all over.
1995-05-15 01:30:44 +00:00
cgd
c03b53c2e8
spacing cleaup. also, minor type mixup fixups.
1995-04-17 05:32:52 +00:00
cgd
b5b72d26ea
be a bit more careful and explicit with types. (basically a large no-op.)
1995-04-13 06:25:36 +00:00
mycroft
8b77f9cd5f
Remove some explicit references to loif.
1995-04-11 04:30:47 +00:00