Skip to content

Commit 6de613a

Browse files
authored
Merge pull request #617 from jaegeral/2025-04_spell
Spelling check
2 parents 754b076 + 97161fc commit 6de613a

36 files changed

Lines changed: 61 additions & 61 deletions

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ region, country and city. The geo location and AS information is retrieved from
4040
optional **geoDB** database, created by the **geolookup** program from the nfdump
4141
tools. geolookup uses the **Maxmind** database GeoDB or GeoLite2 to create a
4242
binary lookup database for nfdump. Please check the <u>geolooup</u>(1) man page
43-
for more details. IP adresses can be tagged as **TOR** exit nodes, from the optional
44-
**torDB** database, created by the **torlookup** program. Please chaeck the <u>torlookup</u>(1)
43+
for more details. IP addresses can be tagged as **TOR** exit nodes, from the optional
44+
**torDB** database, created by the **torlookup** program. Please check the <u>torlookup</u>(1)
4545
man page for details.
4646

4747
There is also a [go-nfdump](https://github.com/phaag/go-nfdump) module to read nfdump flows files in Golang.
@@ -91,7 +91,7 @@ improves compatibility with some exporters such as yaf and others.
9191
to a UNIX socket. The corresponding program may be [nfinflux](https://github.com/phaag/nfinflux) to insert
9292
these metrics into an influxDB or [nfexporter](https://github.com/phaag/nfexporter) for Prometheus monitoring.
9393

94-
- nfdump supports a default config file tipically */usr/local/etc/nfdump.conf* to
94+
- nfdump supports a default config file typically */usr/local/etc/nfdump.conf* to
9595
store user defined paths for the **geolookup** and **torlookup** database files as well as for
9696
user defined named output formats *( -o 'fmt:%ts .. ', -o 'csv:%ts ..')*. See the default
9797
*/usr/local/etc/nfdump.conf.dist* file for an example.
@@ -218,7 +218,7 @@ flows. The output format is user selectable and also includes a simple
218218
csv format for post processing.
219219

220220
__nfanon__ - anonymize netflow records
221-
IP addresses in flow records are anonimized using the CryptoPAn method.
221+
IP addresses in flow records are anonymized using the CryptoPAn method.
222222

223223
__nfexpire__ - expire old netflow data
224224
Manages data expiration. Sets appropriate limits. Used by NfSen.
@@ -280,7 +280,7 @@ More fields may be integrated in future versions of sfcapd.
280280
Binary data files can optionally be compressed by using either LZO1X-1, LZ4, ZSTD or bzip2 compression
281281
LZO is fastest but less efficient, LZ4 and ZSTD are fast and pretty efficient and bzip2 is slow but efficient.
282282

283-
By default LZO and LZ4 embedded without external dependancies. Bzip2 and ZSTD are optional libraries, which are automatically added, if they are found while configuring and compiling.
283+
By default LZO and LZ4 embedded without external dependencies. Bzip2 and ZSTD are optional libraries, which are automatically added, if they are found while configuring and compiling.
284284

285285
The standard **configure** process checks for the installed libraries lz4, bz2 and zstd and enables them if they are found.
286286
**configure** understands the following options:
@@ -451,7 +451,7 @@ This collector collects sflow https://www.sflow.org exports. It is largely ident
451451

452452
This collector is able to listen on a host interface and generates netflow data from the network data stream on that interface. It make use of **PACKET_RX_RING** to read packets on an interface device level (**TPACKETV3**) on Linux hosts or of the **BPF** interface - Berkeley Packet Filter on ***BSD** hosts which provides raw access to data link layers. Nfpcapd builds an internal netflow cache which is periodically written to disk or forwarded to an nfcapd server. As a special feature, nfpcpad may collect the first few bytes of a network connection, if requested to do so ( **-o payload**), which allows filter and evaluate the flows with nfdump later.
453453

454-
Listen on eth0 and store the flows locally. Set flow cache active timeout to 60s, inactive tiemout to 30s:
454+
Listen on eth0 and store the flows locally. Set flow cache active timeout to 60s, inactive timeout to 30s:
455455

456456
```
457457
nfpcapd -D -S 2 -w /var/flows -i eth0 -e 60,30 -u daemon -g daemon

man/nfanon.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ All files in a directory are processed recursively.
5353
.Pp
5454
If the output argument
5555
.Fl w Ar nffile
56-
is given, all anonimized records are written into that single file, even if the
56+
is given, all anonymized records are written into that single file, even if the
5757
source is a directory. If no argument
5858
.Fl w
5959
is specified,

man/nfdump.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ below for more details on how to compile your own csv format.
639639
.It Cm json
640640
Print full record as a separate json object.
641641
.It Cm ndjson
642-
Print full record as a one line json object, sepatated by newline. Suitable for log processors such as logstash.
642+
Print full record as a one line json object, separated by newline. Suitable for log processors such as logstash.
643643
.It Cm csv
644644
Print reocrd in csv format - format compatible to fmt
645645
.Sy line
@@ -960,7 +960,7 @@ or
960960
.Cm dst
961961
the source or destination geo location code may match. Please note: country codes, which match
962962
.Nm
963-
filter language reserved words such as IN, LT etc must be explicitly quoted to be recoginzed as string.
963+
filter language reserved words such as IN, LT etc must be explicitly quoted to be recognized as string.
964964
.Pp
965965
.It Cm tun ip Ar ipaddr
966966
.It Cm src tun ip Ar ipaddr

man/nfexpire.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ and
124124
.It Fl s Ar maxsize
125125
This option sets the max size limit for all data files.
126126
.Ar maxsize
127-
accepts values such as 100M, 100MB 1G 1.5G (number + quantity factor) etc. Accpeted size
127+
accepts values such as 100M, 100MB 1G 1.5G (number + quantity factor) etc. Accepted size
128128
factors are K, KB, M, MB, G, GB and T, TB. If no factor is given, bytes (B) is assumed.
129129
A value of 0 disables the max size limit.
130130
.It Fl t Ar maxlife
131131
This option sets the max lifetime for the data files.
132132
.Ar maxlife
133-
accepts values such as 31d, 240H 1.5d (number + quantity factor) etc. Accpeted time
133+
accepts values such as 31d, 240H 1.5d (number + quantity factor) etc. Accepted time
134134
factors are w (weeks) d (days) H (hours). If no factor is given, hours (H) is assumed.
135135
A value of 0 disables the max lifetime limit.
136136
.It Fl w Ar watermark

src/collector/bookkeeper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ int InitBookkeeper(bookkeeper_t **bookkeeper, char *path, pid_t nfcapd_pid) {
151151
// the segment already exists. Either a running process is active
152152
// or an unclean shutdown happened
153153

154-
// map the segement and check the record
154+
// map the segment and check the record
155155
*bookkeeper = (bookkeeper_t *)shmat(shm_id, NULL, 0);
156156
if (*bookkeeper == (bookkeeper_t *)-1) {
157157
LogError("shmat() error in %s line %d: %s", __FILE__, __LINE__, strerror(errno));
@@ -397,7 +397,7 @@ void ReleaseBookkeeper(bookkeeper_t *bookkeeper, int destroy) {
397397
return;
398398
}
399399

400-
// prevent other proceeses to access the share memory, while we are removing it
400+
// prevent other processes to access the share memory, while we are removing it
401401
// try to clean up.
402402
sem_lock(bookkeeper_list_entry->sem_id);
403403
if (shmctl(bookkeeper_list_entry->shm_id, IPC_RMID, &buf)) {

src/collector/collector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ typedef struct FlowSource_s {
8282
// all about data storage
8383
char *datadir; // where to store data for this source
8484
char *current; // current file name - typically nfcad.current.pid
85-
int subdir; // sub dir structur
85+
int subdir; // sub dir structure
8686
nffile_t *nffile; // the writing file handle
8787
dataBlock_t *dataBlock; // writing buffer
8888

src/collector/expire.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void ExpireDir(char *dir, dirstat_t *dirstat, uint64_t maxsize, uint64_t maxlife
384384
s = fgets(s1, 31, stdin);
385385
s1[31] = '\0';
386386
if (s && strncasecmp(s1, "yes\n", 31) == 0) {
387-
printf("Ok - you've beeen warned!\n");
387+
printf("Ok - you've been warned!\n");
388388
} else {
389389
printf("Expire canceled!\n");
390390
free(expire_timelimit);

src/collector/nfnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ int Unicast_send_socket(const char *hostname, const char *sendport, int family,
184184
if (sockfd < 0) {
185185
LogError("socket() error: could not open the requested socket: %s", strerror(errno));
186186
} else {
187-
// socket call was successsful
187+
// socket call was successful
188188
if (connect(sockfd, res->ai_addr, res->ai_addrlen) < 0) {
189189
// unsuccessful connect :(
190190
LogError("connect() error: could not open the requested socket: %s", strerror(errno));

src/collector/privsep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void pushMessage(messageQueue_t *messageQueue, message_t *message) {
9797
// messageQ already contains records, append to last element
9898
messageQueue->tail->next = listElement;
9999
} else {
100-
// messageQ ist empty
100+
// messageQ is empty
101101
messageQueue->head = listElement;
102102
// signal reader thread, there is a new record
103103
pthread_cond_signal(&(messageQueue->cond));
@@ -111,7 +111,7 @@ void pushMessage(messageQueue_t *messageQueue, message_t *message) {
111111
message_t *getMessage(messageQueue_t *messageQueue) {
112112
pthread_mutex_lock(&(messageQueue->mutex));
113113
while (messageQueue->head == NULL && done == 0) {
114-
// messageQ ist empty
114+
// messageQ is empty
115115
pthread_cond_wait(&(messageQueue->cond), &(messageQueue->mutex));
116116
}
117117

src/libnfdump/filter/filter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ typedef enum {
107107
FUNC_BPP, // function code for bpp ( bytes per packet ) filter function
108108
FUNC_MPLS_LABEL, // function code for matching an MPLS label
109109
FUNC_MPLS_EOS, // function code for matching End of MPLS Stack label
110-
FUNC_MPLS_EXP, // function code for matching experimantal value in label
110+
FUNC_MPLS_EXP, // function code for matching experimental value in label
111111
FUNC_MPLS_ANY, // function code for matching any MPLS label
112112
FUNC_PBLOCK, // function code for matching ports against pblock start
113113
FUNC_MMAS_LOOKUP, // function code for optional maxmind AS lookup

0 commit comments

Comments
 (0)