a quick glance, the socket functions that are concerned
are sosetopt() and sogetopt().
If so, your fix looks like the right onw.
I will test the NGM_KSOCKET_GETOPT code path as I suspect that a similar
fix will be required.
Florent.
--
Florent Parent
Viagénie http://www.viagenie.qc.ca
--On 2002-01-18 11:55:09 +0100 [EMAIL PROTECTED] wrote:
But socket options (on this level) are a predefined struct. Here's an
example from some code I am working on:
struct sockopt sopt;
/* some code removed */
bzero(sopt, sizeof(sopt));
sopt.sopt_level =
Anyone has an example on how to setsockopt on a ksocket node in netgraph?
struct opts {
int level;
int name;
int value;
} myopts = { SOL_SOCKET, SO_REUSEADDR, 1
};
ret = NgSendMsg(cs, epath, NGM_KSOCKET_COOKIE, NGM_KSOCKET_SETOPT,
--On 2002-01-17 18:16:08 -0800 [EMAIL PROTECTED] wrote:
Florent Parent writes:
Anyone has an example on how to setsockopt on a ksocket node in netgraph?
struct opts {
int level;
int name;
int value;
} myopts = { SOL_SOCKET, SO_REUSEADDR, 1