[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1191914858.6682.75.camel@gentoo-jocke.transmode.se>
Date: Tue, 09 Oct 2007 09:27:38 +0200
From: Joakim Tjernlund <joakim.tjernlund@...nsmode.se>
To: Evgeniy Polyakov <johnpol@....mipt.ru>
Cc: 'Herbert Xu' <herbert@...dor.apana.org.au>, netdev@...r.kernel.org
Subject: Re: raw PF_PACKET protocol selection
On Tue, 2007-10-09 at 11:13 +0400, Evgeniy Polyakov wrote:
> On Tue, Oct 09, 2007 at 08:08:22AM +0200, Joakim Tjernlund (joakim.tjernlund@...nsmode.se) wrote:
> > > 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
>
> ETH_P_ARP works too.
>
> > > 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)
>
> Did you change eth_type_trans() to catch your proto?
>
Just fond out something:
if I redirect my prog like so:
./sniff > log
and press Ctrl-C after a packet has been sent to it,
it does NOT work. I don't get ANY output in my "log" file, not
even the printf("---------\n") appears.
But if I run whithout redirect it works(at least with ETH_P_BPQ)
Anyone else see this too?
Jocke
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists