[PATCH] Module for ip utility to support veth device

Patrick McHardy kaber at trash.net
Wed Jun 6 08:18:59 PDT 2007


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.


More information about the Containers mailing list