aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipf/ipsend/resend.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipf/ipsend/resend.c')
-rw-r--r--sbin/ipf/ipsend/resend.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sbin/ipf/ipsend/resend.c b/sbin/ipf/ipsend/resend.c
index 484709e89c53..a306edddff19 100644
--- a/sbin/ipf/ipsend/resend.c
+++ b/sbin/ipf/ipsend/resend.c
@@ -5,10 +5,6 @@
* See the IPFILTER.LICENCE file for details on licencing.
*
*/
-#if !defined(lint)
-static const char sccsid[] = "@(#)resend.c 1.3 1/11/96 (C)1995 Darren Reed";
-static const char rcsid[] = "@(#)$Id$";
-#endif
#include <sys/param.h>
#include <sys/types.h>
#include <sys/time.h>
@@ -54,9 +50,9 @@ dumppacket(ip_t *ip)
if (ip->ip_p == IPPROTO_TCP) {
printf(" seq %lu:%lu flags ",
(u_long)t->th_seq, (u_long)t->th_ack);
- for (j = 0, i = 1; i < 256; i *= 2, j++)
- if (t->th_flags & i)
- printf("%c", "FSRPAU--"[j]);
+ for (j = 0, i = 1; i < TH_FLAGS; i <<= 1, j++)
+ if (__tcp_get_flags(t) & i)
+ printf("%c", "FSRPAUEWe"[j]);
}
putchar('\n');
}