From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,645b6d8870a133f9 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-29 11:07:15 PST Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!agate!ames!decwrl!pa.dec.com!nntpd.lkg.dec.com!mrnews.mro.dec.com!zuunix.zuo.dec.com!pbs From: pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team) Newsgroups: comp.unix.osf.osf1 Subject: [Q] ioctl arguments with XTI_SOSETOPT? Date: 29 Jul 1994 12:20:48 GMT Organization: Digital Equipment Corporation - Marlboro, MA Message-ID: <31as70$2te@mrnews.mro.dec.com> NNTP-Posting-Host: zuunix.zuo.dec.com X-Newsreader: Tin 1.1 PL3 What is the structure and the content of the ioctl command mentioned in /usr/include/xtiext.h For example if I was using sockets: { int sendbuf = 1 ; int option = SO_KEEPALIVE ; setsockopt(fd,SOL_SOCKET,option,&sendbuf,sizeof(sendbuf)) ; } I guessed that the the equivelent was: { struct xtisoioctl options ; int sendbuf = 1 ; options.level = SOL_SOCKET; options.optname = SO_KEEPALIVE; options.opt.maxlen = sizeof(int) ; options.opt.len = sizeof(int) ; options.opt.buf = (char *) &sendbuf; ioctl(fd,XTI_SOSETOPT,&options ) } But isn't! perror reports "Invalid argument" Does any one know what is correct? Suplementry questions: Is it true that one can not set TCP/IP options using t_optmgmt and if so why was it not implemented? TTFN Philip