[vlc-devel] [PATCH 2/2] access/udp: Define MSG_TRUNC on recv call

Ilkka Ollakka ileoo at videolan.org
Mon Oct 15 16:22:31 CEST 2018


On Mon, Oct 15, 2018 at 08:06:49AM +0200, Steve Lhomme wrote:
> On 13/10/2018 20:03, Ilkka Ollakka wrote:
> > -#ifdef MSG_TRUNC
> >       if (msg.msg_flags & MSG_TRUNC)

> You should test against trunc_flag like in the other patch. There's a chance
> MSG_TRUNC is not defined on many platforms.

Ah yes, good catch. Fixed that in new path.

> >       {
> >           msg_Err(access, "%zd bytes packet truncated (MTU was %zu)",
> > @@ -275,7 +279,6 @@ skip:
> >           sys->mtu = len;
> >       }
> >       else
> > -#endif
> >           pkt->i_buffer = len;
> >       return pkt;
> > -- 
> > 2.19.0

> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
Ilkka Ollakka
Let's do it.
		-- Gary Gilmore, to his firing squad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20181015/8996249b/attachment.sig>


More information about the vlc-devel mailing list