sctp_usrreq.c (33dabcc0) | sctp_usrreq.c (a10c3242) |
---|---|
1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 1994 unchanged lines hidden (view full) --- 2003 2004 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_AUTHEVNT)) 2005 events->sctp_authentication_event = 1; 2006 2007 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_DRYEVNT)) 2008 events->sctp_sender_dry_event = 1; 2009 2010 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT)) | 1/*- 2 * Copyright (c) 2001-2008, by Cisco Systems, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are met: 6 * 7 * a) Redistributions of source code must retain the above copyright notice, 8 * this list of conditions and the following disclaimer. --- 1994 unchanged lines hidden (view full) --- 2003 2004 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_AUTHEVNT)) 2005 events->sctp_authentication_event = 1; 2006 2007 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_DRYEVNT)) 2008 events->sctp_sender_dry_event = 1; 2009 2010 if (sctp_is_feature_on(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT)) |
2011 events->sctp_stream_reset_events = 1; | 2011 events->sctp_stream_reset_event = 1; |
2012 SCTP_INP_RUNLOCK(inp); 2013 *optsize = sizeof(struct sctp_event_subscribe); 2014 } 2015 break; 2016 2017 case SCTP_ADAPTATION_LAYER: 2018 { 2019 uint32_t *value; --- 1625 unchanged lines hidden (view full) --- 3645 if (stcb) { 3646 SCTP_TCB_UNLOCK(stcb); 3647 } 3648 } 3649 } else { 3650 sctp_feature_off(inp, SCTP_PCB_FLAGS_DRYEVNT); 3651 } 3652 | 2012 SCTP_INP_RUNLOCK(inp); 2013 *optsize = sizeof(struct sctp_event_subscribe); 2014 } 2015 break; 2016 2017 case SCTP_ADAPTATION_LAYER: 2018 { 2019 uint32_t *value; --- 1625 unchanged lines hidden (view full) --- 3645 if (stcb) { 3646 SCTP_TCB_UNLOCK(stcb); 3647 } 3648 } 3649 } else { 3650 sctp_feature_off(inp, SCTP_PCB_FLAGS_DRYEVNT); 3651 } 3652 |
3653 if (events->sctp_stream_reset_events) { | 3653 if (events->sctp_stream_reset_event) { |
3654 sctp_feature_on(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT); 3655 } else { 3656 sctp_feature_off(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT); 3657 } 3658 SCTP_INP_WUNLOCK(inp); 3659 } 3660 break; 3661 --- 1239 unchanged lines hidden --- | 3654 sctp_feature_on(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT); 3655 } else { 3656 sctp_feature_off(inp, SCTP_PCB_FLAGS_STREAM_RESETEVNT); 3657 } 3658 SCTP_INP_WUNLOCK(inp); 3659 } 3660 break; 3661 --- 1239 unchanged lines hidden --- |