OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Virtual ethernet device (v.4)
Re: [PATCH] Module for ip utility to support veth device [message #18777 is a reply to message #15113] Wed, 06 June 2007 15:18 Go to previous messageGo to previous message
Patrick McHardy is currently offline  Patrick McHardy
Messages: 107
Registered: March 2006
Senior Member
Pavel Emelianov wrote:
> diff --git a/ip/iplink.c b/ip/iplink.c
> index 5170419..6975990 100644
> --- a/ip/iplink.c
> +++ b/ip/iplink.c
> @@ -287,7 +287,7 @@ static int iplink_modify(int cmd, unsign
>  			 strlen(type));
>  
>  		lu = get_link_type(type);
> -		if (lu) {
> +		if (lu && argc) {
>  			struct rtattr * data = NLMSG_TAIL(&req.n);
>  			addattr_l(&req.n, sizeof(req), IFLA_INFO_DATA, NULL, 0);


I've folded this part into my iproute patch, thanks.
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [RFC][PATCH] Make access to taks's nsproxy liter
Next Topic: Re: [RFC][PATCH] Make access to taks's nsproxy liter
Goto Forum:
  


Current Time: Sun Aug 24 22:31:17 GMT 2025

Total time taken to generate the page: 0.09221 seconds