← Back to team overview

rohc team mailing list archive

Re: tun2udp

 

About ROHC I would like to ask you for the call before compression of IP /
UDP / RTP packet, how are the IP / UDP headers come from?
For example, if do not use ROHC, we can directly send RTP packets to the
peer through the UDP socket,  use the "sendto" function which will
automatically fix the packet with IP / UDP header
But with ROHC, before send the ROHC packet I need to fix all headers.
if use tun, the packet read from it is a complete IP packet, how to wirte a
IP packet to the tun?
I want to know how you solve this problem or similar problems


2013/6/4 Didier Barvaux <didier@xxxxxxxxxxx>

> Hello 宋鑫,
>
> > Thank you, now I know what you means,but I still have a question
> > The tunnel is created between a tun and a raw socket,
> > How to send a IP/UDP/RTP packet to a virtual interface?
>
> The same way you would do it on a real network interface: you configure
> IP routing to reach the VoIP endpoint through the network interface of
> the IP/ROHC tunnel, then you use the SIP phone as usual.
>
> Regards,
> Didier
>
> _______________________________________________
> Mailing list: https://launchpad.net/~rohc
> Post to     : rohc@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~rohc
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References