LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2016, 05:58 AM   #1
ptz
LQ Newbie
 
Registered: Aug 2016
Posts: 2

Rep: Reputation: Disabled
Question Receving a callback at XFRM ESP tunnel creation


Hi,

My goal is to run some code before actual packets begin running in an IPSec tunnel established by XFRM. For this, I am thinking of running a callback at the time of an XFRM ESP tunnel creation, where tunnel IPs and the SPI will be known. Is there a standard way of achieving this? If I'm not mistaken, registering for any event that has xfrm_state available should be enough, for instance, xfrm_add_sa, esp_init_state.

Thanks.
 
Old 08-31-2016, 02:58 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can use netlink socket called NETLINK_XFRM to communiate to XFRM module.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to set up ipsec esp tunnel between two linux host machine using ip xfrm samiran.linux Linux - Networking 14 04-08-2014 01:02 AM
[SOLVED] message 'Relaying denied' when receving external e-mail justjay Linux - Server 3 01-27-2012 09:18 AM
Outlook mail sending/receving issue with iptables sudhee.b Linux - Networking 1 06-01-2010 07:13 AM
problems receving data in socket programming stephenwalter Programming 5 09-29-2005 11:58 PM
xfrm in ipsec atul_mehrotra Linux - Security 1 05-28-2005 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration