Menu

#1066 adding support for bge interface

1.080
closed
5
2003-04-07
2003-04-06
Anonymous
No

The broadcom driver for FREEBSD has been available
since FBSD 4.7.

Attached is a patch for webmin webmin-1.080
webmin fails to recognize this diver since there is a
static list of interface names it understands as valid
ethernet drivers (maybe there could be a better way?
look for the media: Ethernet tag see ifconfig -a below)

this patch will fix it (and adds the interface type
GigEthernet, not that I can tell it matters.)

FYI, the fxp interface could be either ethernet, fast
ethernet or GigE, so I don't know why there is any
diferentiation here. (any questions, email
scheidell@secnap.net)

in the /usr/local/lib/webmin/net directory.

--- freebsd-lib.pl.orig Sat Apr 5 06:49:27 2003
+++ freebsd-lib.pl Sun Apr 6 18:57:47 2003
@@ -225,6 +225,7 @@
$_[0] =~ /^ppp/ ? "PPP" :
$_[0] =~ /^lo/ ? "Loopback" :
$_[0] =~ /^ar/ ? "Arnet" :
+ $_[0] =~ /^bge/ ? "GigEthernet" :
$_[0] =~ /^(ax|mx|pn|rl|tx|wb)/ ? "Fast
ethernet" :
$_[0] =~ /^
(cs|dc|de|ed|el|ex|fe|fxp|ie|le|lnc|tl|vr|vx|xl|ze|z
p)/ ? "Ethernet" : $text{'ifcs_unknown'};
}

---------ifconfig -a
ifconfig -a
bge0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MUL
TICAST> mtu 1500
inet 10.70.1.4 netmask 0xffff0000 broadcast
10.70.255.255
ether 00:02:55:fa:d1:fd
media: Ethernet autoselect (100baseTX <full-
duplex>)
status: active
bge1:
flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIM
PLEX,MULTICAST> mtu 1500
ether 00:02:55:fa:d1:fe
media: Ethernet autoselect (100baseTX)
status: active
lo0:
flags=8049<UP,LOOPBACK,RUNNING,MULTICAST>
mtu 16384
inet 127.0.0.1 netmask 0xff000000

Discussion

  • Jamie Cameron

    Jamie Cameron - 2003-04-07
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2003-04-07

    Logged In: YES
    user_id=129364

    Thanks for the patch - I will include it in the next
    release. As far as the module is concerned, there is no
    difference between fast, gigabit and normal ethernet.
    However, it does need to identify ethernet interfaces so
    that it knows that they can be edited, unlike ppp ones which
    are configured quite differently. Because an interface may
    not be active, the only way to tell what type it is is to
    look at the name ..

     

Log in to post a comment.