Module Name: src Committed By: rtr Date: Wed Jul 30 06:53:53 UTC 2014
Modified Files: src/sys/netinet: tcp_usrreq.c Log Message: put boilerplate extraction of inpcb or in6pcb and tcpcb performed in tcp usrreqs into a function that can be called instead of cut & pasting it to every single usrreq function. tcp_getpcb(struct socket *, struct inpcb **, struct in6pcb **, struct tcpcb **) * examines the family of the provided socket and fills in either inpcb or in6pcb and tcpcb. * if the pcb is not present for the family of the socket EINVAL is returned, if the family is not AF_INET{,6} EAFNOSUPPORT is returned. signature provided by and patch reviewed by rmind To generate a diff of this commit: cvs rdiff -u -r1.191 -r1.192 src/sys/netinet/tcp_usrreq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.