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

Improve doc: back-tick fix, packet/payload, etc #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jmark-ovpn
Copy link

-- Only did non-bulk text updates through Section 3.2

-- Detailed language fix was on the imprecise use of the term "packet"
when we meant the "payload". I think everybody gets the idea that
the payload follows the headers; so TCP or UDP, we can address the
payload

-- Revise "The OpenVPN Wire Protocol" section start

-- Bulk update converting double back-tick pairs to ...

-- Bulk convert apostrophe (') character to "'". This is not
required for for proper rendering by the xml2rfc program; it is
done to help some editors avoid incorrect syntax highlighting
between apostrophes

Mark Deric added 2 commits May 11, 2022 10:02
-- only did non-bulk text updates through Section 3.2 ... more to come

-- bulk update converting double back-tick pairs to <tt>...</tt>

-- detailed language fix was on the imprecise use of the term "packet"
   when we meant the "payload".  I think everybody gets the idea that
   the payload follows the headers; so TCP or UDP, we can address the
   payload

-- bulk convert apostrophe (') character to "&apos;".  This is not
   required for for proper rendering by the xml2rfc program; it is
   done to help some editors avoid incorrect syntax highlighting
   between apostrophes

-- detailed language fix proposal on the client/server vs peer-to-peer
   use case.  No fix here, yet.  Question for the group.

Signed-off-by: Mark Deric <[email protected]>
Make the fix and remove the editor's note.

Signed-off-by: Mark Deric <[email protected]>
@jmark-ovpn
Copy link
Author

The apostrophe conversion was to &apos;

</t>
</section>
<section title="Basic OpenVPN packet format">

<section title="OpenVPN payload format">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would avoid using "payload" here since we use the same term later for the VPN playload inside the OpenVPN packets.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@flichtenheld I see what you mean. As in the example of layout:
-opcode- || -session_id- || -packet_id- || auth_tag || * payload *
and in the chart heading in the "Overview of OPCODEs" section.

My suggestion here is that the use of "payload" in both of those examples is unconventional. My usage follows the convention that the payload is what comes after the headers. And the body of the section you identify in the comment only addresses the payload, not the full packet. To reconcile that with the unconventional usage, I would suggest calling the additional data that follows opcodes and other stuff at the front of the payload "more data", "control data", "optional data", "extra data", or "vpn traffic" depending on the specific context. I would be happy to add those changes to the PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple references for conventional vs unconventional use of payload:
https://en.wikipedia.org/wiki/Network_packet
https://networkengineering.stackexchange.com/questions/35016/whats-the-difference-between-frame-packet-and-payload

and there are more by googling packet payload.

Copy link
Member

@dsommers dsommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My approval was for the "Revise The OpenVPN Wire Protocol" commit. The other commit is still in review.

@schwabe
Copy link
Collaborator

schwabe commented May 12, 2022

I don't really like the ' to ' change. This sounds like a workaround to a broken editor and makes the source code less readable. I thought you used emacs as well and my emacs has no problems with the ' in the xml source code.

@dsommers
Copy link
Member

dsommers commented May 12, 2022

I believe apostrophe is a "special character" in XML, so it should be avoided in plain and be encoded instead.

Some quick (and various) references:

This seems to be quite standard.

@jmark-ovpn jmark-ovpn closed this May 12, 2022
@jmark-ovpn jmark-ovpn reopened this May 12, 2022
@jmark-ovpn
Copy link
Author

I don't really like the ' to ' change. This sounds like a workaround to a broken editor and makes the source code less readable. I thought you used emacs as well and my emacs has no problems with the ' in the xml source code.

I do use emacs and the xml syntax highlighting changed the text color between two unrelated apostrophes as shown
XML_apos_syntax_highlight

If you have a better setting that avoids this, please share.

@jmark-ovpn
Copy link
Author

@schwabe the above is for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants