Re: RX on aliased interfaces :)

Pawel S. Veselov (vps@unicorn.niimm.spb.su)
Wed, 11 Feb 1998 13:53:27 +0300 (MSK)


Hello, Jon!

On Tue, 10 Feb 1998, Jon Lewis wrote:

>> eth0:0 Link encap:10Mbps Ethernet HWaddr 00:80:48:EE:60:19
>> RX packets:0 errors:0 dropped:0 overruns:0
>> eth0:1 Link encap:10Mbps Ethernet HWaddr 00:80:48:EE:60:19
>> RX packets:1 errors:0 dropped:0 overruns:0
>It's a bug in ifconfig. Ifconfig is not interpreting /proc/net/dev
>properly...and it should be obvious when looking at the format why this
>happens.

Yep. I always believed aliased interfaces got no traffic on them ...

># cat /proc/net/dev
>Inter-| Receive | Transmit
> face |packets errs drop fifo frame|packets errs drop fifo colls carrier
> lo:12919315 0 0 0 0 12919315 0 0 0 0 0
> eth0:88574601 0 0 0 0 81180254 0 0 0 928764 0
>eth0:0: 240854 0 0 0 0 0 0 0 0 0 0
>eth0:1: 21234 0 0 0 0 0 0 0 0 0 0
>eth0:2: 2503 0 0 0 0 0 0 0 0 0 0

Yep. Now it's clean... Alpha release proved it's alpha :)

>- bp=strchr(bp,':');
>+/* bp=strchr(bp,':'); */
>+ bp=strrchr(bp,':');

Thanx. Now my ifconfig show _real_ things :)

Bye.

--
Keep cool, but don't freeze.
		-- Hellman's Mayonnaise

--
    With best of best regards, Pawel S. Veselov (aka Black Angel)
       internet : vps@unicorn.niimm.spb.su ( mail,finger,talk )
                 Web page : http://www.niimm.spb.su/~vps/
			    ICQ : 5252265

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu