Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 8:49 PM, Guy Harris wrote: > > On Mar 6, 2012, at 11:45 AM, Stefan Hajnoczi wrote: > >> On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: >> >>> Are "sense_len" and "sense_size" the same thing - i.e., is sense_len the >>> size of the sense data? >> >> No, sense_size is a f

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: > > On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > >> Responses have the following layout: >> >>    u32 sense_len; >>    u32 residual; >>    u16 status_qualifier; >>    u8 status; >>    u8 response; >>    u8 sense[sense_size]; >>    char data

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 6, 2012, at 11:45 AM, Stefan Hajnoczi wrote: > On Tue, Mar 6, 2012 at 7:28 PM, Guy Harris wrote: > >> Are "sense_len" and "sense_size" the same thing - i.e., is sense_len the >> size of the sense data? > > No, sense_size is a fixed value for the device. It is part of the > device conf

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Stefan Hajnoczi
On Tue, Mar 6, 2012 at 6:54 PM, Guy Harris wrote: > > On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > >> There are SCSI commands and responses.  Commands and responses are >> separate pcap packets because there can be multiple outstanding >> commands to multiple targets/LUNs. >> >> From the s

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > Responses have the following layout: > >u32 sense_len; >u32 residual; >u16 status_qualifier; >u8 status; >u8 response; >u8 sense[sense_size]; >char datain[]; Are "sense_len" and "sense_size" the same thing - i.e.,

Re: [tcpdump-workers] pcap DLT request for virtio-scsi SCSI transport

2012-03-06 Thread Guy Harris
On Mar 3, 2012, at 3:38 AM, Stefan Hajnoczi wrote: > There are SCSI commands and responses. Commands and responses are > separate pcap packets because there can be multiple outstanding > commands to multiple targets/LUNs. > > From the spec, commands have the following layout: > >u8 lun[8];

Re: [tcpdump-workers] Libpcap for Embedded Linux and Android

2012-03-06 Thread Guy Harris
On Mar 6, 2012, at 3:18 AM, Yohannes Affandy Siregar wrote: > Can I run program using libpcap (such as tcpdump) in Embedded Linux > and Android to capture wireless packet? If the Linux kernel on the machine in question has PF_PACKET socket support compiled into it (I think it's configured in by

[tcpdump-workers] Libpcap for Embedded Linux and Android

2012-03-06 Thread Yohannes Affandy Siregar
Can I run program using libpcap (such as tcpdump) in Embedded Linux and Android to capture wireless packet? Thanks. -- Yours Sincerely, Yohannes Affandy Siregar Electrical Engineering Bandung Institute of Technology - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubs