Receiving decrypted IPsec Packets including MAC source address

2 messages, 2 authors, 2008-09-22 · open the first message on its own page

Receiving decrypted IPsec Packets including MAC source address

From: Joerg Pommnitz <hidden>
Date: 2008-09-22 08:31:53

Hello all,
is there a way to get the source MAC address for a decrypted IPsec protected 
UDP packet? For unencrypted data I would use RAW sockets, but this obviously 
fails for encrypted data.

-- 
Regards
       Joerg

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 

Re: Receiving decrypted IPsec Packets including MAC source address

From: Rémi Denis-Courmont <hidden>
Date: 2008-09-22 08:37:46

On Monday 22 September 2008 11:25:11 ext Joerg Pommnitz, you wrote:
Hello all,
is there a way to get the source MAC address for a decrypted IPsec
protected UDP packet? For unencrypted data I would use RAW sockets, but
this obviously fails for encrypted data.
In either case, you would have to use PACKET sockets as INET raw sockets won't 
give you the link-layer headers. But yeah, that would mean deciphering the 
packets in userland.

-- 
Rémi Denis-Courmont
Maemo Software, Nokia Devices R&D
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help