Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   christos
Date:           Mon Jan  1 00:51:36 UTC 2018

Modified Files:
        src/share/man/man4: ip.4
        src/sys/netinet: in.h in_pcb.c in_pcb.h ip_input.c ip_output.c
        src/sys/sys: param.h

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/share/man/man4/ip.4
cvs rdiff -u -r1.101 -r1.102 src/sys/netinet/in.h
cvs rdiff -u -r1.180 -r1.181 src/sys/netinet/in_pcb.c
cvs rdiff -u -r1.64 -r1.65 src/sys/netinet/in_pcb.h
cvs rdiff -u -r1.363 -r1.364 src/sys/netinet/ip_input.c
cvs rdiff -u -r1.288 -r1.289 src/sys/netinet/ip_output.c
cvs rdiff -u -r1.554 -r1.555 src/sys/sys/param.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index