From da30c9110a3480585ba2d303de13547e20119696 Mon Sep 17 00:00:00 2001 From: angt Date: Sat, 12 Dec 2015 13:30:27 +0100 Subject: [PATCH] Do not ask too much to macosx --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 609925b..adc7b39 100644 --- a/src/main.c +++ b/src/main.c @@ -514,7 +514,7 @@ static void gt_print_hdr (uint8_t *data, size_t ip_size, const char *sockname) if (ip_hdr_size<=0) return; - if (ip_proto==SOL_TCP) { + if (ip_proto==6) { struct tcphdr tcp; byte_cpy(&tcp, &data[ip_hdr_size], sizeof(tcp)); @@ -535,7 +535,7 @@ static void gt_print_hdr (uint8_t *data, size_t ip_size, const char *sockname) (tcp.th_flags&TH_URG) ?'U':'.'); } - if (ip_proto==SOL_UDP) { + if (ip_proto==17) { struct udphdr udp; byte_cpy(&udp, &data[ip_hdr_size], sizeof(udp));