Probing sooptcopyin()

hiren panchasara hiren at strugglingcoder.info
Tue Mar 22 17:37:17 UTC 2016


On 03/22/16 at 10:15P, hiren panchasara wrote:
> I find sooptcopyin() failing and want to see how. 
> 
> Prototype is
> int sooptcopyin(struct sockopt *sopt, void *buf, size_t len, size_t
> minlen)
> 
> sopt->sopt_val seems to be the value passed in. But that being void *
> type, I am not sure how to read it on fbt::sooptcopyin:entry invocation.
> I've tried to cast it in a few ways without success along with
> copyinstr/stringof.

My bad. I was passing wrong arg and that's why simple cast wasn't
working. :/

Cheers,
Hiren
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-dtrace/attachments/20160322/3f0906c5/attachment.sig>


More information about the freebsd-dtrace mailing list