Discussion:
[Winpcap-users] pcap_setbuff function is not available in Linux
Ashok Gupta
2008-05-21 05:57:25 UTC
Permalink
Hi All,

I am building the application on linux using the libpcap api(libpcap-0.9.8.tar).

In this I want to set the kernel buffer for pcap driver, for this function pcap_setbuff is not available, but his same function is available in windows.
So how we can set the pcap driver packet queue kernel buffer in linux? Is their any way through which we can include the pcap_setbuff call, if not what is workaround?

pcap_findalldevs functions is not returning the correct Ip address of network card, it returns 2.0.0.0 IP, but NIC/card name its returning fine. So what changes I need to do so that this functions should return the correct IP, like my machine IP is 192.168.96.94.

Thanks in Advance

Regards
Ashok Gupta
Gianluca Varenni
2008-05-21 17:35:21 UTC
Permalink
----- Original Message -----
From: Ashok Gupta
To: winpcap-***@winpcap.org
Sent: Tuesday, May 20, 2008 10:57 PM
Subject: [Winpcap-users] pcap_setbuff function is not available in Linux


Hi All,

I am building the application on linux using the libpcap api(libpcap-0.9.8.tar).

In this I want to set the kernel buffer for pcap driver, for this function pcap_setbuff is not available, but his same function is available in windows.
So how we can set the pcap driver packet queue kernel buffer in linux? Is their any way through which we can include the pcap_setbuff call, if not what is workaround?

pcap_findalldevs functions is not returning the correct Ip address of network card, it returns 2.0.0.0 IP, but NIC/card name its returning fine. So what changes I need to do so that this functions should return the correct IP, like my machine IP is 192.168.96.94.

On which OS are you encountering the wrong IP address problem? Windows or Linux?

Have a nice day
GV


Thanks in Advance

Regards
Ashok Gupta
Ashok Gupta
2008-05-22 04:22:58 UTC
Permalink
On Linux we are getting wrong IP address problem.
Thanks
Ashok

----- Original Message -----
From: Gianluca Varenni
To: winpcap-***@winpcap.org
Sent: Wednesday, May 21, 2008 11:05 PM
Subject: Re: [Winpcap-users] pcap_setbuff function is not available in Linux



----- Original Message -----
From: Ashok Gupta
To: winpcap-***@winpcap.org
Sent: Tuesday, May 20, 2008 10:57 PM
Subject: [Winpcap-users] pcap_setbuff function is not available in Linux


Hi All,

I am building the application on linux using the libpcap api(libpcap-0.9.8.tar).

In this I want to set the kernel buffer for pcap driver, for this function pcap_setbuff is not available, but his same function is available in windows.
So how we can set the pcap driver packet queue kernel buffer in linux? Is their any way through which we can include the pcap_setbuff call, if not what is workaround?

pcap_findalldevs functions is not returning the correct Ip address of network card, it returns 2.0.0.0 IP, but NIC/card name its returning fine. So what changes I need to do so that this functions should return the correct IP, like my machine IP is 192.168.96.94.

On which OS are you encountering the wrong IP address problem? Windows or Linux?

Have a nice day
GV


Thanks in Advance

Regards
Ashok Gupta


----------------------------------------------------------------------------


_______________________________________________
Winpcap-users mailing list
Winpcap-***@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
Gianluca Varenni
2008-05-23 23:13:50 UTC
Permalink
In this case I would post the question to the tcpdump-workers mailing list, www.tcpdump.org

Have a nice day
GV
----- Original Message -----
From: Ashok Gupta
To: winpcap-***@winpcap.org
Sent: Wednesday, May 21, 2008 9:22 PM
Subject: Re: [Winpcap-users] pcap_setbuff function is not available in Linux


On Linux we are getting wrong IP address problem.
Thanks
Ashok

----- Original Message -----
From: Gianluca Varenni
To: winpcap-***@winpcap.org
Sent: Wednesday, May 21, 2008 11:05 PM
Subject: Re: [Winpcap-users] pcap_setbuff function is not available in Linux



----- Original Message -----
From: Ashok Gupta
To: winpcap-***@winpcap.org
Sent: Tuesday, May 20, 2008 10:57 PM
Subject: [Winpcap-users] pcap_setbuff function is not available in Linux


Hi All,

I am building the application on linux using the libpcap api(libpcap-0.9.8.tar).

In this I want to set the kernel buffer for pcap driver, for this function pcap_setbuff is not available, but his same function is available in windows.
So how we can set the pcap driver packet queue kernel buffer in linux? Is their any way through which we can include the pcap_setbuff call, if not what is workaround?

pcap_findalldevs functions is not returning the correct Ip address of network card, it returns 2.0.0.0 IP, but NIC/card name its returning fine. So what changes I need to do so that this functions should return the correct IP, like my machine IP is 192.168.96.94.

On which OS are you encountering the wrong IP address problem? Windows or Linux?

Have a nice day
GV


Thanks in Advance

Regards
Ashok Gupta


--------------------------------------------------------------------------


_______________________________________________
Winpcap-users mailing list
Winpcap-***@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users



----------------------------------------------------------------------------


_______________________________________________
Winpcap-users mailing list
Winpcap-***@winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users

Loading...