Slight improvement to previous checkin.

This commit is contained in:
Archie Cobbs 2001-02-19 04:06:30 +00:00
parent 78c8722845
commit 30f6482c54

View File

@ -145,6 +145,7 @@ control message, as demonstrated here:
#!/bin/sh
PATTERN="tcp dst port 80"
NODEPATH="my_node:"
INHOOK="hook1"
MATCHHOOK="hook2"
NOTMATCHHOOK="hook3"
@ -165,7 +166,7 @@ xxENDxx
BPFPROG=`tcpdump -ddd ${PATTERN} | awk -f /tmp/bpf.awk`
ngctl msg my_node: setprogram { thisHook=\\"${INHOOK}\\" \\
ngctl msg ${NODEPATH} setprogram { thisHook=\\"${INHOOK}\\" \\
ifMatch=\\"${MATCHHOOK}\\" \\
ifNotMatch=\\"${NOTMATCHHOOK}\\" \\
${BPFPROG} } }