]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rx.c
Fix small misspellings
[tcpdump] / print-rx.c
index 534278bcba8c8e3ab8734e49f62182cadb05fc90..5e0315ef4ebccf0633d1ee2b0c8f748c309b9b7f 100644 (file)
@@ -750,7 +750,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, u_int sport,
 }
 
 /*
- * These extrememly grody macros handle the printing of various AFS stuff.
+ * These extremely grody macros handle the printing of various AFS stuff.
  */
 
 #define FIDOUT() { uint32_t n1, n2, n3; \
@@ -771,7 +771,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, u_int sport,
                                goto trunc; \
                        bp += sizeof(uint32_t); \
                        ND_PRINT(" \""); \
-                       if (fn_printn(ndo, bp, _i, ndo->ndo_snapend)) \
+                       if (nd_printn(ndo, bp, _i, ndo->ndo_snapend)) \
                                goto trunc; \
                        ND_PRINT("\""); \
                        bp += ((_i + sizeof(uint32_t) - 1) / sizeof(uint32_t)) * sizeof(uint32_t); \
@@ -869,7 +869,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, u_int sport,
                        } \
                        s[(MAX)] = '\0'; \
                        ND_PRINT(" \""); \
-                       fn_print(ndo, s, NULL); \
+                       fn_print_str(ndo, s); \
                        ND_PRINT("\""); \
                }
 
@@ -1023,6 +1023,7 @@ fs_print(netdissect_options *ndo,
                        }
                        if (j == 0)
                                ND_PRINT(" <none!>");
+                       break;
                }
                case 65537:     /* Fetch data 64 */
                        FIDOUT();
@@ -1190,7 +1191,7 @@ acl_print(netdissect_options *ndo,
                        goto finish;
                s += n;
                ND_PRINT(" +{");
-               fn_print(ndo, (u_char *)user, NULL);
+               fn_print_str(ndo, (u_char *)user);
                ND_PRINT(" ");
                ACLOUT(acl);
                ND_PRINT("}");
@@ -1204,7 +1205,7 @@ acl_print(netdissect_options *ndo,
                        goto finish;
                s += n;
                ND_PRINT(" -{");
-               fn_print(ndo, (u_char *)user, NULL);
+               fn_print_str(ndo, (u_char *)user);
                ND_PRINT(" ");
                ACLOUT(acl);
                ND_PRINT("}");
@@ -1284,6 +1285,7 @@ cb_print(netdissect_options *ndo,
                                bp += sizeof(uint32_t);
                                tok2str(cb_types, "type %u", t);
                        }
+                       break;
                }
                case 214: {
                        ND_PRINT(" afsuuid");
@@ -1745,6 +1747,7 @@ vldb_reply_print(netdissect_options *ndo,
                        INTOUT();
                        ND_PRINT(" nextindex");
                        INTOUT();
+                       ND_FALL_THROUGH;
                case 503:       /* Get entry by id */
                case 504:       /* Get entry by name */
                {       uint32_t nservers, j;
@@ -1794,6 +1797,7 @@ vldb_reply_print(netdissect_options *ndo,
                        INTOUT();
                        ND_PRINT(" nextindex");
                        INTOUT();
+                       ND_FALL_THROUGH;
                case 518:       /* Get entry by ID N */
                case 519:       /* Get entry by name N */
                {       uint32_t nservers, j;
@@ -2787,7 +2791,7 @@ rx_ack_print(netdissect_options *ndo,
                                 * the range (such as an nacked packet in
                                 * the middle of some acked packets),
                                 * then print the current packet number
-                                * seperated from the last number by
+                                * separated from the last number by
                                 * a comma.
                                 */
 
@@ -2810,7 +2814,7 @@ rx_ack_print(netdissect_options *ndo,
                                 * we hit a nack ... in _this_ case we
                                 * want to print out the range of packets
                                 * that were acked, so we need to print
-                                * the _previous_ packet number seperated
+                                * the _previous_ packet number separated
                                 * from the first by a dash (-).  Since we
                                 * already printed the first packet above,
                                 * just print the final packet.  Don't