Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* [Q] ioctl arguments with XTI_SOSETOPT?
@ 1994-07-29 12:20 Philip Shearer @ZUO-DC EBS-Team
  1994-07-29 15:02 ` Matt Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Philip Shearer @ZUO-DC EBS-Team @ 1994-07-29 12:20 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1994-07-29 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-29 12:20 [Q] ioctl arguments with XTI_SOSETOPT? Philip Shearer @ZUO-DC EBS-Team
1994-07-29 15:02 ` Matt Thomas
1994-07-29 15:34   ` Mary Walker

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