From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Using tools with a network driver

Solution: Using tools with a network driver - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Solution: Using tools with a network driver

(upbeat music) - [Instructor] Alright, let's look at how I would solve these problems. So for the first one, using ethtool, determine a driver for the WiFi network interface. Number two, using ifconfig, count how many or see how many packets have been received. And then number three, using the kernel tracing, count the number of times your interrupt function was called, wait 10 seconds and do it again. So let's give this all a try. Well, let's see what interfaces we have. We can look at proc/net/dev. It's a little bit hard to read there, but you might see the wlp3s0, that's my WiFi interface. ethtool -i, we give that interface. And it says the driver is IWL WiFi. There you go. The second question is using ifconfig, show how many packets, one of your network interfaces has received. Well, I'm using my wired interface, so I'll look at that. So I'm going to go ifconfig, eno1, and then I'm going to grep for RX…

Contents