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

Re: [Minios-devel] [External] [UNIKRAFT/LIBLWIP PATCH] lwip: Add compile guard for struct ifconf


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>, Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
  • From: "Jung, Alexander" <a.jung@xxxxxxxxxxxxxxx>
  • Date: Sun, 2 Feb 2020 13:44:10 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=lancaster.ac.uk; dmarc=pass action=none header.from=lancaster.ac.uk; dkim=pass header.d=lancaster.ac.uk; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TkJqXod+LG+1pi4R0PCA17k657xPCGh9lO1cPUeGBe4=; b=gjrI5E3pDXFsnPZGL22RqDjblGvzv2W3PlU4OjT1QM3620m2QlaWTUId2RJCHSZaCQg4GQvojLu9o0OidLX3pzoniDPx2CpAyKXZjYnTLIoseJ2I+/ixSrcJ51TGo3h0A3J2e1ip+ATlhcmfKaoiJndhWhtWaJg3OvhWjgPk2g+Bx4G+4Rkvi74/oWemaA4/qpR6MVzB8XSjF8HDPsY37jzwXKacIgR+gNdrJgOOWifpKMBqDjlOnk91yapxkwAOgOelhkQZ1YkKjLNEndGoaXL4xgmkMjFeYFpiC2afTRgdhuDULLvHozo2FMtkI2znmQ9+uylLm7ha5qgpisLPmA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DS/ddB6yV1bNnpkaRW+RoUbjIimcKBQXbEHHvIFmRb3TbPJya0Fj5+spwrZLV0sPl4dEPDFSgJQDuFX7vHlwIzjTdusR33Qw3hQnPtJpWWSgrXwQ9BonumMjX6mIl2CmN4gr+0GJxP0e77zSnRPmO1UAsqvOtgAqlbD8BmUJvSIVv3vn+ykDjnIIAMWnp1QwkxT/GhSp4y/ojMR0pL0G+hMOdRG1ACkf56qCgI5qKh7lQsl/OwFoNhqF+qjoyNfk27tJ67DP4dspO1Xl8iyDn6tkjMAtnpm8NcArAyV0aGKnun+G/WLz0guTMbCFkwZ2zDBvCKQxn7X9qikgFE0Kzw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=a.jung@xxxxxxxxxxxxxxx;
  • Delivery-date: Mon, 03 Feb 2020 11:15:59 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHV2c46jc4k8+YDh0KpQxLRzYld3qgH+tgA
  • Thread-topic: [External] [Minios-devel] [UNIKRAFT/LIBLWIP PATCH] lwip: Add compile guard for struct ifconf

Tested as working for app-python3 via lib-python3.

Tested-by: Alexander Jung <a.jung@xxxxxxxxxxx>

On 02.02.20, 14:39, "Minios-devel on behalf of Sharan Santhanam" 
<minios-devel-bounces@xxxxxxxxxxxxxxxxxxxx on behalf of 
sharan.santhanam@xxxxxxxxx> wrote:

    This email originated outside the University. Check before clicking links 
or attachments.
    
    Fix to disable redefinition of struct ifconf from python
    
    Signed-off-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx>
    ---
     include/net/if.h | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/include/net/if.h b/include/net/if.h
    index 1eb11d8..4eadc6d 100644
    --- a/include/net/if.h
    +++ b/include/net/if.h
    @@ -26,6 +26,7 @@ char *if_indextoname (unsigned int, char *);
     #define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST| \
             IFF_ECHO|IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT)
    
    +#if defined(_BSD_SOURCE)
     struct ifconf {
            int ifc_len;
            union {
    @@ -33,6 +34,7 @@ struct ifconf {
                    struct ifreq *ifcu_req;
            } ifc_ifcu;
     };
    +#endif /* _BSD_SOURCE */
     #define ifc_buf         ifc_ifcu.ifcu_buf
     #define ifc_req         ifc_ifcu.ifcu_req
    
    --
    2.7.4
    
    
    _______________________________________________
    Minios-devel mailing list
    Minios-devel@xxxxxxxxxxxxxxxxxxxx
    
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.xenproject.org%2Fmailman%2Flistinfo%2Fminios-devel&amp;data=02%7C01%7Ca.jung%40lancaster.ac.uk%7Cc895175ed4814bf794c208d7a7e55b9f%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637162475838368581&amp;sdata=hzJVckQ0kJZHmo2fzWWjooW16uEmfFQWeYG%2FzhLdf0o%3D&amp;reserved=0
    

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.