All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: Jvalencia <tigrezno@log01.org>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Developing with libipq
Date: Thu, 14 Oct 2004 20:10:32 +0200	[thread overview]
Message-ID: <416EC118.7000209@eurodev.net> (raw)
In-Reply-To: <20041014192019.3832d581.tigrezno@log01.org>

Jvalencia wrote:

>Hi all, i'm new to netfilter and just started trying some simple things.
>I've made a program (simple program) to take a packet and print its metadata.
>The output is this:
>
>ID of queued packet: 3413885640
>Netfilter mark value: 0
>Packet arrival time (seconds): 0
>Packet arrival time (+useconds): 0
>Netfilter hook we rode in on: 3
>  
>

You are enqueing packets in the localout hook.

#define NF_IP_LOCAL_OUT         3

>Name of incoming interface: 
>Name of outcoming interface: eth0
>Hardware protocol: 0
>Hardware type: 0
>Hardware address length: (null)
>Hardware address: 
>Length of packet data: 0
>
>
>Is this result valid? most values are 0
>  
>

yes, in localout hook the packets are in network layer, so they don't 
still know anything about the link layer information, that is, mac 
address and folks.

regards,
Pablo

  reply	other threads:[~2004-10-14 18:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-14 18:20 Developing with libipq Jvalencia
2004-10-14 18:10 ` Pablo Neira [this message]
2004-10-14 18:32   ` Jvalencia
  -- strict thread matches above, loose matches on Subject: below --
2004-10-14 18:21 Jvalencia

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=416EC118.7000209@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=tigrezno@log01.org \
    /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.