Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team)
Subject: [Q] ioctl arguments with XTI_SOSETOPT?
Date: 29 Jul 1994 12:20:48 GMT	[thread overview]
Message-ID: <31as70$2te@mrnews.mro.dec.com> (raw)

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


             reply	other threads:[~1994-07-29 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-29 12:20 Philip Shearer @ZUO-DC EBS-Team [this message]
1994-07-29 15:02 ` [Q] ioctl arguments with XTI_SOSETOPT? Matt Thomas
1994-07-29 15:34   ` Mary Walker
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox