]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-tcp.c
NDOize safeputs() and safeputchar()
[tcpdump] / print-tcp.c
index d475f6dadbb0e74fabb83d59c4ff73782422ac74..4e970038bb86c4460944cae87959fd558e8a4a48 100644 (file)
@@ -673,7 +673,7 @@ tcp_print(register const u_char *bp, register u_int length,
                 if (!qflag && vflag)
                         telnet_print(gndo, bp, length);
         } else if (sport == BGP_PORT || dport == BGP_PORT)
-                bgp_print(bp, length);
+                bgp_print(gndo, bp, length);
         else if (sport == PPTP_PORT || dport == PPTP_PORT)
                 pptp_print(gndo, bp);
 #ifdef TCPDUMP_DO_SMB
@@ -723,12 +723,12 @@ tcp_print(register const u_char *bp, register u_int length,
                         direction = (enum sunrpc_msg_type)EXTRACT_32BITS(&rp->rm_direction);
                         if (dport == NFS_PORT && direction == SUNRPC_CALL) {
                                 (void)printf(": NFS request xid %u ", EXTRACT_32BITS(&rp->rm_xid));
-                                nfsreq_print_noaddr((u_char *)rp, fraglen, (u_char *)ip);
+                                nfsreq_print_noaddr(gndo, (u_char *)rp, fraglen, (u_char *)ip);
                                 return;
                         }
                         if (sport == NFS_PORT && direction == SUNRPC_REPLY) {
                                 (void)printf(": NFS reply xid %u ", EXTRACT_32BITS(&rp->rm_xid));
-                                nfsreply_print_noaddr((u_char *)rp, fraglen, (u_char *)ip);
+                                nfsreply_print_noaddr(gndo, (u_char *)rp, fraglen, (u_char *)ip);
                                 return;
                         }
                 }
@@ -777,7 +777,7 @@ print_tcp_rst_data(register const u_char *sp, u_int length)
         putchar(' ');
         while (length-- && sp <= snapend) {
                 c = *sp++;
-                safeputchar(c);
+                safeputchar(gndo, c);
         }
         putchar(']');
 }