diff options
author | tuexen <tuexen@FreeBSD.org> | 2011-05-29 18:41:06 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2011-05-29 18:41:06 +0000 |
commit | aff5c69fe1a8ec60d886d1b2a7b32baa84ad3422 (patch) | |
tree | d5a6ec27af78ddda1bd477aff6097fb54c7f4c05 /sys/netinet/sctp_indata.c | |
parent | 95e41991d897ca4ff49ab75bcbf9c81b72c1864f (diff) | |
download | FreeBSD-src-aff5c69fe1a8ec60d886d1b2a7b32baa84ad3422.zip FreeBSD-src-aff5c69fe1a8ec60d886d1b2a7b32baa84ad3422.tar.gz |
Get rid of unused functions.
MFC after: 1 week.
Diffstat (limited to 'sys/netinet/sctp_indata.c')
-rw-r--r-- | sys/netinet/sctp_indata.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sys/netinet/sctp_indata.c b/sys/netinet/sctp_indata.c index 9734aea..155e55c 100644 --- a/sys/netinet/sctp_indata.c +++ b/sys/netinet/sctp_indata.c @@ -247,49 +247,6 @@ sctp_build_ctl_nchunk(struct sctp_inpcb *inp, } -char * -sctp_build_ctl_cchunk(struct sctp_inpcb *inp, - int *control_len, - struct sctp_sndrcvinfo *sinfo) -{ - struct sctp_sndrcvinfo *outinfo; - struct cmsghdr *cmh; - char *buf; - int len; - int use_extended = 0; - - if (sctp_is_feature_off(inp, SCTP_PCB_FLAGS_RECVDATAIOEVNT)) { - /* user does not want the sndrcv ctl */ - return (NULL); - } - if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_EXT_RCVINFO)) { - use_extended = 1; - len = CMSG_LEN(sizeof(struct sctp_extrcvinfo)); - } else { - len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); - } - SCTP_MALLOC(buf, char *, len, SCTP_M_CMSG); - if (buf == NULL) { - /* No space */ - return (buf); - } - /* We need a CMSG header followed by the struct */ - cmh = (struct cmsghdr *)buf; - outinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmh); - cmh->cmsg_level = IPPROTO_SCTP; - if (use_extended) { - cmh->cmsg_type = SCTP_EXTRCV; - cmh->cmsg_len = len; - memcpy(outinfo, sinfo, len); - } else { - cmh->cmsg_type = SCTP_SNDRCV; - cmh->cmsg_len = len; - *outinfo = *sinfo; - } - *control_len = len; - return (buf); -} - static void sctp_mark_non_revokable(struct sctp_association *asoc, uint32_t tsn) { |