<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: Socket operation on non-socket
From: "Denis Dervisevic" <DenisDervisevic,AT,amdosoft,DOT,com>
Date: Fri, 4 May 2001 13:28:01 +0200

hi,

First at all, I would like to say that I am very sorry if this mail is toooo
long. If so, please forgive me.

well I can not understand why this not works, because at the last Friday
everything worked fine, but now I have problems.

Options file at hostB

ptpaddr         192.68.1.1
ipaddr          192.168.1.2
me              123.456.789.0:1234
peer            123.321.321.321:1235
key             11111111111111111111111111111
maxerr          -1
debug           false
arg             192.168.1.0
mask            255.255.255.0
bcast           192.168.1.255
ipup=/etc/cipe/hostA/hostA.ip-up
ipdown=/etc/cipe/hostA/hostA.ip-down

Here is what I get when I start deamon

root@root# /usr/local/sbin/ciped-cb -o /etc/cipe/hostA/options.hostB.hostA
CIPE daemon vers 1.5.1 (c) Olaf Titz 1996-2000
device=(none)
debug=yes------------->!!!!! I can not understand this, debug=false (look
above) !!!!!!
ipaddr=192.168.1.2
ptpaddr=192.168.1.1
mask=255.255.255.0
bcast=192.168.1.255
mtu=0
metric=0
cttl=0
me=123.456.789.0:1234
peer=123.321.321.321:1235
key=(secret)
nokey=no
socks=
tokxc=0
tokey=0
ipup=/etc/cipe/hostA/hostA.ip-up
ipdown=/etc/cipe/hostA/hostA.ip-down
arg=192.168.1.0
maxerr=-1
tokxts=0
ping=0
toping=0
dynip=no
hwaddr=(none)
ifconfig=no
checksum=no
Using cipcb0 index 0
opendev: attach
root@root#

and this is syslog

May  3 15:42:10 root kernel: cipcb0: alloc
May  3 15:42:10 root kernel: cipcb0: setpar
May  3 15:42:10 root kernel: cipcb0: setpar 0.0.0.0:0 1000 60000 0201
0 ---------->!!!! I can not understand this too !!!!
May  3 15:42:10 root kernel: cipcb0: setkey
May  3 15:42:10 root kernel: cipcb0: setkey 1
May  3 15:42:10 root kernel: cipcb0: attach

and here I have my strace log

...
open("/dev/urandom", O_RDONLY)          = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_RCVBUF, [65536], 4) = 0
bind(4, {sin_family=AF_INET, sin_port=htons(1234),
sin_addr=inet_addr("123.456.789.0")}}, 16) = 0
connect(4, {sin_family=AF_INET, sin_port=htons(1235),
sin_addr=inet_addr("123.321.321.321")}}, 16) = 0
getsockname(4, {sin_family=AF_INET, sin_port=htons(1234),
sin_addr=inet_addr("123.456.789.0")}}, [16]) = 0
ioctl(4, 0x89f4, 0xbffff6d4)            = 0
write(1, "Using cipcb0 index 0\n", 21)  = 21
ioctl(4, 0x89f1, 0xbffff6d4)            = 0
ioctl(4, 0x89f2, 0xbffff6d4)            = 0
ioctl(4, 0x89f3, 0xbffff6d4)            = -1 ENOTSOCK (Socket operation on
non-socket)
write(2, "opendev: attach", 15opendev: attach)         = 15
write(2, "\n", 1
)                       = 1
close(4)                                = 0
munmap(0x40014000, 4096)                = 0
_exit(1)                                = ?

Well I can not understand this "ioctl(4, 0x89f3, 0xbffff6d4)            = -1
ENOTSOCK (Socket operation on non-socket)".

Anyone can help??

Regards
d.





<< | Thread Index | >> ]    [ << | Date Index | >> ]