diff options
-rw-r--r-- | doc/README.Win32.md | 2 | ||||
-rw-r--r-- | doc/README.hpux | 2 | ||||
-rw-r--r-- | missing/asprintf.c | 2 | ||||
-rw-r--r-- | optimize.c | 2 | ||||
-rw-r--r-- | pcap-dos.c | 2 | ||||
-rw-r--r-- | pcap-dpdk.c | 2 | ||||
-rw-r--r-- | pcap-int.h | 4 | ||||
-rw-r--r-- | pcap-options.c | 4 | ||||
-rw-r--r-- | pcap-septel.c | 2 | ||||
-rw-r--r-- | pcap/pcap.h | 2 | ||||
-rw-r--r-- | sockutils.c | 2 |
11 files changed, 13 insertions, 13 deletions
diff --git a/doc/README.Win32.md b/doc/README.Win32.md index 7ba7c22d..01879651 100644 --- a/doc/README.Win32.md +++ b/doc/README.Win32.md @@ -101,7 +101,7 @@ include built-in support for CMake-based projects: For Visual Studio 2017, make sure "Visual C++ tools for CMake" is installed; for Visual Studio 2019, make sure "C++ CMake tools for -Windows" is intalled. +Windows" is installed. ### winflexbison ### diff --git a/doc/README.hpux b/doc/README.hpux index b995eeea..4b3801b4 100644 --- a/doc/README.hpux +++ b/doc/README.hpux @@ -195,7 +195,7 @@ Here's the "hack_ip_stack" script: -----------------------------------Cut Here------------------------------------- #!/sbin/sh # -# nettune: hack kernel parms for safety +# nettune: hack kernel params for safety OKAY=0 ERROR=-1 diff --git a/missing/asprintf.c b/missing/asprintf.c index 3aa55ed9..b65310e1 100644 --- a/missing/asprintf.c +++ b/missing/asprintf.c @@ -20,7 +20,7 @@ pcap_vasprintf(char **strp, const char *format, va_list args) int ret; /* - * XXX - the C99 standard says, in section 7.19.6.5 "Thes + * XXX - the C99 standard says, in section 7.19.6.5 "The * nprintf function": * * The snprintf function is equivalent to fprintf, except that @@ -2610,7 +2610,7 @@ opt_init(opt_state_t *opt_state, struct icode *ic) } /* - * Make sure the total memory required for both of them dosn't + * Make sure the total memory required for both of them doesn't * overflow. */ if (block_memsize > SIZE_MAX - edge_memsize) { @@ -569,7 +569,7 @@ int pcap_lookupnet (const char *device, bpf_u_int32 *localnet, /* * Get a list of all interfaces that are present and that we probe okay. * Returns -1 on error, 0 otherwise. - * The list may be NULL epty if no interfaces were up and could be opened. + * The list may be NULL empty if no interfaces were up and could be opened. */ int pcap_platform_finddevs (pcap_if_list_t *devlistp, char *errbuf) { diff --git a/pcap-dpdk.c b/pcap-dpdk.c index 94c33092..025a6748 100644 --- a/pcap-dpdk.c +++ b/pcap-dpdk.c @@ -50,7 +50,7 @@ sed -i 's/CONFIG_RTE_BUILD_SHARED_LIB=n/CONFIG_RTE_BUILD_SHARED_LIB=y/' $RTE_SDK You shall learn how to bind nic with DPDK-compatible driver by $RTE_SDK/usertools/dpdk-devbind.py, such as igb_uio. And enable hugepages by dpdk-setup.sh -Then launch the l2fwd with dynamic dirver support. For example: +Then launch the l2fwd with dynamic driver support. For example: $RTE_SDK/examples/l2fwd/$RTE_TARGET/l2fwd -dlibrte_pmd_e1000.so -dlibrte_pmd_ixgbe.so -dlibrte_mempool_ring.so -- -p 0x1 3. Compile libpcap with dpdk options. @@ -485,7 +485,7 @@ pcap_t *pcap_create_interface(const char *, char *); /* * This wrapper takes an error buffer pointer and a type to use for the * private data, and calls pcap_create_common(), passing it the error - * buffer pointer, the size fo the private data type, in bytes, and the + * buffer pointer, the size for the private data type, in bytes, and the * offset of the private data from the beginning of the structure, in * bytes. */ @@ -569,7 +569,7 @@ int add_addr_to_if(pcap_if_list_t *, const char *, bpf_u_int32, /* * This wrapper takes an error buffer pointer and a type to use for the * private data, and calls pcap_create_common(), passing it the error - * buffer pointer, the size fo the private data type, in bytes, and the + * buffer pointer, the size for the private data type, in bytes, and the * offset of the private data from the beginning of the structure, in * bytes. */ diff --git a/pcap-options.c b/pcap-options.c index 52ce849f..b425f500 100644 --- a/pcap-options.c +++ b/pcap-options.c @@ -62,7 +62,7 @@ void pcap_free_option(pcap_options *po) } } -/* Return 0 on success, -1 on failure invalid option, -2 on type mis-match */ +/* Return 0 on success, -1 on failure invalid option, -2 on type mismatch */ int pcap_set_option_string(pcap_options *po, enum pcap_option_name pon, const char *value) @@ -86,7 +86,7 @@ int pcap_set_option_string(pcap_options *po, return 0; } -/* Return 0 on success, -1 on failure invalid option, -2 on type mis-match */ +/* Return 0 on success, -1 on failure invalid option, -2 on type mismatch */ int pcap_set_option_int(pcap_options *po, enum pcap_option_name pon, const int value) diff --git a/pcap-septel.c b/pcap-septel.c index 270a1afb..6d1d9047 100644 --- a/pcap-septel.c +++ b/pcap-septel.c @@ -105,7 +105,7 @@ loop: t = h->type ; - /* catch only messages with type = 0xcf00 or 0x8f01 corrsponding to ss7 messages*/ + /* catch only messages with type = 0xcf00 or 0x8f01 corresponding to ss7 messages*/ /* XXX = why not use API_MSG_TX_REQ for 0xcf00 and API_MSG_RX_IND * for 0x8f01? */ if ((t != 0xcf00) && (t != 0x8f01)) { diff --git a/pcap/pcap.h b/pcap/pcap.h index 546a3bfd..030b582c 100644 --- a/pcap/pcap.h +++ b/pcap/pcap.h @@ -71,7 +71,7 @@ /* * Some software that uses libpcap/WinPcap/Npcap defines _MSC_VER before - * includeing pcap.h if it's not defined - and it defines it to 1500. + * including pcap.h if it's not defined - and it defines it to 1500. * (I'm looking at *you*, lwIP!) * * Attempt to detect this, and undefine _MSC_VER so that we can *reliably* diff --git a/sockutils.c b/sockutils.c index 84024ac6..52a5ee82 100644 --- a/sockutils.c +++ b/sockutils.c @@ -750,7 +750,7 @@ int sock_initaddress(const char *host, const char *port, * so assume the problem is * with the port. * - * Free up the addres info first. + * Free up the address info first. */ freeaddrinfo(*addrinfo); get_gai_errstring(errbuf, errbuflen, |