[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4DDD8C5E.7040207@candelatech.com>
Date: Wed, 25 May 2011 16:10:22 -0700
From: Ben Greear <greearb@...delatech.com>
To: chetan loke <loke.chetan@...il.com>
CC: netdev@...r.kernel.org
Subject: Re: [RFC 01/01]af_packet: Enhance network capture visibility
On 05/25/2011 04:03 PM, chetan loke wrote:
> This patch is not complete and is intended to:
> a) demonstrate the improvments
> b) gather suggestions
>
>
> Signed-off-by: Chetan Loke<lokec@....neu.edu>
> +struct tpacket3_hdr {
> + __u32 tp_status;
> + __u32 tp_len;
> + __u32 tp_snaplen;
> + __u16 tp_mac;
> + __u16 tp_net;
> + __u32 tp_sec;
> + __u32 tp_nsec;
> + __u16 tp_vlan_tci;
> + long tp_next_offset;
> +};
Use fixed-size variables, like __u64 instead of 'long'. That way,
you have the same sized msgs on 32 and 64-bit systems.
I didn't look at the rest of it in any detail, so no comment there.
Thanks,
Ben
--
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc http://www.candelatech.com
--
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