netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Joakim Tjernlund" <joakim.tjernlund@transmode.se>
To: "'Herbert Xu'" <herbert@gondor.apana.org.au>
Cc: <netdev@vger.kernel.org>
Subject: RE: raw PF_PACKET protocol selection
Date: Tue, 9 Oct 2007 08:08:22 +0200	[thread overview]
Message-ID: <00ac01c80a3a$cc83a6a0$04ac10ac@Jocke> (raw)
In-Reply-To: <E1If5b3-00043F-00@gondolin.me.apana.org.au>

 

> -----Original Message-----
> From: Herbert Xu [mailto:herbert@gondor.apana.org.au] 
> Sent: den 9 oktober 2007 05:17
> To: joakim.tjernlund@transmode.se
> Cc: netdev@vger.kernel.org
> Subject: Re: raw PF_PACKET protocol selection
> 
> Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:
> > 
> > I trying to open my own raw PF_PACKET socket to receive 
> > pkgs sent to this socket. I can only make ETH_P_ALL protocol
> > work, but then I receive all pkgs and I want pkgs with a specific
> > protocol type. I have tried lots of ETH_P types and none of 
> them work.
> > Naturally I make sure the sender is using the same protocol 
> as my test
> > program below. I guess I must be doing something wrong???
> 
> Your program works fine here.  You did run it as root, right?

Yes and ETH_P_ALL is the only protocol that prints anything
I am on 2.6.22

> Did you try stracing it?

Just did and now it works, it didn't yesterday :(
But if I change protocol to ETH_P_MOBITEX, I don't get any
pkgs(I did change protocol on sending side too)

> 
> Cheers,
> -- 
> Visit Openswan at http://www.openswan.org/
> Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
> 
> 
> 


  reply	other threads:[~2007-10-09  6:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-08 18:36 raw PF_PACKET protocol selection Joakim Tjernlund
2007-10-09  3:17 ` Herbert Xu
2007-10-09  6:08   ` Joakim Tjernlund [this message]
2007-10-09  7:13     ` Evgeniy Polyakov
2007-10-09  7:27       ` Joakim Tjernlund
2007-10-09  7:34         ` Evgeniy Polyakov
2007-10-09  7:51           ` Joakim Tjernlund
2007-10-09  8:17             ` Evgeniy Polyakov
2007-10-09  9:00               ` Joakim Tjernlund
2007-10-09  7:56         ` Herbert Xu

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='00ac01c80a3a$cc83a6a0$04ac10ac@Jocke' \
    --to=joakim.tjernlund@transmode.se \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).