Skip to contentSkip to conversation

Packet mmap payload alignment.

DISCUSSION Paul Chavent 1 participant 1 message Mar 31, 2012

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

Hi.

I'm playing with the packet mmap interface. After having success with SOCK_DGRAM, i would like to try SOCK_RAW packet mmap.

I would like to align my payload on 16 bytes boundary. On rx side, it's automatic. But on tx side, it lacks the possibility to tell to the kernel where to begin to read the data.

Do i miss something ?

Do you think it could be possible to have a "reserve" like on the rx side ?

Regards.

Paul.

P.S. : can you cc me your reply please ?