Date: Sun, 20 Jan 2002 16:45:32 -0800 (PST) From: Archie Cobbs <archie@dellroad.org> To: Florent Parent <Florent.Parent@viagenie.qc.ca> Cc: freebsd-net@FreeBSD.ORG, julian@elischer.org Subject: Re: netgraph: how to setsockopt on ksocket node ? Message-ID: <200201210045.g0L0jWL09716@arch20m.dellroad.org> In-Reply-To: <135740000.1011562445@blues.viagenie.qc.ca> "from Florent Parent at Jan 20, 2002 04:34:05 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201210045.g0L0jWL09716>