lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <00ac01c80a3a$cc83a6a0$04ac10ac@Jocke>
Date:	Tue, 9 Oct 2007 08:08:22 +0200
From:	"Joakim Tjernlund" <joakim.tjernlund@...nsmode.se>
To:	"'Herbert Xu'" <herbert@...dor.apana.org.au>
Cc:	<netdev@...r.kernel.org>
Subject: RE: raw PF_PACKET protocol selection

 

> -----Original Message-----
> From: Herbert Xu [mailto:herbert@...dor.apana.org.au] 
> Sent: den 9 oktober 2007 05:17
> To: joakim.tjernlund@...nsmode.se
> Cc: netdev@...r.kernel.org
> Subject: Re: raw PF_PACKET protocol selection
> 
> Joakim Tjernlund <joakim.tjernlund@...nsmode.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@...dor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
> 
> 
> 

-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ