public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add AF_VSOCK support to getnameinfo(3) and getaddrinfo(3)
@ 2016-09-29 10:27 Stefan Hajnoczi
  2016-09-29 10:27 ` [RFC PATCH 1/2] getnameinfo: Add AF_VSOCK support Stefan Hajnoczi
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Stefan Hajnoczi @ 2016-09-29 10:27 UTC (permalink / raw)
  To: libc-alpha; +Cc: Jorgen Hansen, Stefan Hajnoczi

The AF_VSOCK address family has been available in Linux since 3.9.  It allows
virtual machines and hypervisors to communicate over a zero-configuration
transport without Ethernet or IP.

Many existing programs use getnameinfo(3) and getaddrinfo(3).  Porting programs
to support AF_VSOCK is easy if the library functions can handle this address
family.  Without support in glibc each program needs to duplicate address
parsing code and it becomes harder to port programs.

In Patch 1 I have commented on use of the <linux/vm_sockets.h> header which
declares struct sockaddr_vm.  I'm not familiar with the process for syncing
Linux uapi headers with glibc headers.  What is necessary to use this header
file (or write an equivalent inside glibc)?

I used #ifdef AF_VSOCK since not all the sysdeps/ will have this macro defined.
Is there a nicer way of handling this?

Stefan Hajnoczi (2):
  getnameinfo: Add AF_VSOCK support
  getaddrinfo: Add AF_VSOCK support

 inet/getnameinfo.c          |  52 ++++++++++++++++++++++
 sysdeps/posix/getaddrinfo.c | 104 ++++++++++++++++++++++++++++++++++++++------
 2 files changed, 143 insertions(+), 13 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-12-06 13:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 10:27 [RFC PATCH 0/2] Add AF_VSOCK support to getnameinfo(3) and getaddrinfo(3) Stefan Hajnoczi
2016-09-29 10:27 ` [RFC PATCH 1/2] getnameinfo: Add AF_VSOCK support Stefan Hajnoczi
2016-09-29 10:27 ` [RFC PATCH 2/2] getaddrinfo: " Stefan Hajnoczi
2016-10-06 11:04   ` Florian Weimer
2016-09-29 13:26 ` [RFC PATCH 0/2] Add AF_VSOCK support to getnameinfo(3) and getaddrinfo(3) Florian Weimer
2016-09-30 11:11   ` Stefan Hajnoczi
2016-10-06  9:07     ` Stefan Hajnoczi
2016-10-06 11:19     ` Florian Weimer
2016-10-07 14:02       ` Florian Weimer
2016-12-05 15:58         ` Stefan Hajnoczi
2016-12-05 16:02           ` Florian Weimer
2016-12-06 13:29             ` Stefan Hajnoczi
2016-10-07 15:05       ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).