Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/pcapdump.docbook
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<refsect1>
<title>DESCRIPTION</title>
<para><command>pcapdump</command> captures packets from a network interface and writes them to a dumpfile. The filename argument given to <option>-w</option> will be formated by <function>strftime(3)</function>.</para>
<para><command>pcapdump</command> captures packets from a network interface and writes them to a dumpfile. The filename argument given to <option>-w</option> will be formatted by <function>strftime(3)</function>.</para>
</refsect1>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pcapnet.docbook"/>
Expand Down
2 changes: 1 addition & 1 deletion src/pcapuc.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static void parse_args(int argc, char **argv){
usage("need to specify a packet capture source");
int c = count_src_only + count_dst_only + count_pairs_only;
if(c > 1)
usage("mutually exclusive options selecetd");
usage("mutually exclusive options selected");
else if(c == 0)
usage("select a counting mode");
}
Expand Down
4 changes: 2 additions & 2 deletions util/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ struct dnshdr {
/* fields in third byte */
unsigned qr: 1; /* response flag */
unsigned opcode: 4; /* purpose of message */
unsigned aa: 1; /* authoritive answer */
unsigned aa: 1; /* authoritative answer */
unsigned tc: 1; /* truncated message */
unsigned rd: 1; /* recursion desired */
/* fields in fourth byte */
Expand All @@ -227,7 +227,7 @@ struct dnshdr {
/* fields in third byte */
unsigned rd :1; /* recursion desired */
unsigned tc :1; /* truncated message */
unsigned aa :1; /* authoritive answer */
unsigned aa :1; /* authoritative answer */
unsigned opcode :4; /* purpose of message */
unsigned qr :1; /* response flag */
/* fields in fourth byte */
Expand Down