Re: [tcpdump-workers] Request for DLT value for Raw LAPD

2007-10-20 Thread Varuna De Silva
Hello, On 10/20/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > > On Oct 18, 2007, at 9:32 PM, Varuna De Silva wrote: > > > Hello, > > > > We are trying to decode raw LAPD messages tapped from a > > E1 line, with wireshark. > > So you're getti

[tcpdump-workers] Request for DLT value for Raw LAPD

2007-10-18 Thread Varuna De Silva
Hello, We are trying to decode raw LAPD messages tapped from a E1 line, with wireshark. We would be very thankful to you if you could provide us with a new DLT value for this purpose. Thank you Varuna De Silva - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.

[tcpdump-workers] Problems With Newly compiled Winpcap/Libpcap

2007-10-08 Thread Varuna De Silva
Hello, We have had several problems when trying to integrate our device with wireshark on windows. The following are the changes we made to the source tree of Libpcap We have done the following changes to fad-win32 int pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf) { if (ret != -1) {

Re: [tcpdump-workers] Questions about pcap_read() function

2007-10-01 Thread Varuna De Silva
Hello On 9/30/07, Guy Harris <[EMAIL PROTECTED]> wrote: > Varuna De Silva wrote: > > > And when we use this FT_Read(), we wait and read in 3968 bytes at a time > > So, presumably, if the device has more than 3968 bytes available, only the > first 3968 bytes are read?

Re: [tcpdump-workers] Questions about pcap_read() function

2007-09-29 Thread Varuna De Silva
Hello, Thank you very much for the detailed reply, With your insights, let me refine my questions as below. > > Next we have to remove the frame delimiters(HDLC), to get raw SS7 > > messages. > > ( We had to do it at software level at least for now) > > Is that done in your driver, or in your lib

Re: [tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-27 Thread Varuna De Silva
On 9/26/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > > On Sep 25, 2007, at 4:33 AM, Varuna De Silva wrote: > > > 1. How should I work around so that pcap_findalldevs() will add my > > device in > > the list? > Then add a routine to your pcap-xxx.c that,

[tcpdump-workers] Questions about pcap_read() function

2007-09-26 Thread Varuna De Silva
Hello, I Posted this on monday, another one I posted cant be seen on forum, but I received the answer from the forum. So I thought of resending this as well I am trying to add support for my device in libpcap(/winpcap) and I have some doubts regarding the xxx_read() function in the pcap-xxx.c file

[tcpdump-workers] Questions about pcap_read() function

2007-09-25 Thread Varuna De Silva
Hello, I am trying to add support for my device in libpcap(/winpcap) and I have some doubts regarding the xxx_read() function in the pcap-xxx.c file. This function is there for the packets to be read in, as I understand. For a previous reply I got the following. > .. routine that

[tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-25 Thread Varuna De Silva
Hello, I want to get the name of my device in capture->interfaces > As long as you've modified libpcap/WinPcap so that pcap_findalldevs() adds your device to the list of available > devices, it should be displayed in Capture -> Interfaces and in the drop-down list in Capture -> Options. I also

Re: [tcpdump-workers] What is meant by the callback function

2007-09-24 Thread Varuna De Silva
On 9/23/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > Varuna De Silva wrote: > > Yes, the callback function is in the higher-layer software that uses > libpcap/WinPcap. tcpdump, for example, has two callback functions that > write raw packet data to a capture file and on

Re: [tcpdump-workers] Compilation Error - C2894: templates cannot be declared to have 'C' linkage

2007-09-24 Thread Varuna De Silva
Xavier On 9/21/07, Guy Harris < [EMAIL PROTECTED]> wrote: On Sep 19, 2007, at 11:49 PM, Varuna De Silva wrote: > I tried to compile a program which includes pcap-int.h, Why is the program including an internal libpcap file that's *NOT* part of the official libpcap/WinPcap interface?

Re: [tcpdump-workers] What is meant by the callback function

2007-09-23 Thread Varuna De Silva
On 9/23/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > Varuna De Silva wrote: > > > 1. what is really meant by the callback routine, what does it do? How > > should I write this function?where should this be written. please be > kind > > to guide me to start

[tcpdump-workers] What is meant by the callback function

2007-09-22 Thread Varuna De Silva
Hi all, With regard to one of my earlier messages, I got a comprehensive reply by Guy. and it says in one point regarding the _read() function on pcap-.cfile as below, " read_op should point to a routine that takes, as an argument, a pointer to a pcap_t, a count, a pointer to a callback

[tcpdump-workers] Compilation Error - C2894: templates cannot be declared to have 'C' linkage

2007-09-19 Thread Varuna De Silva
Hi all, I tried to compile a program which includes pcap-int.h, in Visual Studio 2005. and then I get this above error message. As was proposed in a program. This happens because #ifdef __cplusplus extern "*C*" { #endif ... #include ... #ifdef __cplusplus } #endif I tried moving the #include

[tcpdump-workers] Reading Memory as a Device

2007-09-04 Thread Varuna De Silva
Hi, We as a project try to build an SS7 analyzer which will port data through the USB bus. For this purpose, We have used an USB IC from FTDI which do this job with their custom driver. What the driver does is, it will write the data in to the memory. Now we want to read this raw data and convert