View | Details | Raw Unified | Return to bug 19603
Collapse All | Expand All

(-)bridge.h (-1 / +1 lines)
Lines 92-98 Link Here
92
} ;
92
} ;
93
93
94
struct bdg_stats {
94
struct bdg_stats {
95
    struct bdg_port_stat s[16];
95
    struct bdg_port_stat s[BDG_MAX_PORTS];
96
} ;
96
} ;
97
97
98
98
(-)bridge.c (+3 lines)
Lines 440-445 Link Here
440
    eth_addr = bdg_addresses ;
440
    eth_addr = bdg_addresses ;
441
441
442
    printf("BRIDGE 990810, have %d interfaces\n", if_index);
442
    printf("BRIDGE 990810, have %d interfaces\n", if_index);
443
    if(if_index > BDG_MAX_PORTS)
444
        panic("bdginit: too many ports, raise BDG_MAX_PORTS");
445
    
443
    for (i = 0 , ifp = ifnet.tqh_first ; i < if_index ;
446
    for (i = 0 , ifp = ifnet.tqh_first ; i < if_index ;
444
		i++, ifp = ifp->if_link.tqe_next)
447
		i++, ifp = ifp->if_link.tqe_next)
445
	if (ifp->if_type == IFT_ETHER) { /* ethernet ? */
448
	if (ifp->if_type == IFT_ETHER) { /* ethernet ? */

Return to bug 19603