Hi,
This is passing strange. Adding the patch to the sources in
Juanjo Ciarlante's src.rmp makes diald work on 2.1.99 for me
(after saying yes to CONFIG_PACKET). However, I had problems on
2.0.33 with this
______________________________________________________________________
May 1 14:43:58 tiamat diald[4222]: Could not get socket to do packet monitoring
: Invalid argument
May 1 14:43:58 tiamat diald[4222]: Can't set line discipline: Invalid argument
May 1 14:43:58 tiamat diald[4222]: Diald is dieing with code 1
______________________________________________________________________
Which is the same error that I got on _2.1.98_ without the
patch. So, without the patch, diald works on 2.0.33, with the patch,
it works on 2.1.99.
Hmm. I think I shall try and get the consolidated patch that
Shaw mentioned and try and see if that works on both 2.1.X and 2.0.X
kernels ...
Thanks for your help,
manoj
diff -ur diald-0.16.dist/filter.c diald-0.16.new/filter.c
--- diald-0.16.dist/filter.c Wed Jan 21 22:20:15 1998
+++ diald-0.16.new/filter.c Thu Jan 22 22:37:52 1998
@@ -19,7 +19,7 @@
fwdfd = -1;
- if ((snoopfd = socket(AF_INET, SOCK_PACKET, htons(ETH_P_ALL))) < 0) {
+ if ((snoopfd = socket(AF_PACKET, SOCK_PACKET, htons(ETH_P_ALL))) < 0) {
syslog(LOG_ERR, "Could not get socket to do packet monitoring: %m");
die(1);
}
@@ -54,7 +54,7 @@
close(fwdfd);
fwdfd = -1;
}
- if ((fwdfd = socket(AF_INET, SOCK_PACKET, htons(ETH_P_ALL))) < 0) {
+ if ((fwdfd = socket(AF_PACKET, SOCK_PACKET, htons(ETH_P_ALL))) < 0) {
syslog(LOG_ERR, "Could not get socket to do packet forwarding: %m");
die(1);
}
@@ -100,6 +100,8 @@
int len;
if ((len = recvfrom(snoopfd,packet,4096,0,&from,&from_len)) > 0) {
+
+
/* FIXME: really if the bind succeeds, then I don't need
* this check. How can I shortcut this effectly?
* perhaps two different filter_read routines?
--
It's not the fall that kills you, it's the sudden stop (seen on a
wall in Down by law)
Manoj Srivastava <[EMAIL PROTECTED]> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]