From ab1e6066eb1cb3a3d7e2304883cc1f430c4c5594 Mon Sep 17 00:00:00 2001 From: Marta Carbone Date: Thu, 19 Nov 2009 12:23:53 +0000 Subject: [PATCH] Added the type of configuration in the ipfw rule comment field. --- exec/ipfw-be | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exec/ipfw-be b/exec/ipfw-be index 834b460..22b02db 100755 --- a/exec/ipfw-be +++ b/exec/ipfw-be @@ -182,8 +182,8 @@ add_rule() { # new_rule slice_id type arg rule pipe_base timeout ;; esac - rule_in="pipe ${pipe_in} in uid $slice_id ${rule_in}" - rule_out="pipe ${pipe_out} out uid $slice_id ${rule_out}" + rule_in="pipe ${pipe_in} in uid $slice_id ${rule_in} // $type $arg" + rule_out="pipe ${pipe_out} out uid $slice_id ${rule_out} // $type $arg" ${IPFW_CHECK} add ${rule_nr} $rule_in > /dev/null || \ abort "ipfw syntax error $rule_in" ${IPFW_CHECK} add ${rule_nr} $rule_out > /dev/null || \ @@ -235,7 +235,7 @@ do_delete() { # slice_id type arg $IPFW delete ${rule_nr} $IPFW pipe delete ${pipe_in} $IPFW pipe delete ${pipe_out} - echo "removed configuration $slice_id} ${type} ${arg}" + echo "removed configuration ${slice_id} ${type} ${arg}" [ "$TEST" = "1" ] && return # remove from the database grep -v -- "^${slice_id} ${type} ${arg} " $DBFILE > ${DBFILE}.tmp -- 2.43.0