Re: [PATCH] implement SO_ACCEPTCONN in pflocal

2013-09-07 Thread Samuel Thibault
Pino Toscano, le Sat 07 Sep 2013 18:47:23 +0200, a écrit : > + case SO_ACCEPTCONN: > + assert (*value_len >= sizeof (int)); > + *(int *)*value = user->sock->addr != NULL ? 1 : 0; Shouldn't that rather be looking at what S_socket_listen does? AIUI, SO_ACCEPTCONN returns whether lis

[PATCH] implement SO_ACCEPTCONN in pflocal

2013-09-07 Thread Pino Toscano
Hi, attached there is the (simple) implementation of the read-only SO_ACCEPTCONN socket option in pflocal. (pfinet could need it too, just need to dig into its Linux code more.) May I push it? Thanks, -- Pino Toscano>From 18d76905be35500afdb8ef47c1086f6376540da4 Mon Sep 17 00:00:00 2001 From: