Operating System - Linux
1825803 Members
2669 Online
109687 Solutions
New Discussion

Re: Question regarding net/tun.h

 
FrankS_1
New Member

Question regarding net/tun.h

Hi,

I am porting some code from Solaris and Linux to HP-UX-11 that uses an IP network tunnel driver.

I have been referring to the tun(4) man page, which specifies the header file as net/tun.h. The problem is, I can't find this header file anywhere on the two HP-UX machines we have.

I have also searched the internet for clues to no avail. There are some ioctl calls I need to make (TUIOSNAME for example), but I don't have the constants to do it.

Does anyone know where I can get this header file? Also, I would greatly appreciate any other bits of insight or examples related to the IP network tunnel driver on HP-UX.

Thank you,

FrankS
3 REPLIES 3
rick jones
Honored Contributor

Re: Question regarding net/tun.h

I asked around, and it seems that the tunnel driver was not meant to be documented for public use, which is why the tun.h include file is not shipped with the system.
there is no rest for the wicked yet the virtuous have no pillows
Frank Suchy
New Member

Re: Question regarding net/tun.h

Thank you for the reply Rick.

I received a response from an e-mail list stating something similar. She said that the tunnel driver was only intended for use with HP's PPP.

The code I'm porting (from Solaris and Linux) opens a /dev/tun device and creates a PtoP address pair for it. Next, routes are created to direct traffic destined for certain devices or subnets to the far end of the new /dev/tun interface. The code can then receive and handle the IP packets itself for the routed devices/subnets. It is similar to VPN, but for a more specific purpose.

Is there a way on HP to receive the IP packets directly like this? Is there an API for PPP that may allow this code to insert itself?

Thank you,

FrankS
rick jones
Honored Contributor

Re: Question regarding net/tun.h

If the "she" is who I suspect "she" is then she is undoubtedly the better person to ask.
there is no rest for the wicked yet the virtuous have no pillows