diff options
Diffstat (limited to 'regress/sys/netinet6/nd6/nd6_dad.py')
-rw-r--r-- | regress/sys/netinet6/nd6/nd6_dad.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/sys/netinet6/nd6/nd6_dad.py b/regress/sys/netinet6/nd6/nd6_dad.py index d9fe8d1fd33..2ddf46d3027 100644 --- a/regress/sys/netinet6/nd6/nd6_dad.py +++ b/regress/sys/netinet6/nd6/nd6_dad.py @@ -1,8 +1,8 @@ -#!/usr/local/bin/python2.7 +#!/usr/local/bin/python3 # send Duplicate Address Detection neighbor solicitation # expect an neighbor advertisement answer and check it -print "send duplicate address detection neighbor solicitation packet" +print("send duplicate address detection neighbor solicitation packet") import os from addr import * @@ -41,10 +41,10 @@ for a in ans: ipv6nh[a.payload.nh] == 'ICMPv6' and \ icmp6types[a.payload.payload.type] == 'Neighbor Advertisement': tgt=a.payload.payload.tgt - print "target=%s" % (tgt) + print("target=%s" % (tgt)) if tgt == REMOTE_ADDR6: exit(0) - print "TARGET!=%s" % (REMOTE_ADDR6) + print("TARGET!=%s" % (REMOTE_ADDR6)) exit(1) -print "NO NEIGHBOR ADVERTISEMENT" +print("NO NEIGHBOR ADVERTISEMENT") exit(2) |