Bug 75454

Summary: (no subject)
Product: Ports & Packages Reporter: Alexey Privalov <lucky>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Alexey Privalov 2004-12-24 06:10:25 UTC
	I'm using NETGRAPH_FEC feature to union my two NIC's into one virtual ethernet channel.

	There are my NIC's and it's options:

	fxp0: <Intel 82550 Pro/100 Ethernet> port 0xc000-0xc03f mem 0xff8a0000-0xff8bffff,0xff8fe000-0xff8fefff irq 3 at device 1.0 on pci1 miibus0: <MII bus> on fxp0
	fxp1: <Intel 82801BA (D865) Pro/100 VE Ethernet> port 0xbc00-0xbc3f mem 0xff8fd000-0xff8fdfff irq 7 at device 8.0 on pci1

	fxp0: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500
	fxp1: flags=9843<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> mtu 1500

	... and port channel options:
	fec0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

	
	my Net-snmp version is 5.1.2.

	when I try get informations about octets on each nic I got following results:

	IF-MIB::ifDescr.1 = STRING: fxp0
	IF-MIB::ifDescr.2 = STRING: fxp1
	IF-MIB::ifDescr.3 = STRING: lo0
	IF-MIB::ifDescr.4 = STRING: fec0
	<skiped>
	IF-MIB::ifSpeed.1 = Gauge32: 100000000
	IF-MIB::ifSpeed.2 = Gauge32: 100000000
	IF-MIB::ifSpeed.3 = Gauge32: 0
	IF-MIB::ifSpeed.4 = Gauge32: 100000000
	<skiped>
	IF-MIB::ifOperStatus.1 = INTEGER: up(1)
	IF-MIB::ifOperStatus.2 = INTEGER: up(1)
	IF-MIB::ifOperStatus.3 = INTEGER: up(1)
	IF-MIB::ifOperStatus.4 = INTEGER: up(1)
	<skiped>
	IF-MIB::ifInOctets.1 = Counter32: 0
	IF-MIB::ifInOctets.2 = Counter32: 0
	IF-MIB::ifInOctets.3 = Counter32: 3726
	IF-MIB::ifInOctets.4 = Counter32: 2856349297
	<skiped>
	IF-MIB::ifOutOctets.1 = Counter32: 3191994550
	IF-MIB::ifOutOctets.2 = Counter32: 1929810955
	IF-MIB::ifOutOctets.3 = Counter32: 3726
	IF-MIB::ifOutOctets.4 = Counter32: 826854669


	Hence three questions:
	1. why is `ifSpeed.4' field equal to 100000000? 
	2. why is `ifInOctets.[12]' fields equal to zero and `ifOutOctets.[12]' not equal to zero?
	3. why is ifOutOctets.1 + ifOutOctets.2 not equal to ifOutOctets.4 field?


	PS: in `netstat -i' everything is ok:

	Name    Mtu Network       Address              Ipkts  Ierrs     Opkts 	      Oerrs  Coll
	fxp0   1500 <Link#1>      00:0e:0c:64:8f:c8 103282520 0 	210243280     0      6826
	fxp1   1500 <Link#2>      00:0e:0c:64:8f:c8 55974393  0 	116545274     0      3028
	fec0   1500 <Link#4>      00:0e:0c:64:8f:c8 159264732 40 	326812517     0      0
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-12-24 06:15:38 UTC
State Changed
From-To: open->closed

Please help us out by asking support questions on the freebsd-ports 
mailing list rather than filing them as PRs.  Thanks. 


Comment 2 Mark Linimon freebsd_committer freebsd_triage 2004-12-24 06:15:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->linimon