Skip to contentSkip to conversation

kara_am

DISCUSSION am kara 2 participants 2 messages Feb 5, 2008

lore
Share & tools
lore

am kara

author
#0 lore raw

I am trying to understand IPsec and found some related subfolders:
crypto, net/key, net/xfrm, net/netlink
and it may be more folders and files involved in the process.

Would anyone please tell me how is the flow of network(internet) information(traffic) from a user process to the deepest layers of the kernel only by the name of the most important files and folders in case of IPsec and a typical TCP, IP(and IPsec) and Ethernet adaptor senario?

For example:
setkey(shell command)--> ....(some intermediate processes)-->crypto(setkey method)

I guess it should be:
net/ipv4-->net/key-->net/xfrm-->crypto
net/ipv4-->net/core-->net/core/dev.c

What is netlink, is it a kind of socket? how does it become connected to IPsec?

      ____________________________________________________________________________________

Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

#1 lore raw
Quoted 2 lines · kara

I am trying to understand IPsec and found some related subfolders

Please read this book (or a similar book) first:

Understanding Linux Network Internals
By Christian Benvenuti
Publisher: O'Reilly
Pub Date: December 2005
ISBN: 0-596-00255-6
Pages: 1062

Bart Van Assche.