[CRIU] [PATCH 1/2] sk-inet: handle the IP_FREEBIND option

Andrew Vagin avagin at virtuozzo.com
Thu Nov 19 04:39:31 PST 2015


On Thu, Nov 19, 2015 at 03:31:43PM +0300, Pavel Emelyanov wrote:
> 
> > @@ -230,10 +230,19 @@ err:
> >  	return NULL;
> >  }
> >  
> > +static int dump_ip_opts(int sk, IpOptsEntry *ioe)
> > +{
> > +	int ret = 0;
> > +
> 
> Should we also set has_freebind to true here?

Yes, you are right. Will fix.

> 
> > +	ret |= dump_opt(sk, SOL_IP, IP_FREEBIND, &ioe->freebind);
> > +
> > +	return ret;
> > +}
> >  static int do_dump_one_inet_fd(int lfd, u32 id, const struct fd_parms *p, int family)
> >  {
> >  	struct inet_sk_desc *sk;
> >  	InetSkEntry ie = INET_SK_ENTRY__INIT;
> > +	IpOptsEntry ipopts = IP_OPTS_ENTRY__INIT;
> >  	SkOptsEntry skopts = SK_OPTS_ENTRY__INIT;
> >  	int ret = -1, err = -1, proto;
> >  
> 


More information about the CRIU mailing list