Skip to content

Commit baee71e

Browse files
authored
Fix typos (zmap#682)
1 parent 981a176 commit baee71e

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ foreach(EACH_CONF ${CONF_FILES})
132132
if(NOT EXISTS "/etc/zmap/${CONF_BASENAME}")
133133
install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION})
134134
elseif(FORCE_CONF_INSTALL)
135-
message(WARNING "FORCE_CONF_INSTALL will overwrite any exsiting configuration files")
135+
message(WARNING "FORCE_CONF_INSTALL will overwrite any existing configuration files")
136136
install(FILES ${EACH_CONF} DESTINATION ${CONFIG_DESTINATION})
137137
else()
138138
message(WARNING "Existing configuration file detected at /etc/zmap/${CONF_BASENAME}, ${CONF_BASENAME} from sources will NOT be installed. Please check and install manually!")

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from source.
1111
Developing
1212
----------
1313

14-
- ZMap code follows the [Linux kernel style guide][kernelguide]. We mantain [a
14+
- ZMap code follows the [Linux kernel style guide][kernelguide]. We maintain [a
1515
configuration file](/.clang-format) for `clang-format` that applies this
1616
style. You can use the [format.sh](/format.sh) script to apply this style.
1717

examples/udp-probes/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ memcache_11211.pkt This probe triggers a response from memcached on UDP por
2828
mssql_1434.pkt This probe triggers a response from Microsoft SQL Server discovery services on UDP port 1434
2929
natpmp_5351.pkt This probe triggers a response from NATPMP-enabled devices on UDP port 5351
3030
netbios_137.pkt This probe triggers a status reply from NetBIOS services on UDP port 137
31-
ntp_123.pkt This probe triggers a response from NTP servies on UDP port 123
32-
ntp_123_monlist.pkt This probe triggers a response for command "monlist" from NTP servies on UDP port 123
31+
ntp_123.pkt This probe triggers a response from NTP services on UDP port 123
32+
ntp_123_monlist.pkt This probe triggers a response for command "monlist" from NTP services on UDP port 123
3333
pca_nq_5632.pkt This probe triggers a response from PC Anywhere services on UDP port 5632 (network query)
3434
pca_st_5632.pkt This probe triggers a response from PC Anywhere services on UDP port 5632 (status)
3535
portmap_111.pkt This probe triggers a response from SunRPC portmapper services on UDP port 111

lib/constraint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ uint32_t constraint_lookup_index(constraint_t *con, uint64_t index,
258258
// the number of addresses in a prefix at the current level of the tree.
259259
// If paint is specified, each node will have its count set to the number of
260260
// leaves under it set to value.
261-
// If exclude_radix is specified, the number of addresses will exlcude prefixes
261+
// If exclude_radix is specified, the number of addresses will exclude prefixes
262262
// that are a /RADIX_LENGTH or larger
263263
static uint64_t _count_ips_recurse(node_t *node, value_t value, uint64_t size,
264264
int paint, int exclude_radix)

src/fieldset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static void fs_modify_word(fieldset_t *fs, const char *name, int type,
119119
}
120120
}
121121
// TODO(ZD): We need to test, but this is really unsafe to just add because it
122-
// will all but guarantee that it's in the wront place
122+
// will all but guarantee that it's in the wrong place
123123
//fs_add_word(fs, name, type, free_, len, value);
124124
log_fatal("fs", "attempting to modify non-existent field");
125125
}

src/output_modules/module_json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ output_module_t module_json_file = {
153153
.process_ip = &json_output_to_file,
154154
.supports_dynamic_output = DYNAMIC_SUPPORT,
155155
.helptext =
156-
"Outputs one or more output fileds as a json valid file. By default, the \n"
156+
"Outputs one or more output fields as a json valid file. By default, the \n"
157157
"probe module does not filter out duplicates or limit to successful fields, \n"
158158
"but rather includes all received packets. Fields can be controlled by \n"
159-
"setting --output-fields. Filtering out failures and duplicate pakcets can \n"
159+
"setting --output-fields. Filtering out failures and duplicate packets can \n"
160160
"be achieved by setting an --output-filter."};

src/probe_modules/module_dns.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static uint16_t get_name_helper(const char *data, uint16_t data_len,
205205
uint16_t recursion_level)
206206
{
207207
log_trace("dns",
208-
"_get_name_helper IN, datalen: %d namelen: %d recusion: %d",
208+
"_get_name_helper IN, datalen: %d namelen: %d recursion: %d",
209209
data_len, name_len, recursion_level);
210210
if (data_len == 0 || name_len == 0 || payload_len == 0) {
211211
log_trace(
@@ -215,7 +215,7 @@ static uint16_t get_name_helper(const char *data, uint16_t data_len,
215215
return 0;
216216
}
217217
if (recursion_level > MAX_LABEL_RECURSION) {
218-
log_trace("dns", "_get_name_helper OUT. ERR, MAX RECUSION");
218+
log_trace("dns", "_get_name_helper OUT. ERR, MAX RECURSION");
219219
return 0;
220220
}
221221
uint16_t bytes_consumed = 0;
@@ -1026,7 +1026,7 @@ static fielddef_t fields[] = {
10261026
.type = "bool",
10271027
.desc = "Is the RA bit set with no error code?"},
10281028
ICMP_FIELDSET_FIELDS,
1029-
{.name = "udp_len", .type = "int", .desc = "UDP packet lenght"},
1029+
{.name = "udp_len", .type = "int", .desc = "UDP packet length"},
10301030
{.name = "dns_id", .type = "int", .desc = "DNS transaction ID"},
10311031
{.name = "dns_rd", .type = "int", .desc = "DNS recursion desired"},
10321032
{.name = "dns_tc", .type = "int", .desc = "DNS packet truncated"},

src/probe_modules/module_udp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static udp_payload_field_type_def_t udp_payload_template_fields[] = {
9595
{.name = "SPORT_N",
9696
.ftype = UDP_SPORT_N,
9797
.max_length = 2,
98-
.desc = "UDP source port in netowrk byte order"},
98+
.desc = "UDP source port in network byte order"},
9999
{.name = "SPORT",
100100
.ftype = UDP_SPORT_A,
101101
.max_length = 5,
@@ -839,7 +839,7 @@ probe_module_t module_udp = {
839839
.port_args = 1,
840840
.thread_initialize = &udp_init_perthread,
841841
.global_initialize = &udp_global_initialize,
842-
.make_packet = &udp_make_packet, // can be overriden to udp_make_templated_packet by udp_global_initalize
842+
.make_packet = &udp_make_packet, // can be overridden to udp_make_templated_packet by udp_global_initalize
843843
.print_packet = &udp_print_packet,
844844
.validate_packet = &udp_validate_packet,
845845
.process_packet = &udp_process_packet,

src/probe_modules/packet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static inline uint16_t tcp_checksum(unsigned short len_tcp,
127127
sum += *w++;
128128
nleft -= 2;
129129
}
130-
// if nleft is 1 there ist still on byte left.
130+
// if nleft is 1 there is still one byte left.
131131
// We add a padding byte (0xFF) to build a 16bit word
132132
if (nleft > 0) {
133133
sum += *w & ntohs(0xFF00);

src/send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ int send_run(sock_t st, shard_t *s)
260260
if (zconf.rate > 0) {
261261
delay = 10000;
262262
if (send_rate < slow_rate) {
263-
// set the inital time difference
263+
// set the initial time difference
264264
sleep_time = nsec_per_sec / send_rate;
265265
last_time = now() - (1.0 / send_rate);
266266
} else {

0 commit comments

Comments
 (0)