Update: ppp-2.4.2

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Sun Feb 29 13:38:11 PST 2004


Hi list!

Forwarded to blfs-support, please follow up there...

Once upon a time (on Sunday 29 February 2004 20:36), Yann E. MORIN wrote :
 > I'm currently testing ppp-cvs with libpcap 0.8.1. More news later on...

Still no luck, still ending with:
----
$ tail /var/log/sys.log
[---irrelevant stuff snipped out---]
Plugin pppoe.so loaded.
RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
pppd 2.4.2 started by root, uid 0
send (sendPacket)
---

Because that does not speak much by itself, I patched
pppd/plugins/rp-pppoe/if.c that way (lines may wrap):

--- ppp-20040229/pppd/plugins/rp-pppoe/if.c     2004-02-29 23:12:11.000000000 +0100
+++ ppp-20040229.yem/pppd/plugins/rp-pppoe/if.c 2004-02-29 23:11:42.000000000 +0100
@@ -525,6 +525,8 @@
 int
 sendPacket(PPPoEConnection *conn, int sock, PPPoEPacket *pkt, int size)
 {
+    char buf[2048] = "";
+    memset( buf, 0, 2048 );
 #if defined(USE_BPF)
     if (write(sock, pkt, size) < 0) {
        sysErr("write (sendPacket)");
@@ -532,7 +534,9 @@
     }
 #elif defined(HAVE_STRUCT_SOCKADDR_LL)
     if (send(sock, pkt, size, 0) < 0) {
-       sysErr("send (sendPacket)");
+       int err = errno;
+       sprintf( buf, "YEM: send (sendPacket) : errno=%d (%.256s)", err, strerror(err) );
+       sysErr(buf);
        return -1;
     }
 #else

Then the last line in the log became:
---
YEM: send (sendPacket) : errno=100 (Network is down)
---

That does not ring any bell here, except that lo is configured and up.
Network is OK as I've got my NFS shares mounted and accesible OK from
the machine.

Maybe there's something with network devices on my machine:

PC is a vintage 'mobile' DELL Latitude XPi P166 with no integrated NIC
eth0 is a 3Com 3c589C PCMCIA card (3c589_cs)
eth1 is a Netgear FA511 PCMCIA card (tulip_cb)
ADSL shall be on eth0 which is only 10Mibps capable
LAN shall be on eth1 which is 100Mibps capable

I can't physically switch cards, as the FA511 has the RJ45 connector
integrated and would prevent the other cqrd from beng accessible.

Next things on list of things to try:
 - use nameif to invert eth0 and eth1
 - physically invert LAN <-> ADSL
 - anyother idea?

Will have diner first... :-]

Yann.

-- 
.-----------------.--------------------.-------------------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\   ASCII RIBBON            |
| +0/33 662376056 | Software  Designer | \ /     CAMPAIGN           ^  |
| --==< °_° >==-- °---.----------------:  X    AGAINST HTML        /e\ |
| web: ymorin.free.fr | SETI at home 3174 | / \  IN MAIL & NEWS       """ |
°---------------------°----------------°-------------------------------°
 \__ np:  [Stopped] __________________________________________________/




More information about the blfs-support mailing list