Florent Parent writes:
> 'struct proc' member in the struct sockopt can be NULL. As per the comment 
> in that structure, NULL means that the calling entity is the kernel, not a 
> user process (my interpretation):
> 
> struct sockopt {
>       enum    sopt_dir sopt_dir; /* is this a get or a set? */
>       int     sopt_level;     /* second arg of [gs]etsockopt */
>       int     sopt_name;      /* third arg of [gs]etsockopt */
>       void   *sopt_val;       /* fourth arg of [gs]etsockopt */
>       size_t  sopt_valsize;   /* (almost) fifth arg of [gs]etsockopt */
>       struct  proc *sopt_p;   /* calling process or null if kernel */
> };

Ah.. it's Julian's fault :-)

Your fix (setting sopt.sopt_p to NULL) is already implemented
in -current by Julian in revision 1.20, but he never MFC'd it.

Julian: any reason 1.20 was not MFC'd?

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to