Add Linux/BSD switch for Unix auth.
[doldaconnect.git] / daemon / net.h
index 7d63981..6457033 100644 (file)
@@ -20,6 +20,7 @@
 #define _NET_H
 
 #include <sys/socket.h>
+#include <sys/un.h>
 
 #define SOCK_LST 0 /* Listening */
 #define SOCK_SYN 1 /* Connecting */
@@ -54,6 +55,11 @@ struct socket
     int close;
     struct sockaddr *remote;
     socklen_t remotelen;
+    struct
+    {
+       uid_t uid;
+       gid_t gid;
+    } ucred;
     union
     {
        struct