beautypg.com

AAEON FWS-7600 User Manual

Page 67

background image

N e t w o r k Ap p l i a n c e

F W S - 7 6 0 0

Appendix C Standard Firewall Platform Setting

C-6

C.3 LAN Bypass Mode Sample Code

LAN BYPASS MODE Sample code

[Disable Function]

mov dx,48dh

;( IO_PORT = 48dh)

in al,dx

or al,01000000b ;set bit 7-->high

out

dx,al

mov dx,48Fh

;( IO_PORT = 48Fh)

in al,dx

and al,11111011b ;set bit 2-->low

out

dx,al

[Force Mode]

mov dx,48dh

;( IO_PORT = 48dh)

in al,dx

and al,10111111b ;set bit 7-->low

out

dx,al

mov dx,48Fh

;( IO_PORT = 48Fh)

in al,dx

and al,11111011b ;set bit 2-->low

out

dx,al