Skip to contentSkip to conversation

Receiving decrypted IPsec Packets including MAC source address

DISCUSSION Joerg Pommnitz 2 participants 2 messages Sep 22, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Signature · 7 lines
Regards
       Joerg

__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 
#1 lore raw
Quoted 4 lines · you

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.

Signature · 2 lines
Rémi Denis-Courmont
Maemo Software, Nokia Devices R&D