Re: proxyarp subnetting with 2.1.117

Simon Weijgers (s.weijgers@net.hcc.nl)
Wed, 26 Aug 1998 15:06:56 +0200 (CEST)


On Tue, 25 Aug 1998, MADARASZ Gergely wrote:
> ifconfig eth0 inet 192.168.1.39
> ifconfig eth1 192.168.1.49 netmask 255.255.255.240 broadcast 192.168.1.63
> arp -i eth0 -Ds 192.168.1.48 eth0 netmask 255.255.255.240 pub
>
> It says SIOCSARP: Invalid argument. Is there something I'm missing or it
> is not possible to have proxyarped subnets in latest kernels ?
>

net/ipv4/arp.c (2.1.115):
int arp_req_set(struct arpreq *r, struct device * dev)
{

<cut>

if (r->arp_flags&ATF_PUBL) {
u32 mask = ((struct sockaddr_in*)&r->arp_netmask)->sin_addr.s_addr;
if (mask && mask != 0xFFFFFFFF)
return -EINVAL;

this probably answers your question.
i've noticed tho that in 2.1.115 proxy arp is not implemented at all
check struct neigh_table arp_tbl (net/ipv4/arp.c) to see what i mean, the
pointer to the proxy arp entry (de)(con)structie functions point to NULL.

<15 minutes later+time to unpack 2.1.118 source> :P
situation hasn't changed for 2.1.118.

Regards,

Simon Weijgers <mbit@mbit.doa.org>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html