qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv7 3/9] slirp: Adding IPv6 UDP support


From: Samuel Thibault
Subject: Re: [Qemu-devel] [PATCHv7 3/9] slirp: Adding IPv6 UDP support
Date: Tue, 9 Feb 2016 22:13:59 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Thomas Huth, on Tue 09 Feb 2016 21:44:18 +0100, wrote:
> > +       case AF_INET6:
> > +           udp6_output(so, m, (struct sockaddr_in6 *) &saddr,
> > +                       (struct sockaddr_in6 *) &daddr);
> > +           break;
> >         default:
> > +           g_assert_not_reached();
> 
> Could this be triggered by the guest?

No, here we are in sorecvfrom, which only reads ipv4 or ipv6 packets
from the udp socket.

> > +    so->so_ffamily = AF_INET6;
> > +    so->so_faddr6 = ip->ip_dst; /* XXX */
> > +    so->so_fport6 = uh->uh_dport; /* XXX */
> 
> Why use the XXXs here? Some additional words in the comments would be
> nice...

That's a copy/paste from the UDPv4 code.  I don't know why they are there.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]