-
Notifications
You must be signed in to change notification settings - Fork 3.4k
docs: XFRM reference guide for IPsec development #35322
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
Conversation
50321d2
to
274d9b7
Compare
274d9b7
to
c63564f
Compare
fa0f5cb
to
3c1639e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, lgtm
0ca48f0
to
36ced40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paul, how do you like this figure from https://thermalcircle.de/doku.php?id=blog:linux:nftables_ipsec_packet_flow
I found it more accurate than https://en.m.wikipedia.org/wiki/File:Netfilter-packet-flow.svg in terms of xfrm. For example the figure above suggests ipsec decryption doesn't necessarily use xfrm policy, I think I verified this by pwru --filter-non-skb-funcs xfrm_state_look_at,xfrm_state_lookup,xfrm_state_lookup_byaddr,xfrm_state_lookup_byspi
.
There are some other figures in the article which also help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Especially the annotated xfrm output.
All comments I have left are nits where I thought just a tiny bit more explanation could help. I don't feel strongly on these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, thanks Paul!
Few probably unwanted spacing issues (confirmed while locally rendering the doc with make render-docs
), but the content is very clear to me 👍
32ee44e
to
80d00ae
Compare
/test |
80d00ae
to
89a142a
Compare
The subsequent commit will introduce a sibling reference guide in the same directory. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
89a142a
to
a8882b6
Compare
Thanks everyone for the reviews! That was really helpful! I believe I addressed all comments. I also reworked the flow diagram (sources uploaded) by taking inspiration from the one Gray pointed to and made various minor edits. I'll wait until tomorrow evening before merging this, in case someone spots something else. |
No description provided.