]> The Tcpdump Group git mirrors - tcpdump/commitdiff
improve some recent conversions
authorDenis Ovsienko <[email protected]>
Sat, 29 Mar 2014 04:34:05 +0000 (08:34 +0400)
committerDenis Ovsienko <[email protected]>
Sat, 29 Mar 2014 04:35:54 +0000 (08:35 +0400)
print-isoclns.c
print-sctp.c

index bee97e5b689c99eb9146964f9ecd23a6420447ba..1b44ffc71ff7b12d98ad94fee9a39071cb33ddc7 100644 (file)
@@ -988,7 +988,7 @@ clnp_print(netdissect_options *ndo,
         return (1);
 
  trunc:
-    fputs("[|clnp]", stdout);
+    ND_PRINT((ndo, "[|clnp]"));
     return (1);
 
 }
@@ -3069,7 +3069,7 @@ isis_print(netdissect_options *ndo,
     return (1);
 
  trunc:
-    fputs("[|isis]", stdout);
+    ND_PRINT((ndo, "[|isis]"));
     return (1);
 
  trunctlv:
index 351a02c718925749d3baf1017027b9e5d61d018a..b009e051fc5c289e90a7ee38174b2835d7214067 100644 (file)
@@ -469,7 +469,6 @@ void sctp_print(netdissect_options *ndo,
       ipaddr_string(&ip->ip_dst),
       destPort));
   }
-  fflush(stdout);
 
   if (isForCES_port(sourcePort)) {
          ND_PRINT((ndo, "[%s]", tok2str(ForCES_channels, NULL, sourcePort)));
@@ -552,7 +551,6 @@ void sctp_print(netdissect_options *ndo,
            ND_PRINT((ndo, "[SID: %u] ", EXTRACT_16BITS(&dataHdrPtr->streamId)));
            ND_PRINT((ndo, "[SSEQ %u] ", EXTRACT_16BITS(&dataHdrPtr->sequence)));
            ND_PRINT((ndo, "[PPID 0x%x] ", EXTRACT_32BITS(&dataHdrPtr->payloadtype)));
-           fflush(stdout);
            if (isforces) {
                const u_char *payloadPtr;
                u_int chunksize = sizeof(struct sctpDataPart)+