Home
last modified time | relevance | path

Searched refs:TPACKET_ALIGN (Results 1 – 2 of 2) sorted by relevance

/external/kernel-headers/original/uapi/linux/
Dif_packet.h128 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
129 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
234 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
235 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/external/libpcap/
Dpcap-linux.c3693 tp_hdrlen = TPACKET_ALIGN(handlep->tp_hdrlen) + sizeof(struct sockaddr_ll) ;
3694 netoff = TPACKET_ALIGN(tp_hdrlen + (maclen < 16 ? 16 : maclen)) + tp_reserve;
3707 req.tp_frame_size = TPACKET_ALIGN(macoff + frame_size);
4213 sll = (void *)frame + TPACKET_ALIGN(handlep->tp_hdrlen);
4244 TPACKET_ALIGN(handlep->tp_hdrlen) +