]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-udp.c
Remove unneeded #includes
[tcpdump] / print-udp.c
index 58b7a52c23e04b1f22a770f13e916a045614467d..c9bb189b5014af978654bf42128edf3c8a818bb1 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.91 2001-01-29 09:18:50 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.93 2001-03-17 04:41:51 itojun Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -396,8 +396,8 @@ static int udp6_cksum(const struct ip6_hdr *ip6, const struct udphdr *up,
 #define RIP_PORT 520           /*XXX*/
 #define KERBEROS_SEC_PORT 750  /*XXX*/
 #define L2TP_PORT 1701         /*XXX*/
-#define ISAKMP_PORT_USER1 7500 /*??? - nonstandard*/
-#define ISAKMP_PORT_USER2 8500 /*??? - nonstandard*/
+#define ISAKMP_PORT_USER1 7500 /*XXX - nonstandard*/
+#define ISAKMP_PORT_USER2 8500 /*XXX - nonstandard*/
 #define RX_PORT_LOW 7000       /*XXX*/
 #define RX_PORT_HIGH 7009      /*XXX*/
 #define NETBIOS_NS_PORT   137
@@ -606,13 +606,13 @@ udp_print(register const u_char *bp, u_int length,
        if (IP_V(ip) == 4 && vflag && !fragmented) {
                int sum = up->uh_sum;
                if (sum == 0) {
-                       (void)printf(" [no cksum]");
+                       (void)printf("[no cksum] ");
                } else if (TTEST2(cp[0], length)) {
                        sum = udp_cksum(ip, up, length);
                        if (sum != 0)
-                               (void)printf(" [bad udp cksum %x!]", sum);
+                               (void)printf("[bad udp cksum %x!] ", sum);
                        else
-                               (void)printf(" [udp sum ok]");
+                               (void)printf("[udp sum ok] ");
                }
        }
 #ifdef INET6
@@ -622,9 +622,9 @@ udp_print(register const u_char *bp, u_int length,
                if (TTEST2(cp[0], length)) {
                        sum = udp6_cksum(ip6, up, length);
                        if (sum != 0)
-                               (void)printf(" [bad udp cksum %x!]", sum);
+                               (void)printf("[bad udp cksum %x!] ", sum);
                        else
-                               (void)printf(" [udp sum ok]");
+                               (void)printf("[udp sum ok] ");
                }
        }
 #endif