Re: [tcpdump-workers] Stopping DHCP request

2005-03-03 Thread aman Reddy
Dear John, I think you didn`t understand my question exactly. The thing is that I have written a porgram to capture packets for the interfaces attached to my laptop but with out having an IP address assiged to those interfaces from DHCP server. And one morething is that I don`t want to assig

[tcpdump-workers] Stopping DHCP request

2005-03-02 Thread aman Reddy
Dear All, Is there any common solution for stopping the dhcp request sent by dhcpcd daemon for all Linux operating systems. If anyone knows please update me. with regards, Aman. - Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Mo

[tcpdump-workers] difference between pcap_dispatch and pcap_loop

2005-01-28 Thread aman Reddy
Dear All, can anyone please tell me the difference between pcap_dispatch and pcap_loop. and one more thing In the following pcap_dispatch(pcap_session,3,packet_hdl,(u_char*)&t) the second argument specifies how many packets it has to capture. Please correct me if I am wrong. I am assumin

Re: [tcpdump-workers] DLT_LINUX_SLL

2004-12-13 Thread aman Reddy
Hi, Well I have gone through the man page. I didn`t get the clear point. U mean the length of the header is the sum of the lengths of the fields in the header. Then it should be 16 bytes(2,2,2,8,2) but when I captured the packet using ethereal it is showing me 6 in the link-layer address l

[tcpdump-workers] DLT_LINUX_SLL

2004-12-13 Thread aman Reddy
Hi all, I would like to know what is the length of the DLT_LINUX_SLL link layer header and please also explain to me the different fields in it. From the last 2 bytes field I can able to know which packet it has it`s payload. But how to know from where the packet is originated that the sour

Re: [tcpdump-workers] some problem in the source code

2004-12-09 Thread aman Reddy
Hi Peter, But one thing I didn`t understand is If I keep "any" as the first argument to the pcap_open_live() then it will capture packets coming from the devices like etho or eth1 which are ethernet type. U mean if I capture packet using eth0 interface then I will get ethernet link layer

Re: [tcpdump-workers] some problem in the source code

2004-12-09 Thread aman Reddy
Hi Robert, So nice of u for replying. As I am novice to this field, please can u guide me where I can get the information related to write extra logic in my program to deal with each possible link layer. Please give me the starting step. with regards, Aman.

[tcpdump-workers] Books on pcap library

2004-12-09 Thread aman Reddy
Hi All, Does anyone know any books on pcap and implementation of each and every function in the library. please provide some free links avaiable in the internet for the tutorial in capturing packet using pcap library. Aman. - Do you Yahoo!?

Re: [tcpdump-workers] some problem in the source code

2004-12-09 Thread aman Reddy
hi, can u tell me where can i get the information for any device. providing links will be appreciated. Aman. - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.- This is the tcpdump-workers list. Visit https://lists.sandelman

Re: [tcpdump-workers] some problem in the source code

2004-12-09 Thread aman Reddy
Hi Robert Lowe, But when I assign either eth0 or eth1 is working fine , I am able to capture correct packets: But I fail to understand why I am getting corrupt packets if "any" or NULL is set (logic is I want to capture the packets from all of the interfaces). Please explain to me briefly wh

[tcpdump-workers] some problem in the source code

2004-12-09 Thread aman Reddy
Hi all, I have written a small program to capture 20 packets using pcap library. It is working fine if I captured packets from interface eth0 or eth1 by assigning either of these to variable "dev" used in the program below as the first parameter to pcap_open_live(). The output of the program