blob: 143ef9b8bb012fc5cc5cd13869bc3bad1d032d6c [file] [log] [blame] [raw]
#include "ipf.h"
void printtcpflags(tcpf, tcpfm)
u_32_t tcpf, tcpfm;
{
u_char *t;
char *s;
if (tcpf & ~TCPF_ALL) {
printf("0x%x", tcpf);
} else {
for (s = flagset, t = flags; *s; s++, t++) {
if (tcpf & *t)
(void)putchar(*s);
}
}
if (tcpfm) {
(void)putchar('/');
if (tcpfm & ~TCPF_ALL) {
printf("0x%x", tcpfm);
} else {
for (s = flagset, t = flags; *s; s++, t++)
if (tcpfm & *t)
(void)putchar(*s);
}
}
}