ipfw related (ipfw_insn_pipe structure)
From: roryg (npratsinis_at_cmu.edu)
Date: 02/11/04
- Next message: null: "supported 56k modems ?"
- Previous message: Martin Ebnoether: "Re: What happened to ports.tar.gz?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Feb 2004 08:52:51 -0800
Hello guys,
I would like some help for a coding problem i have faced using
dummynet/ipfw. I am writing in C some functions for creating pipes,
queues, adding flows to queues etc. I face a problem when trying to
add a flow to an already existing queue (doing something like:
ipfw add queue 1 ip from any to any).
I am using getsockopt() with IP_FW_ADD to add my rule, and in order
to specify the queue in the ip_fw rule, i am using the ipfw_insn_pipe
structure. Its 2nd field is a void pointer pipe_ptr, which i have no
idea where it should point to.
I have checked at the source code of ip_fw2.c to see how it is handled
in there, but i didn't find anything.
Actually i have managed to make the addition of my rule to the chain
rule ("ipfw list" shows my entry), but it doesn't work (i guess because
i left pipe_ptr untouched).
So, do you have any idea how i should use pipe_ptr??
I would really appreciate some help.
Thanx in advance!
Nikos Pratsinis
- Next message: null: "supported 56k modems ?"
- Previous message: Martin Ebnoether: "Re: What happened to ports.tar.gz?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|