I am doing something similar to what you are doing, however I have a different 
problem. I am able to successfully read a file (i'm comparing the incoming MAC address 
to MAC addresses in a file), but I am having trouble forwarding my packet (which it 
sounds as though you are able to do). Would you mind doing a code exchange?

Iman

> 
> From: "Sumit Pandya" <[EMAIL PROTECTED]>
> Date: 2002/03/13 Wed AM 06:56:37 CST
> To: <[EMAIL PROTECTED]>
> Subject: file operation in QUEUE handler
> 
> Hi All,
>       Is it possible to do file-operations (open/fopen, close/fclose,...) in
> user-space handler of QUEUE target packets? In my program I'm sending a copy
> of some received-packet to remote host. For that I'm reading host addresses
> from a configuration file. When I do file operations then I get error
> "Invalid argument" for every call of send(). If I initialize host address in
> my program(Hard-Coding) and skip reading configuration file, then my send is
> successfull :-O. Don't worry I've cared of network and byte orders.
>       If this is problem with file operations then what is alternative?
>       Thanks for your time to write in.
> --Sumit
> 
> 
> 
> 


Reply via email to