Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171609660
D59016.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
463 B
Referenced Files
None
Subscribers
None
D59016.diff
View Options
diff --git a/tests/sys/netpfil/common/divapp.c b/tests/sys/netpfil/common/divapp.c
--- a/tests/sys/netpfil/common/divapp.c
+++ b/tests/sys/netpfil/common/divapp.c
@@ -135,12 +135,10 @@
if (c.divert_back)
send_pkt(&c);
npkt++;
- if (npkt >= 20)
- break;
}
- if (npkt != 1)
- errx(EXIT_FAILURE, "%d: npkt=%d.", c.divert_port, npkt);
+ if (npkt == 0)
+ errx(EXIT_FAILURE, "%d: no packets received.", c.divert_port);
return (EXIT_SUCCESS);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 3:36 AM (16 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37010344
Default Alt Text
D59016.diff (463 B)
Attached To
Mode
D59016: tests/pf: Make divapp more general
Attached
Detach File
Event Timeline
Log In to Comment