Re: /proc/net/arp

Richard B. Johnson (root@analogic.com)
Wed, 25 Dec 1996 21:04:33 -0500 (EST)


On Wed, 25 Dec 1996, A.N.Kuznetsov wrote:

> Merry Christmas!

Thanks. Same to you.

>
> : I have a deamon that reads /proc/net/arp and forwards packets based upon
> : what it sees there.
>
> Bad idea. But in any case:

I need to find all the arp-cache entries on the remote (server) host so that
the local host (connected to the internet) can proxy-arp them. If there is
another way, please advise. The daemons setup and tear down the routing and
proxy-arp automatically as my remote machines come on-line. I use ioctls to
set up and tear down everything, but there isn't a documentated way to
find out what is in the arp cache except for /proc/net/arp!

>
> .....
> : 204.178.40.255 0x1 0x0 00:00:00:00:00:00 * eth0
> : ^^^^^^^^^^^^^^ BROADCAST address!!
>
> Are you sure that it is broadcast? If it is, it is really kernel bug.
> Please, send me output of ifconfig and cat of /proc/net/rt_local.

This IS the broadcast address.....

Here is ifconfig

lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:71797 errors:0 dropped:0 overruns:0
TX packets:71797 errors:0 dropped:0 overruns:0

eth0 Link encap:10Mbps Ethernet HWaddr 08:00:00:12:35:99
inet addr:204.178.40.224 Bcast:204.178.40.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3806943 errors:0 dropped:0 overruns:0
TX packets:25365 errors:0 dropped:0 overruns:0
Interrupt:5 Base address:0x300

Here is rt_local

Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT TOS Class
eth0 0028B2CC 00000000 90010001 0 0 32767 FFFFFFFF 1500 0 300 00 ff
lo FFFFFF7F 00000000 90010001 0 0 32767 FFFFFFFF 3584 0 300 00 ff
eth0 FF2FB2CC 00000000 90010001 0 0 32767 FFFFFFFF 1500 0 300 00 ff
eth0 E028B2CC 00000000 C0010001 0 0 32767 FFFFFFFF 1500 0 300 00 ff
lo 0000007F 00000000 90010001 0 0 32767 FFFFFFFF 3584 0 300 00 ff
lo 0100007F 00000000 C0010001 0 0 32767 FFFFFFFF 3584 0 300 00 ff
lo 0000007F 00000000 C0000001 0 0 0 000000FF 3584 0 300 00 ff

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.16 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-