From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 287E7C433E0 for ; Sun, 10 Jan 2021 17:48:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E2AC722522 for ; Sun, 10 Jan 2021 17:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726346AbhAJRsm (ORCPT ); Sun, 10 Jan 2021 12:48:42 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:57270 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726263AbhAJRsm (ORCPT ); Sun, 10 Jan 2021 12:48:42 -0500 Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id 024D872C8B0; Sun, 10 Jan 2021 20:48:00 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id E6DFE7CC89F; Sun, 10 Jan 2021 20:47:59 +0300 (MSK) Date: Sun, 10 Jan 2021 20:47:59 +0300 From: "Dmitry V. Levin" To: Pali =?utf-8?B?Um9ow6Fy?= Cc: linux-man@vger.kernel.org, Alejandro Colomar , Michael Kerrisk Subject: Re: [PATCH v2] netdevice.7: Update documentation for SIOCGIFADDR SIOCSIFADDR SIOCDIFADDR Message-ID: <20210110174759.GC25737@altlinux.org> References: <20210102140254.16714-1-pali@kernel.org> <20210102183952.4155-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210102183952.4155-1-pali@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org On Sat, Jan 02, 2021 at 07:39:52PM +0100, Pali Rohár wrote: > Also add description for struct in6_ifreq which is used for IPv6 addresses. > > SIOCSIFADDR and SIOCDIFADDR can be used to add or delete IPv6 address and > pppd is using these ioctls for a long time. Surprisingly SIOCDIFADDR cannot > be used for deleting IPv4 address but only for IPv6 addresses. Unlike SIOCGIFADDR and SIOCSIFADDR which are supported by many protocol families, SIOCDIFADDR is supported by AF_INET6 and AF_APPLETALK only. -- ldv