History log of /src/share/man/man9/sockopt.9 |
Revision | | Date | Author | Comments |
1.11 |
| 04-Jan-2018 |
christos | Add a new sockopt member to keep track of the actual size of the option that should be returned to the caller in getsockopt(2).
(Tom Ivar Helbekkmo)
|
1.10 |
| 16-Jan-2017 |
njoly | branches: 1.10.4; Last Nm macro line must not end with a comma.
|
1.9 |
| 16-Jan-2017 |
njoly | Add missing comma in NAME section.
|
1.8 |
| 02-Dec-2010 |
wiz | branches: 1.8.28; 1.8.32; Remove boilerplate in CODE REFERENCES on file paths. Describe in intro(9) how to read paths in the CODE REFERENCES section.
|
1.7 |
| 04-Sep-2009 |
plunky | confusing pooka. manpage improvements, sunshine returns.
|
1.6 |
| 03-Aug-2009 |
rmind | Mention kmem(9).
|
1.5 |
| 28-Oct-2008 |
wiz | Use .Er for error codes.
|
1.4 |
| 28-Oct-2008 |
plunky | clarify allocation/error return of sockopt_set()
|
1.3 |
| 13-Oct-2008 |
wiz | Bump date for previous, use Fx for FreeBSD.
|
1.2 |
| 12-Oct-2008 |
plunky | update to clarify that sockopt_init() may sleep sockopt_set() will not sleep
|
1.1 |
| 06-Aug-2008 |
plunky | branches: 1.1.2; 1.1.4; add man page for sockopt(9)
|
1.1.4.2 |
| 05-Oct-2008 |
mjf | Sync with HEAD.
|
1.1.4.1 |
| 06-Aug-2008 |
mjf | file sockopt.9 was added on branch mjf-devfs2 on 2008-10-05 20:11:23 +0000
|
1.1.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.1.2.1 |
| 06-Aug-2008 |
wrstuden | file sockopt.9 was added on branch wrstuden-revivesa on 2008-09-18 04:38:09 +0000
|
1.8.32.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.8.28.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.10.4.1 |
| 18-Mar-2018 |
martin | Pull up following revision(s) (requested by tih in ticket #639): sys/kern/uipc_socket.c: revision 1.258 sys/kern/uipc_socket.c: revision 1.259 sys/netinet/ip_input.c: revision 1.364 (via patch) sys/netinet/ip_output.c: revision 1.289 sys/netinet/in.h: revision 1.102 sys/netinet/in_pcb.c: revision 1.181 share/man/man9/sockopt.9: revision 1.11 sys/netinet/in_pcb.h: revision 1.65 sys/sys/socketvar.h: revision 1.146 sys/kern/uipc_syscalls.c: revision 1.189 sys/netinet/ip_output.c: revision 1.290 share/man/man4/ip.4: revision 1.41 share/man/man4/ip.4: revision 1.42 sys/kern/uipc_syscalls.c: revision 1.190
pass valsize for getsockopt like we do for setsockopt make sure that we have enough space, don't require the exact size (Tom Ivar Helbekkmo)
1) "#define ipi_spec_dst ipi_addr" in <netinet/in.h> 2) Change the IP_RECVPKTINFO option to control the generation of IP_PKTINFO control messages, the way it's done in Solaris. 3) Remove the superfluous IP_RECVPKTINFO control message. 4) Change the IP_PKTINFO option to do different things depending on the parameter it's supplied with: - If it's sizeof(int), assume it's being used as in Linux: - If it's non-zero, turn on the IP_RECVPKTINFO option. - If it's zero, turn off the IP_RECVPKTINFO option. - If it's sizeof(struct in_pktinfo), assume it's being used as in Solaris, to set a default for the source interface and/or source address for outgoing packets on the socket. 5) Return what Linux or Solaris compatible code expects, depending on data size, and just added a fallback to a Linux (and current NetBSD) compatible value if the size is unknown (as it is now), or, in the future, if the calling application specifies a receiving buffer that doesn't match either data item.
From: Tom Ivar Helbekkmo
new sentence-new line
Remove comment now that the getsockopt code passes the size.
Add a new sockopt member to keep track of the actual size of the option that should be returned to the caller in getsockopt(2). (Tom Ivar Helbekkmo)
|