From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A581245761; Thu, 8 Aug 2024 00:23:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 377CC4066F; Thu, 8 Aug 2024 00:23:12 +0200 (CEST) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id DABD9402AD for ; Thu, 8 Aug 2024 00:23:10 +0200 (CEST) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1fd78c165eeso3315065ad.2 for ; Wed, 07 Aug 2024 15:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1723069390; x=1723674190; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=go1N8wvvq38eVdrj4nul9WG0ULmhX5EK4/eBPEb+YV4=; b=gFvmmryPz9VRDSMmHNpTNgMsIntcaNa9E3c3fiMgHwtF+3hhgaHthVqLLyJgt9FCHh Fo5uaZmWGI5TujlLB15uaRk5RsgTJDemukJUkcSCwdNXs2rINKMwimnhEec2Mv470hs4 /JkUjDv0q17VpBZERG6RDOyeJ3itldCSYMQbrrUhLC9VGm1o2llael7RiQxInYV62JxU z0aq6rMjyJ6lAz1s2+x1wcoH2OUjHor7OWR55jh0a7ObnMSQu8HVO5DRkEXj6CqCfyNu PwOGYaur88dN/NgEjDC1sj9KTfvn2o0X5GPFZqLqfQ9xyrg3yUA4vlzK+LWulxcgpi4R EFdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723069390; x=1723674190; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=go1N8wvvq38eVdrj4nul9WG0ULmhX5EK4/eBPEb+YV4=; b=VDp5uGFSRZz0ylz4qZPQKsE73Ep3zhBknpueHFilIohEQBQd2bI/ShkTyUT+wIIw8W PLKQVmxHVbngtA/bSfZfhRUmCybE+nrmieHOCJEL0syZM2tkcTZQWTRNGdCd6YTYCx9A a+h5qjnfNjdmxYnrMDndM18+xqykTTnXxOaWpK8C+3HNiY9b+Jdfsrj/6BxHBEc4uG3h 2s/Gxyt4nDIdDqPTLTmyBCdPLmnFN+ZNXl2C31nOYr/Cu4uMuimEmxRpQ39FPoHXvyrF ZvZvlkQAeZx/BarNtn5Neck5OKn/BmZrn/RI4u32zH0eOK6qeR6VDG02xAo2xycZ0cwv qt9g== X-Gm-Message-State: AOJu0YzrG6FAIRtOfsd4WEPSRzVsPaWaoT8JYinGRQccNCx6vVFUvJ69 f4gYMuetk0RJtVq76kUq2ayYMFsjMIjxxd0A5RwCRj6+yXNC8Id3JY3UJ7nJPnPBJ1B1E2iWDsr q X-Google-Smtp-Source: AGHT+IFLoDx4r5s8h2rJsyveoqJV+6sH+EgfVRX1jL/7T2eS7YkuY9V5LKAN0fDe3WZ4O6FFGZgPhg== X-Received: by 2002:a17:902:d2ce:b0:200:8d3f:bb8e with SMTP id d9443c01a7336-200952e2ad9mr1002195ad.51.1723069389643; Wed, 07 Aug 2024 15:23:09 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff59058cc6sm111648905ad.123.2024.08.07.15.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 15:23:09 -0700 (PDT) Date: Wed, 7 Aug 2024 15:23:07 -0700 From: Stephen Hemminger To: Tyler Retzlaff Cc: dev@dpdk.org Subject: Re: Portable alternative to inet_ntop? Message-ID: <20240807152307.6de652f6@hermes.local> In-Reply-To: <20240806053527.GA19300@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20240724092113.4977b047@hermes.local> <20240806053527.GA19300@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Mon, 5 Aug 2024 22:35:27 -0700 Tyler Retzlaff wrote: > On Wed, Jul 24, 2024 at 09:21:13AM -0700, Stephen Hemminger wrote: > > The function inet_ntop is useful to make printable addresses for debugging. > > It is available on Linux and FreeBSD but not on Windows. > > i know my reply is late. but the following wasn't usable? > https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_ntop > it isn't wide (PSTR). > > i know trying to use winsock headers is a mess though so if it is hard > duplicating seems fine. i would not be unhappy for more generalized apis > to be built up within dpdk to avoid the platform coupling. > > ty I got inet_ntop to work on windows (as long as the right includes are used).