Re: streams tpi options mgmt question

"Brian F. G. Bidulock" <[email protected]> Thu, 3 Jan 2008 01:13:43 -0700
Newsgroups gmane.linux.kernel.streams
Organization http://www.openss7.org/
Message-ID <[email protected]>
Matt,

Rather simple:

> 	opt_req.opt.opt_hdr.len =3D sizeof(opt_req.opt.opt_val);

the above line is incorrect, try:

	opt_req.opt.opt_hdr.len =3D sizeof(opt_req.opt);

because len must be the length of header and the option value, not just t=
he
length of the option value (see "OPTIONS" under man 3 t_optmgmt).

-- brian

--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
[email protected]    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6