printpacket6.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#include "ipf.h"
/*
* This is meant to work without the IPv6 header files being present or
* the inet_ntop() library.
*/
void printpacket6(ip)
{
p = buf[6];
flow &= 0xfffff;
printf(" %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
if (plen >= 4)
if (p == IPPROTO_TCP || p == IPPROTO_UDP)
printf(" >");
addrs += 8;
printf(" %02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
if (plen >= 4)
if (p == IPPROTO_TCP || p == IPPROTO_UDP)
putchar('\n');
}