On Fri, 22 Oct 1999, Cathryn Mataga wrote:
> -----Original Message-----
> From: Bob Meyer <[EMAIL PROTECTED]>

... 

> >Cathryn Mataga wrote:
> >
> >> I'm trying to get dhcpd on Linux talking to SV2agw on Win98.  The idea here

...

> 
> I'm also still trying to figure out the BROADCAST flag, and whether
> this is necessary.  My ethernet card shows a Bcast:XX.XX.XX.XX
> address and the BROADCAST flag in ifconfig, but none of my ax25
> ports do.  Why doesn't /sbin/ifconfig ax2 broadcast turn this on?

Broadcast operation seems to be broken, at least on those ax25 ports
supported via KISS.  I ran into this problem some time back when trying
to get gated to work over the air.  It is likely that the same problem is 
keeping dhcp from working.

Part of the problem is that the mkiss code is not setting the flag that tells
the rest of the system that it is capable of doing broadcasts.  This all used
to work, but seems to have been broken sometime around the 2.2 kernel
release.  From what I can tell, the networking code used to assume that
broadcast was supported, despite the flag not being set.

The following code change will set the broadcast flag and allow ifconfig
to set the broadcast address.   

WARNING,  while this won't break anything, I can't be sure it will fix the 
dhcp problem either.  It partially fixed my problems with gated, but I still
have problems receiving broadcasts, thus it's probably only part of the
problem.  Offered in the hope it will fix your problem or at least point you
in the direction of a fix.  My time has been limited lately and I haven't been
able to take this any farther.

--
Make the following mod to the file /usr/src/linux/drivers/net/hamradio/mkiss.c
and recompile the kernal and modules.

At line 1031 change the entry for
      dev->flags      = 0;  
to
      dev->flags      = 0x2;

ifconfig will now show the BROADCAST field and allow you to modify it.
Programs that check for broadcast capability (like gated and dhcpd) should
now attempt to use ax25 ports as well.


--
Let me know if this helps.

Ken,  N7IPB   
[EMAIL PROTECTED]  - TCP/IP packet radio in the Pacific Northwest

Reply via email to