Archie do you want to check this in, or shall I?
Florent Parent wrote:
--On 2002-01-18 21:30:00 -0800 [EMAIL PROTECTED] wrote:
netgraph: sendto(.dummy): Bad address
Hmm.. I wonder if the problem is that this has never worked :-)
That would explain why I couldn't find any examples on
In article [EMAIL PROTECTED],
Garrett Wollman [EMAIL PROTECTED] wrote:
On Sun, 20 Jan 2002 15:08:56 -0800 (PST), Archie Cobbs [EMAIL PROTECTED] said:
But it's interesting the soalloc() is called with 'p != 0'
as an argument. p is never 0 or else you would have already
panic'd... you'd
Florent Parent writes:
This is what I did to make it work for me. A better fix would probably be
around the struct proc definition. If fact, you had noted broken
probably as a memo to fix something here...
struct proc *p = curproc ? curproc : proc0;/* XXX broken */
***
--On 2002-01-20 11:30:01 -0800 [EMAIL PROTECTED] wrote:
So this 'struct proc' argument can be NULL now?
What about when calling other socket functions like socreate(), et. al.?
'struct proc' member in the struct sockopt can be NULL. As per the comment
in that structure, NULL means that
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 {
enumsopt_dir sopt_dir; /* is this a get or a set? */
On Sun, 20 Jan 2002 15:08:56 -0800 (PST), Archie Cobbs [EMAIL PROTECTED] said:
But it's interesting the soalloc() is called with 'p != 0'
as an argument. p is never 0 or else you would have already
panic'd... you'd panic later on, too, referencing 'p-p_ucred'.
All of the credential frobbing
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 {
enumsopt_dir sopt_dir; /* is this a get or a set? */
Hi Florent,
You use:
struct opts {
int level;
int name;
int value;
} myopts;
myopts.level = SOL_SOCKET;
myopts.name = SO_REUSEPORT;
myopts.value = 1;
But socket options (on this level) are a predefined struct. Here's an
example from some
--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 =
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
};
ret = NgSendMsg(cs, epath, NGM_KSOCKET_COOKIE,
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,
archie is Mr ksocket.
On Thu, 17 Jan 2002, Florent Parent wrote:
--On 2002-01-17 19:11:45 +0100 [EMAIL PROTECTED] wrote:
ret = NgSendMsg(cs, epath, NGM_KSOCKET_COOKIE, NGM_KSOCKET_SETOPT,
(struct ng_ksocket_sockopt *)myopts,
sizeof(myopts)));
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
};
ret = NgSendMsg(cs, epath, NGM_KSOCKET_COOKIE,
--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
};
14 matches
Mail list logo