From b5ac09cb2a627f33cdd269612f43ed748f8579d2 Mon Sep 17 00:00:00 2001 From: Florian Obser Date: Sat, 14 Jan 2017 17:32:17 +0000 Subject: It's not longer a syntax error to provide a flowdst without a port number. Drop argument altogether to provoke a syntax error. --- regress/sys/net/pflow/ifconfig.ok | 2 +- regress/sys/net/pflow/ifconfig.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'regress/sys') diff --git a/regress/sys/net/pflow/ifconfig.ok b/regress/sys/net/pflow/ifconfig.ok index 2d39a201e21..4922cf7e28b 100644 --- a/regress/sys/net/pflow/ifconfig.ok +++ b/regress/sys/net/pflow/ifconfig.ok @@ -3,7 +3,7 @@ pflow0: flags=1 mtu 1492 pflow: receiver: INVALID:INVALID version: 5 groups: pflow #### flowdst syntax error -ifconfig: 127.0.0.1 bad value +ifconfig: 'flowdst' requires argument pflow0: flags=1 mtu 1492 pflow: receiver: INVALID:INVALID version: 5 groups: pflow diff --git a/regress/sys/net/pflow/ifconfig.sh b/regress/sys/net/pflow/ifconfig.sh index b844e66a381..14660ab6b6e 100644 --- a/regress/sys/net/pflow/ifconfig.sh +++ b/regress/sys/net/pflow/ifconfig.sh @@ -3,7 +3,7 @@ echo '#### up' ifconfig pflow0 up; ifconfig pflow0 | grep -v '^[[:space:]]index' echo '#### flowdst syntax error' -ifconfig pflow0 flowdst 127.0.0.1; ifconfig pflow0 | grep -v '^[[:space:]]index' +ifconfig pflow0 flowdst; ifconfig pflow0 | grep -v '^[[:space:]]index' echo '#### invalid flowdst port' ifconfig pflow0 flowdst 127.0.0.1:0; ifconfig pflow0 | grep -v \ '^[[:space:]]index' -- cgit v1.2.3