sctp_output.c (234461) | sctp_output.c (234951) |
---|---|
1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2008-2011, by Randall Stewart. All rights reserved. 4 * Copyright (c) 2008-2011, by Michael Tuexen. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are met: 8 * --- 19 unchanged lines hidden (view full) --- 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33/* $KAME: sctp_output.c,v 1.46 2005/03/06 16:04:17 itojun Exp $ */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 234461 2012-04-19 13:11:17Z tuexen $"); | 36__FBSDID("$FreeBSD: head/sys/netinet/sctp_output.c 234951 2012-05-03 10:26:33Z tuexen $"); |
37 38#include <netinet/sctp_os.h> 39#include <sys/proc.h> 40#include <netinet/sctp_var.h> 41#include <netinet/sctp_sysctl.h> 42#include <netinet/sctp_header.h> 43#include <netinet/sctp_pcb.h> 44#include <netinet/sctputil.h> --- 3380 unchanged lines hidden (view full) --- 3425 sndrcvinfo->sinfo_flags |= prinfo.pr_policy; 3426 break; 3427 case SCTP_AUTHINFO: 3428 if ((size_t)(cmh.cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr))) < sizeof(struct sctp_authinfo)) { 3429 return (found); 3430 } 3431 m_copydata(control, at + CMSG_ALIGN(sizeof(struct cmsghdr)), sizeof(struct sctp_authinfo), (caddr_t)&authinfo); 3432 sndrcvinfo->sinfo_keynumber_valid = 1; | 37 38#include <netinet/sctp_os.h> 39#include <sys/proc.h> 40#include <netinet/sctp_var.h> 41#include <netinet/sctp_sysctl.h> 42#include <netinet/sctp_header.h> 43#include <netinet/sctp_pcb.h> 44#include <netinet/sctputil.h> --- 3380 unchanged lines hidden (view full) --- 3425 sndrcvinfo->sinfo_flags |= prinfo.pr_policy; 3426 break; 3427 case SCTP_AUTHINFO: 3428 if ((size_t)(cmh.cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr))) < sizeof(struct sctp_authinfo)) { 3429 return (found); 3430 } 3431 m_copydata(control, at + CMSG_ALIGN(sizeof(struct cmsghdr)), sizeof(struct sctp_authinfo), (caddr_t)&authinfo); 3432 sndrcvinfo->sinfo_keynumber_valid = 1; |
3433 sndrcvinfo->sinfo_keynumber = authinfo.auth_keyid; | 3433 sndrcvinfo->sinfo_keynumber = authinfo.auth_keynumber; |
3434 break; 3435 default: 3436 return (found); 3437 } 3438 found = 1; 3439 } 3440 } 3441 at += CMSG_ALIGN(cmh.cmsg_len); --- 10559 unchanged lines hidden --- | 3434 break; 3435 default: 3436 return (found); 3437 } 3438 found = 1; 3439 } 3440 } 3441 at += CMSG_ALIGN(cmh.cmsg_len); --- 10559 unchanged lines hidden --- |