Created
December 30, 2013 21:10
-
-
Save rbgarga/8188204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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