Added error message for MAC address in rule destination

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@361 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-12-10 22:48:04 +00:00
parent 3ce524d2d8
commit faa859e84a
2 changed files with 7 additions and 1 deletions

View File

@ -28,4 +28,7 @@ Changes since 1.3.11
13. Added "shorewall show classifiers" command and added packet 13. Added "shorewall show classifiers" command and added packet
classification filter display to "shorewall monitor" classification filter display to "shorewall monitor"
14. Added an error message when the destination in a rule contained a
MAC address.

View File

@ -708,7 +708,7 @@ validate_rule() {
serv=$server serv=$server
;; ;;
~*) ~*)
fatal_error "Error: Rule \"$rule\" - Server may not be specified by MAC Address" startup_error "Error: Rule \"$rule\" - Destination may not be specified by MAC Address"
;; ;;
*) *)
dest_interface="-o $server" dest_interface="-o $server"
@ -2027,6 +2027,9 @@ add_a_rule()
*.*.*) *.*.*)
serv=$server serv=$server
;; ;;
~*)
fatal_error "Error: Rule \"$rule\" - Destination may not be specified by MAC Address"
;;
*) *)
dest_interface="-o $server" dest_interface="-o $server"
serv= serv=