* RE: How to know inside a match which chain is calling
@ 2006-10-17 9:19 anisha.chandrasekaran
2006-10-17 11:16 ` aoliva
0 siblings, 1 reply; 6+ messages in thread
From: anisha.chandrasekaran @ 2006-10-17 9:19 UTC (permalink / raw)
To: aoliva, netfilter
Can you be a little more specific on what you have asked.
Is it that you want to know how to develop a new match??? Something like
a "state" or "conntrack" that has already been developed
Regards,
Anisha Chandrasekaran
Email : anisha.chandrasekaran@wipro.com
-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of aoliva
Sent: Tuesday, October 17, 2006 2:27 PM
To: netfilter@lists.netfilter.org
Subject: How to know inside a match which chain is calling
Hi all, I would like to know a way of programing in a match function a
way of knowing which is the chain which is calling the match.
Thanks in advance
Antonio de la Oliva
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to know inside a match which chain is calling
2006-10-17 9:19 How to know inside a match which chain is calling anisha.chandrasekaran
@ 2006-10-17 11:16 ` aoliva
2006-10-17 11:54 ` Jozsef Kadlecsik
0 siblings, 1 reply; 6+ messages in thread
From: aoliva @ 2006-10-17 11:16 UTC (permalink / raw)
Cc: netfilter
Dear Anisha,
Sorry for being unspecific. I have implemented a match, this match is
called in the chains OUTPUT and INPUT. I would like to know a way of
accessing an structure or calling a function or something similar in
order to be able of doing a switch inside the match changing the
behaviour if the match is called from OUTPUT or INPUT.
Thank you very much
Regards
Antonio
anisha.chandrasekaran@wipro.com wrote:
> Can you be a little more specific on what you have asked.
>
> Is it that you want to know how to develop a new match??? Something like
> a "state" or "conntrack" that has already been developed
>
>
> Regards,
>
> Anisha Chandrasekaran
> Email : anisha.chandrasekaran@wipro.com
>
>
>
> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of aoliva
> Sent: Tuesday, October 17, 2006 2:27 PM
> To: netfilter@lists.netfilter.org
> Subject: How to know inside a match which chain is calling
>
> Hi all, I would like to know a way of programing in a match function a
> way of knowing which is the chain which is calling the match.
>
> Thanks in advance
> Antonio de la Oliva
>
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
>
> www.wipro.com
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to know inside a match which chain is calling
2006-10-17 11:16 ` aoliva
@ 2006-10-17 11:54 ` Jozsef Kadlecsik
2006-10-17 12:21 ` aoliva
0 siblings, 1 reply; 6+ messages in thread
From: Jozsef Kadlecsik @ 2006-10-17 11:54 UTC (permalink / raw)
To: aoliva; +Cc: netfilter
On Tue, 17 Oct 2006, aoliva wrote:
> Sorry for being unspecific. I have implemented a match, this match is called
> in the chains OUTPUT and INPUT. I would like to know a way of accessing an
> structure or calling a function or something similar in order to be able of
> doing a switch inside the match changing the behaviour if the match is called
> from OUTPUT or INPUT.
You can't figure out the calling chain in a match: netfilter does not
provide the data. You have to pass the info as a command line option.
Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: How to know inside a match which chain is calling
2006-10-17 11:54 ` Jozsef Kadlecsik
@ 2006-10-17 12:21 ` aoliva
0 siblings, 0 replies; 6+ messages in thread
From: aoliva @ 2006-10-17 12:21 UTC (permalink / raw)
Cc: netfilter
Thanks for the answers, I have not read ipt_state or contract but if
Jozsef is saying it is not possible I will provide the info through the
command line.
Thanks a lot to all
Regards
Antonio
Jozsef Kadlecsik wrote:
> On Tue, 17 Oct 2006, aoliva wrote:
>
>
>> Sorry for being unspecific. I have implemented a match, this match is called
>> in the chains OUTPUT and INPUT. I would like to know a way of accessing an
>> structure or calling a function or something similar in order to be able of
>> doing a switch inside the match changing the behaviour if the match is called
>> from OUTPUT or INPUT.
>>
>
> You can't figure out the calling chain in a match: netfilter does not
> provide the data. You have to pass the info as a command line option.
>
> Best regards,
> Jozsef
> -
> E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
> PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
> Address : KFKI Research Institute for Particle and Nuclear Physics
> H-1525 Budapest 114, POB. 49, Hungary
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How to know inside a match which chain is calling
@ 2006-10-17 11:23 anisha.chandrasekaran
0 siblings, 0 replies; 6+ messages in thread
From: anisha.chandrasekaran @ 2006-10-17 11:23 UTC (permalink / raw)
To: aoliva; +Cc: netfilter
Dear Antonio,
No sorries please. I jus wanted to get more clear on your doubt.
Did you refer to the ipt_state or ipt_conntrack files for idea? They
involve number of structure and functional references. Is that what you
were looking for or am I taking you in a wrong direction?
Regards,
Anisha Chandrasekaran
Email : anisha.chandrasekaran@wipro.com
-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of aoliva
Sent: Tuesday, October 17, 2006 4:46 PM
Cc: netfilter@lists.netfilter.org
Subject: Re: How to know inside a match which chain is calling
Dear Anisha,
Sorry for being unspecific. I have implemented a match, this match is
called in the chains OUTPUT and INPUT. I would like to know a way of
accessing an structure or calling a function or something similar in
order to be able of doing a switch inside the match changing the
behaviour if the match is called from OUTPUT or INPUT.
Thank you very much
Regards
Antonio
anisha.chandrasekaran@wipro.com wrote:
> Can you be a little more specific on what you have asked.
>
> Is it that you want to know how to develop a new match??? Something
like
> a "state" or "conntrack" that has already been developed
>
>
> Regards,
>
> Anisha Chandrasekaran
> Email : anisha.chandrasekaran@wipro.com
>
>
>
> -----Original Message-----
> From: netfilter-bounces@lists.netfilter.org
> [mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of aoliva
> Sent: Tuesday, October 17, 2006 2:27 PM
> To: netfilter@lists.netfilter.org
> Subject: How to know inside a match which chain is calling
>
> Hi all, I would like to know a way of programing in a match function a
> way of knowing which is the chain which is calling the match.
>
> Thanks in advance
> Antonio de la Oliva
>
>
>
> The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.
>
> www.wipro.com
>
>
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
^ permalink raw reply [flat|nested] 6+ messages in thread* How to know inside a match which chain is calling
@ 2006-10-17 8:56 aoliva
0 siblings, 0 replies; 6+ messages in thread
From: aoliva @ 2006-10-17 8:56 UTC (permalink / raw)
To: netfilter
Hi all, I would like to know a way of programing in a match function a
way of knowing which is the chain which is calling the match.
Thanks in advance
Antonio de la Oliva
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-10-17 12:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-17 9:19 How to know inside a match which chain is calling anisha.chandrasekaran
2006-10-17 11:16 ` aoliva
2006-10-17 11:54 ` Jozsef Kadlecsik
2006-10-17 12:21 ` aoliva
-- strict thread matches above, loose matches on Subject: below --
2006-10-17 11:23 anisha.chandrasekaran
2006-10-17 8:56 aoliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox