Hi,
Here is the output of dhclient -v -d xl0
I I checked. Dhclient still initializes the
interface and brings it up itself. So there
is only one possibility:
You don't have a working link. Maybe it helps
if you add a interface define in /etc/dhclient.conf
wit the possible media.
Martin
On Sat, 9 Aug 2003, Martin Blapp wrote:
Isn't there a way to see that the card doesn't support reporting
media status ? If the card does report this, I could add code
to dhclient and all would be fine.
Yes; check the media status word for IFM_AVALID.
(whitespace damaged)
%%%
--- dhclient.c
On Sat, 9 Aug 2003, Martin Blapp wrote:
dhclient is still relying on behavior from the kernel that isn't
guaranteed.
I know. But I'd consider that as a kernel bug, not dhclient fault.
Would it help the set the card into promisc. mode anyway, even
if we don't have link ?
Except that you've
Argl, of course the patch was wrong. Ok, this should work
now ...
--- contrib/isc-dhcp/client/dhclient.c.orig Thu Aug 7 16:58:46 2003
+++ contrib/isc-dhcp/client/dhclient.c Sat Aug 9 21:47:14 2003
@@ -3288,19 +3288,24 @@
return (HAVELINK);
Hi,
Adapted to the newst source-version, the patch will look like
this. After I got home, I'll test it.
Martin
Index: client/dhclient.c
===
RCS file: /home/ncvs/src/contrib/isc-dhcp/client/dhclient.c,v
retrieving revision 1.30
On Sat, 9 Aug 2003, Craig Rodrigues wrote:
I just did a cvsup of -CURRENT and rebuilt the world.
dhclient doesn't seem to work for me any more.
It looks like a problem with dhclient, and not the
kernel, because an older version of dhclient works fine.
Here is the output of dhclient -v -d xl0
Hi,
xl0: Polling interface state
xl0: client state of 2
xl0: link = 0
xl0: No Link on interface
Erm. What does 'ifconfig xl0' show you ? For dhclient
it looks like you have no link.
Martin
___
[EMAIL PROTECTED] mailing list
On Sat, Aug 09, 2003 at 06:21:43PM +0200, Martin Blapp wrote:
Hi,
Adapted to the newst source-version, the patch will look like
this. After I got home, I'll test it.
OK, this is weird. I did not use your change to dhclient.
However, I did use Matthew Dodd's change to if_xl.c.
I rebuilt
Have you done a ifconfig xl0 0.0.0.0 up before ?
xl0: No Link on interface
I think I'll have to support this, if the interface is
not initialized.
Martin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To
On Sat, 9 Aug 2003, Martin Blapp wrote:
You don't have a working link. Maybe it helps if you add a interface
define in /etc/dhclient.conf wit the possible media.
dhclient is still relying on behavior from the kernel that isn't
guaranteed.
I posted a patch to if_xl.c that should correct the
Hi,
Except that you've added code to dhclient that makes poor assumptions
about the ifmedia status word. Its optional; for hardware that you can
detect media status it can be used to display the status. For other
hardware, we shouldn't have to lie about media status; if the hardware
Hi,
dhclient is still relying on behavior from the kernel that isn't
guaranteed.
I know. But I'd consider that as a kernel bug, not dhclient fault.
Would it help the set the card into promisc. mode anyway, even
if we don't have link ?
I posted a patch to if_xl.c that should correct the link
On Sat, 9 Aug 2003, Matthew N. Dodd wrote:
Try this (cut paste):
The patch I posted was incorrect as I forgot to do a register window
select before reading media status.
ftp://ftp.jurai.net/users/winter/patches/xl_media.patch
--
| Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E |
On Sat, Aug 09, 2003 at 12:28:45PM +0200, Martin Blapp wrote:
Hi,
Here is the output of dhclient -v -d xl0
I I checked. Dhclient still initializes the
interface and brings it up itself. So there
is only one possibility:
You don't have a working link. Maybe it helps
if you add a
Hi,
I just did a cvsup of -CURRENT and rebuilt the world.
dhclient doesn't seem to work for me any more.
It looks like a problem with dhclient, and not the
kernel, because an older version of dhclient works fine.
Here is the output of dhclient -v -d xl0
15 matches
Mail list logo