Operating System - HP-UX
1829494 Members
1369 Online
109991 Solutions
New Discussion

Question about using /dev/tun

 
Frank Suchy
New Member

Question about using /dev/tun

This is a repost of an earlier question that was removed for some reason. This is a networking question so I believe it is appropriate, but if it doesn't belong here, please let me know where to post it. My previous post was deleted without explanation.


I am porting a 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, 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.


Since my original posting, I received some information from a mailing list that the header file for the tun driver was removed because it was only designed for PPP. Does anyone know more about this?


Thank you,

FrankS
12 REPLIES 12
Dennis Handly
Acclaimed Contributor

Re: Question about using /dev/tun

You still have one under: (tun.h)
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1109607

Someone tattled on you and asked that the duplicate be removed: ;-)
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1087289 Mar 16, 2007 21:47:46 GMT
Laurent Menase
Honored Contributor

Re: Question about using /dev/tun

Hi Frank,

Unfortunately the tun driver is not public on hpux. It was designed only for ppp use, and none of the ioctl are doing anything.
The tun.h have no use at all.

You can try to contact HP support to ask for an enhancement here, but you will probably have to contact your sales representative or account manager too to push strongly the request.


Frank Suchy
New Member

Re: Question about using /dev/tun

Thank you all for the responses.

I posted on both forums because this question straddled topics. It is programming, but very much related to networking. Thank you for leaving it up the second time. I request that it be left up for others to find, since there is very little information about the tunnel driver.

As far as using the tunnel driver, I have received similar responses from others that the tunnel driver is not supported for anything but HPs PPP implementation. A shame really, since it is very powerful.

I think it is time to start looking into the PPP protocol and see if I can add that layer as part of my migration. Is there an API for configuring the PPP, or is it all done with config files?

Thanks again,

FrankS
Laurent Menase
Honored Contributor

Re: Question about using /dev/tun

Hi Frank,

Yes you can use ppp with a socket for instance.
you just have to configure in
/etc/ppp/System:

71.71.71.73 Any;5 tcp/myhost/ppp

where ppp is a port named defined in /etc/services

then you will get the ppp flow on a socket
sungrand
Occasional Advisor

Re: Question about using /dev/tun

Hi Frank,

I am getting the same problem you had. Have you figured out a solution?

Thanks!

Laurent Menase
Honored Contributor

Re: Question about using /dev/tun

Hi All,

I have only one advise:
contact hp support, dspp http://h21007.www2.hp.com, or your sales representative.

To have some enhancement there a lot of requests are needed.
sungrand
Occasional Advisor

Re: Question about using /dev/tun

Thanks...
Frank Suchy
New Member

Re: Question about using /dev/tun

Hi Sungrand,

We decided to back-burner the HP-UX version of our feature for the time being, so I have moved on to other things. If we decide to implement this on HP-UX later, it seems as if our only choice is to add a PPP layer.

-FrankS
sungrand
Occasional Advisor

Re: Question about using /dev/tun

Thanks, FrankS! Now I am trying to get in touch with HP support team and see if they can help me on this. If we can figure out a solution, I will post it here...

Sungrand
Laurent Menase
Honored Contributor

Re: Question about using /dev/tun

Hi Frank and Sungrand,
What product are you trying to make for HPUX?
More than support, it is the business reps which should be contacted. The decision can only come from that part.
The question is not only technical.
The 2 possible channel to get anything there is:
1) your hp sales representative
2) the dspp. http://h21007.www2.hp.com/partner/iWantTo/1,2609,,00.html

sungrand
Occasional Advisor

Re: Question about using /dev/tun

Hi Laurent,

I have got in touch with HP. Thanks...

Sungrand
Laurent Menase
Honored Contributor

Re: Question about using /dev/tun

Hi Sungrand,
you can give my name@hp to your HP contact, if they want to have some technical discussions
on that