Thanks Mike and Luca for your answers.

I've tried both set of patches suggested:

1) Mike
Oops. The "sll->sll_protocol" in that line should probably
be "sll ? sll->sll_protocol : htons(ETH_P_IP)".

+

--- diald.h     1999/02/13 16:53:40     1.20
+++ diald.h     1999/02/27 17:32:57
@@ -69,7 +69,7 @@
 #  define HAVE_AF_PACKET
    typedef struct sockaddr_ll sockaddr_ll_t;
 #else
-   typedef void sockaddr_ll_t;
+   typedef struct { int sll_protocol; } sockaddr_ll_t;
 #endif
 
 #include "config.h"

2) Luca
- --- diald/firewall.c  Sat Feb 13 17:25:31 1999
+++ diald-my/firewall.c Fri Feb 26 20:49:30 1999
@@ -763,8 +763,11 @@
         * shut down do to a link failure.
         */
        if (ip_pkt->protocol == IPPROTO_TCP)
+#if defined(HAVE_AF_PACKET)    
            forge_tcp_reset(sll->sll_protocol, ip_pkt, len);
- -     
+#else
+           forge_tcp_reset(htons(ETH_P_IP), ip_pkt, len);
+#endif 
        goto skip;
     }
 

In both cases the compilation finishes ok, thanks.



However:

In both cases I'm asked if I want to remove a syscall from the tcpwrapper lib, even if 
I
specified in the Makefile I don't want to use tcpwrappers.

In both cases the connections dies as soon as it is estabilished. diald.conf is the 
same
of 0.98.2.
It seems pppd fails to start (status 256). I think that maybe this is due to the new 
pppd
option "nodefaultroute", that diald inserts automatically.
I have pppd2.2 which understands "-defaultroute"; I know that now pppd is replacing all
"-" with "no", but "man pppd" of 2.2 doesn't show "nodefaultroute".

[root@i3 go]# pppd nodefaultroute
nodefaultroute: unrecognized command
pppd version 2.2 patch level 0
Usage: pppd [ arguments ], where arguments are:
....

[root@i3 go]# pppd -defaultroute
�~}#�!}!}!} }2}!}$}%�}%}&K�"}'}"}(}"��~~}#�!}!}!} }2}!}$}%�}%}&K�"}'}"}(}"��~~}#
�!}!}!} }2}!}$}%�}%}&K�


=========================

Feb 28 15:13:46 i3 diald[2516]: Running connector (pid = 2646).
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[12]: pid 2646 dial, status 0
Feb 28 15:14:17 i3 diald[2516]: Connected to site 192.168.0.2
Feb 28 15:14:17 i3 diald[2516]: Running pppd (pid = 2649).
Feb 28 15:14:17 i3 diald[2649]: Running pppd: /usr/sbin/pppd nodefaultroute -det
ach modem crtscts mtu 576 mru 576 name myusername noipdefault lcp-max-configure 20
-vj
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[13]: pid 2649 link, status 256
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/ifconfig sl0 192.168.0.1 pointopo
int 192.168.0.2 netmask 255.255.255.255 metric 0 mtu 576 up'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[14]: pid 2650 system, status 0
Feb 28 15:14:17 i3 diald[2516]: Establishing routes for sl0
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/route add 192.168.0.2 metric 0  d
ev sl0'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[15]: pid 2654 system, status 0
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/route add default metric 0  netma
sk 0.0.0.0 dev sl0'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[16]: pid 2655 system, status 0
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/ifconfig sl0 192.168.0.1 pointopo
int 192.168.0.2 netmask 255.255.255.255 metric 0 mtu 576 up'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[17]: pid 2656 system, status 0
Feb 28 15:14:17 i3 diald[2516]: Establishing routes for sl0
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/route add 192.168.0.2 metric 0  d
ev sl0'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[18]: pid 2660 system, status 0
Feb 28 15:14:17 i3 diald[2516]: running '/sbin/route add default metric 0  netma
sk 0.0.0.0 dev sl0'
Feb 28 15:14:17 i3 diald[2516]: SIGCHLD[19]: pid 2661 system, status 0
Feb 28 15:14:17 i3 diald[2516]: Disconnected. Call duration 0 seconds.
Feb 28 15:14:17 i3 diald[2516]: IP transmitted 0 bytes and received 536 bytes.
Feb 28 15:14:17 i3 diald[2516]: Closing /dev/ttyS2
Feb 28 15:14:18 i3 diald[2516]: Delaying 30 seconds before clear to dial.

Ciao.

-- 
Giulio
[EMAIL PROTECTED]

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to