]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-gre.c
Add CONTRIBUTING file
[tcpdump] / print-gre.c
index ec2095561a2867af29b86018bb71c6a44ba3a14c..89cbe076c44c35f997b6187b725150dbb0027730 100644 (file)
@@ -32,7 +32,7 @@
  */
 
 /*
- * tcpdump filter for GRE - Generic Routing Encapsulation
+ * netdissect printer for GRE - Generic Routing Encapsulation
  * RFC1701 (GRE), RFC1702 (GRE IPv4), and RFC2637 (Enhanced GRE)
  */
 
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 #include "ethertype.h"
 
@@ -314,15 +314,15 @@ gre_sre_print(netdissect_options *ndo, uint16_t af, uint8_t sreoff,
        case GRESRE_IP:
                ND_PRINT((ndo, ", (rtaf=ip"));
                gre_sre_ip_print(ndo, sreoff, srelen, bp, len);
-               ND_PRINT((ndo, ") "));
+               ND_PRINT((ndo, ")"));
                break;
        case GRESRE_ASN:
                ND_PRINT((ndo, ", (rtaf=asn"));
                gre_sre_asn_print(ndo, sreoff, srelen, bp, len);
-               ND_PRINT((ndo, ") "));
+               ND_PRINT((ndo, ")"));
                break;
        default:
-               ND_PRINT((ndo, ", (rtaf=0x%x) ", af));
+               ND_PRINT((ndo, ", (rtaf=0x%x)", af));
        }
 }