Skip to content

Instantly share code, notes, and snippets.

@rbgarga
Created December 30, 2013 21:10
Show Gist options
  • Save rbgarga/8188204 to your computer and use it in GitHub Desktop.
Save rbgarga/8188204 to your computer and use it in GitHub Desktop.
diff --git a/pfPorts/filterlog/files/print-tcp.c b/pfPorts/filterlog/files/print-tcp.c
index 720080c..03f4118 100644
--- a/pfPorts/filterlog/files/print-tcp.c
+++ b/pfPorts/filterlog/files/print-tcp.c
@@ -139,8 +139,8 @@ tcp_print(struct sbuf *sbuf, register const u_char *bp, register u_int length,
ip6 = NULL;
#endif /*INET6*/
ch = '\0';
- sport = ntohs(EXTRACT_16BITS(&tp->th_sport));
- dport = ntohs(EXTRACT_16BITS(&tp->th_dport));
+ sport = EXTRACT_16BITS(&tp->th_sport);
+ dport = EXTRACT_16BITS(&tp->th_dport);
sbuf_printf(sbuf, "%u,%u,%d", sport, dport, length - hlen);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment