Re: Getting NIC statistics using Ethtool.

2008-11-25 Thread Paraneetharan Chandrasekaran
Hi, Thank you. But my intention is getting statistics in user space through ethtool. The ethtool_interfaces like get_ethtool_stats, get_drvinfo etc are in kernel space. If call the Ioctl with ETHTOOL_GSTATS, I dont know how to parse the returned data. What is the format of the returned

Not able to ping two ethernet interfaces connected using cross cable in same PC.

2008-11-25 Thread Bhavesh Kamani
Hi Team, I want to test ethernet driver for NIC, I have only one PC with two different NICs(for both drivers are different), So I disabled loopback and connected both the NICs using cross cable. Output of ifconfig is displaying both the interfaces and ip address is also set for both the

Re: Not able to ping two ethernet interfaces connected using cross cable in same PC.

2008-11-25 Thread Anuz Pratap Singh Tomar
I guess after -net option you should specify network address something like -net 192.168.0.0 and if you want to further divide this network something like 192.168.0.x and 192.168.0.y, you need to change the netmask 255.255.255.x, depending upon how you divide your network. By the way, when both

Re: Not able to ping two ethernet interfaces connected using cross cable in same PC.

2008-11-25 Thread dinesh bansal
On Tue, Nov 25, 2008 at 3:19 PM, Bhavesh Kamani [EMAIL PROTECTED]wrote: Hi Team, I want to test ethernet driver for NIC, I have only one PC with two different NICs(for both drivers are different), So I disabled loopback and connected both the NICs using cross cable. Output of ifconfig is

RE: Not able to ping two ethernet interfaces connected using cross cable in same PC.

2008-11-25 Thread Madhukar.Mythri
On Tue, Nov 25, 2008 at 3:19 PM, Bhavesh Kamani [EMAIL PROTECTED] wrote: Hi Team, I want to test ethernet driver for NIC, I have only one PC with two different NICs(for both drivers are different), So I disabled loopback and connected both the NICs using cross cable.

Re: how to change the permission of /dev/ node from kernel mode.

2008-11-25 Thread Greg KH
On Tue, Nov 25, 2008 at 01:26:31PM +0530, Mohamed Thalib .H wrote: But i am using a kernel api to create a node then why cant i specify the mode for. You are, what api are you using? (hint, you really aren't, you are telling userspace that if it wants to, it could create a device node for

Re: Getting NIC statistics using Ethtool.

2008-11-25 Thread Pranav Sawargaonkar
On Tue, Nov 25, 2008 at 2:17 PM, Paraneetharan Chandrasekaran [EMAIL PROTECTED] wrote: Hi, Thank you. But my intention is getting statistics in user space through ethtool. The ethtool_interfaces like get_ethtool_stats, get_drvinfo etc are in kernel space. If call the Ioctl with