git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git daemon and v6-only

From
JGJeff Garzik <jeff@garzik.org>
Date
Mar 22, 2006, 05:04 UTC
Message-ID
<4420DAF4.7070406@garzik.org>
Regarding the following code in daemon.c socksetup():
Show 8 quoted lines
> #ifdef IPV6_V6ONLY
>                 if (ai->ai_family == AF_INET6) {
>                         int on = 1;
>                         setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY,
>                                    &on, sizeof(on));
>                         /* Note: error is not fatal */
>                 }
> #endif

On Linux this causes you to bind separately to v4 and v6 interfaces, avoiding the default (desired) behavior of using a single socket for both v4 and v6.

	Jeff
Message 1 of 1 in “git daemon and v6-only”
  1. Jeff GarzikMar 22, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.