Skip to content

Commit

Permalink
Documentation: teaching: labs: networking: Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Sergiu Weisz <sergiu121@gmail.com>
  • Loading branch information
Sergiu121 committed Apr 24, 2019
1 parent 3236a40 commit 58fb255
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/teaching/labs/networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ Exercises
is enabled via ``CONFIG_NETFILTER``. To activate it, run :command:`make menuconfig` in
the :file:`linux` directory and check the ``Network packet filtering framework
(Netfilter)`` option in ``Networking support -> Networking options``. If it
was not enabled, enable it (as builtin, not external mode - it must be
was not enabled, enable it (as builtin, not external module - it must be
marked with ``*``).


Expand All @@ -1004,9 +1004,9 @@ You will need to register a netfilter hook of type ``NF_INET_LOCAL_OUT`` as expl
in the `netfilter`_ section.

`The struct sk_buff structure`_ lets you access the packet headers. The IP
header is obtained in from :c:type:`struct iphdr` structure using the
:c:func:`ip_hdr` function, and the TCP header is obtained form a :c:type:`struct
tcphdr` using the :c:func:`tcp_hdr` function.
header is obtained in the form of a :c:type:`struct iphdr` structure using
the :c:func:`ip_hdr` function, and the TCP header is obtained in the form of a
:c:type:`struct tcphdr` using the :c:func:`tcp_hdr` function.

The `diagram`_ explains how to make a TCP connection. The connection initiation
packet has the ``SYN`` flag set in the TCP header and the ``ACK`` flag cleared.
Expand Down

0 comments on commit 58fb255

Please sign in to comment.