Re: [tcpdump-workers] New datasource implementation

2011-12-28 Thread Felix Obenhuber
Hi,

On Sat, 2011-12-17 at 17:54 +0100, Akos Vandra wrote:
> I have just written support for one of my CAN->USB adapter gadgets, so
> that it would work with libpcap and thus with wireshark. I would love
> to see support for my device as an option in future releases.

Did you think about writing a SocketCAN driver for your device?
PCAP already has support for SocketCAN. Furthermore the SocketCAN
interface is very well established and comes with drivers for lots of
CAN hardware.

cheers,

Felix 

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Wrote a little guide for people getting started.

2011-12-28 Thread Akos Vandra
Yeah, I forgot to push it to the remote repo, now it should be there.

Ákos

On 28 December 2011 00:07, Guy Harris  wrote:
>
> On Dec 27, 2011, at 12:53 PM, Michael Richardson wrote:
>
>> I plan to let a 4.1.2 (perhaps a 4.2) out tomorrow.
>
> Do you mean "4.1.2" or "4.2.1"?  4.2.0, and libpcap 1.2.0, are the current 
> release, according to the Web site.  Both of them have significant bugs that 
> are fixed in the current 4.2 and 1.2 branches.
>
> Presumably they'll be announced on tcpdump-announce - I missed the 
> 4.2.0/1.2.0 releases as there wasn't an announcement.-
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] New datasource implementation

2011-12-28 Thread Akos Vandra
Hi!

Yes, I have thought about it, but when I started writing the pcap
driver, I didn't know about socketcan, and this user-space driver was
already mostly ready (had to be ported a wee bit from c++), as I have
used an own program to display the can frames before.

Problem is, I'm not sure I have the courage to start kernel driver
development :) and I had a hard time finding information on how a
socketcan driver should behave on the net with a few google searches.

Another approach would be to rewrite the interface on the
microcontroller itself, but again I have no idea what requests and
responses a usb-socketcan device should implement, and I am having
quite a hard time with the USB peripheral, because it is only scarcely
documented in the user manual.

So for now I think I'll stick with the libusb-based driver, and maybe
add more or less native support for socketcan later on. Also I'm not
sure if m$ windows supports socketcan?

Regards,
  Ákos


On 28 December 2011 12:23, Felix Obenhuber  wrote:
> Hi,
>
> On Sat, 2011-12-17 at 17:54 +0100, Akos Vandra wrote:
>> I have just written support for one of my CAN->USB adapter gadgets, so
>> that it would work with libpcap and thus with wireshark. I would love
>> to see support for my device as an option in future releases.
>
> Did you think about writing a SocketCAN driver for your device?
> PCAP already has support for SocketCAN. Furthermore the SocketCAN
> interface is very well established and comes with drivers for lots of
> CAN hardware.
>
> cheers,
>
> Felix
>
> -
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


[tcpdump-workers] libpcap++

2011-12-28 Thread CaoPeng
hi
I come frome china,and I'm so sorry for my poor english.


Could someone show me some example of libpcap++(not libpcap)??

I know libpcap++ is a C++ wapper of libpcap!
I can write program with libpcap,but I don't know how to write program with
libpcap++!
So, could you give me some simple example,for example,with the  class Pcap
,class PcapLive  and so on.

I reall need your help!
  A chinese university student!
Thanks
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] New datasource implementation

2011-12-28 Thread Felix Obenhuber
On Wed, 2011-12-28 at 16:58 +0200, Akos Vandra wrote:
> Yes, I have thought about it, but when I started writing the pcap
> driver, I didn't know about socketcan, and this user-space driver was
> already mostly ready (had to be ported a wee bit from c++), as I have
> used an own program to display the can frames before.
> 
> Problem is, I'm not sure I have the courage to start kernel driver
> development :) and I had a hard time finding information on how a
> socketcan driver should behave on the net with a few google searches.

There are drivers for USB CAN dongles for SocketCAN available. You can
take a look at:
http://svn.berlios.de/svnroot/repos/socketcan/trunk/kernel/2.6/drivers/net/can/usb/
http://www.peak-system.com/fileadmin/media/linux/index.htm

If you have questions - ask the helpful guys on the SocketCAN list.

> Also I'm not sure if m$ windows supports socketcan?

No.


Felix

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Wrote a little guide for people getting started.

2011-12-28 Thread Michael Richardson

> "Guy" == Guy Harris  writes:
Guy> On Dec 27, 2011, at 12:53 PM, Michael Richardson wrote:

>> I plan to let a 4.1.2 (perhaps a 4.2) out tomorrow.

Guy> Do you mean "4.1.2" or "4.2.1"?  4.2.0, and libpcap 1.2.0, are

Yes, I did mean 4.2.1.

-- 
]   He who is tired of Weird Al is tired of life!   |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON|net architect[
] m...@sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
   Kyoto Plus: watch the video 
   then sign the petition. 
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.