Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- src/sys/sys/socket.h.orig 2011-02-16 16:18:46.000000000 +0200
- +++ src/sys/sys/socket.h 2011-11-21 05:02:21.000000000 +0200
- @@ -140,6 +140,8 @@
- #define SO_LISTENINCQLEN 0x1013 /* socket's incomplete queue length */
- #define SO_USETFIB 0x1014 /* use this FIB to route */
- #endif
- +#define SO_PROTO 0x1015
- +#define SO_PROTOCOL SO_PROTO
- /*
- * Structure used for manipulating linger option.
- --- src/sys/kern/uipc_socket.c.orig 2011-02-16 16:18:46.000000000 +0200
- +++ src/sys/kern/uipc_socket.c 2011-11-21 05:05:09.000000000 +0200
- @@ -2734,6 +2734,10 @@
- optval = so->so_type;
- goto integer;
- + case SO_PROTO:
- + optval = so->so_proto->pr_protocol;
- + goto integer;
- +
- case SO_LISTENQLEN:
- optval = so->so_qlen;
- goto integer;
Add Comment
Please, Sign In to add comment