rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #01119
Re: tun2udp
On Fri, 14 Jun 2013 09:17:49 +0800,
宋鑫 <songxinwest@xxxxxxxxx> wrote:
> Yes, I know what you mean,but my question is about this:
>
> > For outcoming traffic :
> > 1/ read on TUN interface: you get one IP/UDP/RTP packet
>
> if I create a TUN, how to send a packet to a TUN with my
> application?
Send it as usual.
> For example, if my application create a RTP packet,
> without ROHC, I only need to use "sendto" to send this packet, but
> with ROHC, first I need to complete the RTP packet with IP/UDP
> header, then send this IP/UDP/RTP packet to TUN.
No, you don't need extra work. Use sendto as usual. That's why any stock
VoIP application will work without any change.
See https://en.wikipedia.org/wiki/TUN/TAP
Regards,
Didier
Attachment:
signature.asc
Description: PGP signature
Follow ups
References