summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2017-08-10 09:52:46 +0100
committerDenis Ovsienko <denis@ovsienko.info>2017-08-10 09:52:46 +0100
commit3951a87cbe09333a11faa929f93508c848a93fd5 (patch)
treebf3134a79dd1ddb448156aba1e5c9a2a410ae915
parentff8464bffd24a451a5a4c08c6c6ab7d0a2c88785 (diff)
downloadtcpdump-3951a87cbe09333a11faa929f93508c848a93fd5.tar.gz
spell ASCII in uppercase
-rw-r--r--nameser.h2
-rw-r--r--netdissect.h4
-rw-r--r--print-bootp.c6
-rw-r--r--print-rx.c2
-rw-r--r--util-print.c8
5 files changed, 11 insertions, 11 deletions
diff --git a/nameser.h b/nameser.h
index e075f092..4e08c7b9 100644
--- a/nameser.h
+++ b/nameser.h
@@ -175,7 +175,7 @@
#define T_UID 101 /* user ID */
#define T_GID 102 /* group ID */
#define T_UNSPEC 103 /* Unspecified format (binary data) */
-#define T_UNSPECA 104 /* "unspecified ascii". Ugly MIT hack */
+#define T_UNSPECA 104 /* "unspecified ASCII". Ugly MIT hack */
/* Query type values which do not appear in resource records */
#define T_TKEY 249 /* Transaction Key [RFC2930] */
#define T_TSIG 250 /* Transaction Signature [RFC2845] */
diff --git a/netdissect.h b/netdissect.h
index 91fc2fba..385e253b 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -158,8 +158,8 @@ struct netdissect_options {
int ndo_uflag; /* Print undecoded NFS handles */
int ndo_vflag; /* verbosity level */
int ndo_xflag; /* print packet in hex */
- int ndo_Xflag; /* print packet in hex/ascii */
- int ndo_Aflag; /* print packet only in ascii observing TAB,
+ int ndo_Xflag; /* print packet in hex/ASCII */
+ int ndo_Aflag; /* print packet only in ASCII observing TAB,
* LF, CR and SPACE as graphical chars
*/
int ndo_Hflag; /* dissect 802.11s draft mesh standard */
diff --git a/print-bootp.c b/print-bootp.c
index fe798a04..ce2ecac4 100644
--- a/print-bootp.c
+++ b/print-bootp.c
@@ -406,7 +406,7 @@ trunc:
* s - short (16 bits)
* b - period-seperated decimal bytes (variable length)
* x - colon-seperated hex bytes (variable length)
- * a - ascii string (variable length)
+ * a - ASCII string (variable length)
* B - on/off (8 bits)
* $ - special (explicit code to handle)
*/
@@ -424,7 +424,7 @@ static const struct tok tag2str[] = {
{ TAG_LPR_SERVER, "iLPR-Server" }, /* lpr server (RFC1179) */
{ TAG_IMPRESS_SERVER, "iIM" }, /* impress servers (Imagen) */
{ TAG_RLP_SERVER, "iRL" }, /* resource location (RFC887) */
- { TAG_HOSTNAME, "aHostname" }, /* ascii hostname */
+ { TAG_HOSTNAME, "aHostname" }, /* ASCII hostname */
{ TAG_BOOTSIZE, "sBS" }, /* 512 byte blocks */
{ TAG_END, " END" },
/* RFC1497 tags */
@@ -704,7 +704,7 @@ rfc1048_print(netdissect_options *ndo,
switch (c) {
case 'a':
- /* ascii strings */
+ /* ASCII strings */
ND_PRINT((ndo, "\""));
if (fn_printn(ndo, bp, len, ndo->ndo_snapend)) {
ND_PRINT((ndo, "\""));
diff --git a/print-rx.c b/print-rx.c
index ea3a5e67..9df6b6ae 100644
--- a/print-rx.c
+++ b/print-rx.c
@@ -1138,7 +1138,7 @@ trunc:
*
* "positive" and "negative" are integers which contain the number of
* positive and negative ACL's in the string. The uid/aclbits pair are
- * ASCII strings containing the UID/PTS record and and a ascii number
+ * ASCII strings containing the UID/PTS record and an ASCII number
* representing a logical OR of all the ACL permission bits
*/
diff --git a/util-print.c b/util-print.c
index 6eb820df..cb71d06c 100644
--- a/util-print.c
+++ b/util-print.c
@@ -86,7 +86,7 @@ fn_print_char(netdissect_options *ndo, u_char c)
}
/*
- * Print out a null-terminated filename (or other ascii string).
+ * Print out a null-terminated filename (or other ASCII string).
* If ep is NULL, assume no truncation check is needed.
* Return true if truncated.
* Stop at ep (if given) or before the null char, whichever is first.
@@ -119,7 +119,7 @@ fn_print(netdissect_options *ndo,
}
/*
- * Print out a null-terminated filename (or other ascii string) from
+ * Print out a null-terminated filename (or other ASCII string) from
* a fixed-length buffer.
* If ep is NULL, assume no truncation check is needed.
* Return the number of bytes of string processed, including the
@@ -169,7 +169,7 @@ fn_printztn(netdissect_options *ndo,
}
/*
- * Print out a counted filename (or other ascii string).
+ * Print out a counted filename (or other ASCII string).
* If ep is NULL, assume no truncation check is needed.
* Return true if truncated.
* Stop at ep (if given) or after n bytes, whichever is first.
@@ -197,7 +197,7 @@ fn_printn(netdissect_options *ndo,
}
/*
- * Print out a null-padded filename (or other ascii string).
+ * Print out a null-padded filename (or other ASCII string).
* If ep is NULL, assume no truncation check is needed.
* Return true if truncated.
* Stop at ep (if given) or after n bytes or before the null char,