From: Philip Ho <cbho@ie.cuhk.edu.hk>
To: Shirshanka Das <shanky@cs.ucla.edu>
Cc: netfilter@lists.netfilter.org, Philip <cbho@ie.cuhk.edu.hk>
Subject: Re: libipq question
Date: Fri, 23 May 2003 16:22:47 +0800 [thread overview]
Message-ID: <3ECDDA57.F90EC289@ie.cuhk.edu.hk> (raw)
In-Reply-To: Pine.SOL.4.33.0305142100520.21590-100000@cheetah.cs.ucla.edu
Hi Shirshanka
I have the exact question as you. I can get the packet to Perl userspace,
but don't know how to modify the packet and put it back into socket. Do you
know the answer?
Regards,
philip
Shirshanka Das wrote:
> Hi all,
> I'm new to lipipq...
> I tried using the perlipq module.. but I'm unable to figure out
> how to write a "modified" packet back to the queue..
> the documentation says :
> set_verdict(id,verdict,len,buf)
>
> $msg = $queue->get_message() gives me the packet (i hope)..
> however trying to do
> set_verdict(id,NF_ACCEPT,len,$msg)
> does not work properly...
>
> does anyone have a piece of working code.. that mangles something in a
> packet.. and then writes it out ?
>
> Thanks,
> Shanky
next prev parent reply other threads:[~2003-05-23 8:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 4:42 libipq question Shirshanka Das
2003-05-23 8:22 ` Philip Ho [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-04-22 9:04 Moshe Ashkenazi
2004-06-25 20:12 Steve Ashley
2004-06-25 20:38 ` Pablo Neira
2004-06-25 23:56 ` Henrik Nordstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ECDDA57.F90EC289@ie.cuhk.edu.hk \
--to=cbho@ie.cuhk.edu.hk \
--cc=netfilter@lists.netfilter.org \
--cc=shanky@cs.ucla.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.