# Hardware specific BUN configuration runes

#
# Create Classes
#
class : Gateway = PortClassGateway
class : ExposedToVvb = PortClassExposedToVvb


#
# Create Devices
#
device : atm_transport = gdp
device : atm_phy = turbo
device : atm = meter,classifier,scheduler, chameleon, pppoe, rfc1483, atm_phy, atm_transport
device : e1 = tx_meter , meter,classifier,scheduler, chameleon, pppoe, packetfilter, icplus, ethernet
device : w1 = tx_meter , meter,classifier,scheduler, chameleon, rt61ap
device : wds1 = chameleon, rt61ap_wds
device : wds2 = chameleon, rt61ap_wds2
device : wds3 = chameleon, rt61ap_wds3
device : wds4 = chameleon, rt61ap_wds4
#!device : usb_device = chameleon, usb
#!device : pc_fake_ether_device = assignmac, chameleon, emu, babel
#!device : gw_fake_ether_device = assignmac, chameleon, emu, babel

#
# Create Ports
#
port : ciao = ciao/GdpPortmode=2
port : ethernet  = e1/VLAN=disabled/FullDuplexEnable=true/NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : ethernet1 = e1/VLAN=disabled/FullDuplexEnable=true/NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : ethernet2 = e1/VLAN=disabled/FullDuplexEnable=true/NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : ethernet3 = e1/VLAN=disabled/FullDuplexEnable=true/NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : a1 = atm/DyingGasp=Enable/PhysicalPort=0/PortSpeed=59111/NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Outside=true>
port : wireless  = w1 /NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : wireless_wds = wds1 /NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : wireless_wds2 = wds2 /NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : wireless_wds3 = wds3 /NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>
port : wireless_wds4 = wds4 /NewAttribute=<bool:VMI=true> /NewAttribute=<bool:Inside=true>

# USB port
#!port : usb = usb_device/Device=0/TraceTxMonitorSize=8/TraceRxMonitorSize=8/NewAttribute=<S32:StatusLedConnAct=5>
#!port : join = join
#!port : usb-ethernet = gw_fake_ether_device / BackingGroup = "link" / NewAttribute = <bool:inside=true>/NewAttribute = <string:icon=usb-slave> /MapPort=usb/MapPortConnected=connected /NewAttribute=<bool:VMI=true> / ClaimSpecificMAC=3
#!port : pc-ethernet = pc_fake_ether_device / BackingGroup = "link" / RxMulticastAllEnable=FALSE / ClaimSpecificMAC=4
#!port : usbctrl = usbctrl/MaxProtocols=2 
#!port : rndis = RNDIS/ControlInterface=<port=usbctrl>/NetworkInterface=pc-ethernet/DataInterface="port=join/RxInterface=<port=usb/EndPoint=2>/TxInterface=<port=usb/EndPoint=3>"/InterruptInterface=usb 
#!port : cdc_ether = CDC_ETHER/NetworkInterface=pc-ethernet/ControlInterface=<port=usbctrl>/DataInterface="port=join/RxInterface=<port=usb/EndPoint=2>/TxInterface=<port=usb/EndPoint=3>"/InterruptInterface=usb 

# The pi & qi devices, and the p1 & q1 ports enable support for 
# multiple PPPoE sessions over a single transport (e.g. an RFC1483 VC)
device : pi = meter,classifier,scheduler,chameleon, debug, pppoe, pppoe-mux
device : qi = qInterface

port : q1 = qi/interface=<//bridge/TYPE=PPPOE>
port : pppoe = pi/interface=<port=q1>/NewAttribute=<bool:Outside=true>

# Create a class to mark ports that should be managed by 802.1x
class : 802_1x = PortClass802_1x
		
# Create a port for receiving EAPOL traffic from the 802.11b driver to the
# 802.1x protocol stack. The MAC address offset of -20 picks up IEEE802.11 address2 (STA Mac)
device : dot1x_f1 = chameleon, filtermac, filter
# device : dot1x_f1 = classifier,scheduler,chameleon,filtermac, filter
		
# 802.1x setup (inactive if 802.1x not in build)
port : wlan_filtered = dot1x_f1/interface=<802_11:0>/NewAttribute=<bool:inside=true>/NewAttribute=<bool:VMI=true>/DefaultFilterMulticastOnly=false/DefaultAlwaysAllowMulticast=false/DefaultAlwaysAllowBroadcast=false/DefaultMacAddrOffset=6/NewAttribute=<bool:PortClass802_1x=true>

# BUN VoIP configuration
device : voice_device = voip, chameleon
port : voipfxs0 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=0/portType=fxs
port : voipfxs1 = voice_device/NewAttribute=<bool:VMI=true>/dspId=0/dspPortId=1/portType=fxs
port : voipcmdstat = voice_device/NewAttribute=<bool:VMI=true>/portType=cmdstat/pool=control
port : slic = slic/pool=control

