Re: /proc/net/arp

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Wed, 25 Dec 1996 19:14:59 +0300


In article <Pine.LNX.3.91.961224181126.4378A-100000@chaos.analogic.com> you wrote:

Merry Christmas!

: I have a deamon that reads /proc/net/arp and forwards packets based upon
: what it sees there.

Bad idea. But in any case:

: This is the "problem"....
.....
: 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.

: 204.178.40.224 0x0 0x8c 00:00:00:00:00:00 * *
: ^^^^^^^^^^^^^^ this is my host address ^^^^^^^^^^^^^^^^ should be my hardware address'

It is ok. Your daemon should filter out proxy arp entries,
they differs of normal ones by third field: ATF_PUBL=0x8 is set in them.
Hardware address is not specified, what means that your host will
reply to arp requests for address 204.178.40.224 with hardware
address that currently assigned to the queried interface.

: this is the case, could someone who KNOWS, please tell me if this is
: going to be permanent?

Yes, it is going to be permanent.

Merry Christmas!
Alexey Kuznetsov.