__u16 inbound, unsigned int __nocast gfp) 
__u16 inbound, gfp_t gfp) 
struct sctp_ulpevent  *sctp_ulpevent_make_assoc_change(	const struct sctp_association *asoc,	__u16 flags, __u16 state, __u16 error, __u16 outbound,	__u16 inbound, unsigned int __nocast gfp){	struct sctp_ulpevent *event;	struct sctp_assoc_change *sac;	struct sk_buff *skb;	event = sctp_ulpevent_new(sizeof(struct sctp_assoc_change),				  MSG_NOTIFICATION, gfp);	if (!event)		goto fail;	skb = sctp_event2skb(event);	sac = (struct sctp_assoc_change *)		skb_put(skb, sizeof(struct sctp_assoc_change));	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_type:	 * It should be SCTP_ASSOC_CHANGE.	 */	sac->sac_type = SCTP_ASSOC_CHANGE;	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_state: 32 bits (signed integer)	 * This field holds one of a number of values that communicate the	 * event that happened to the association.	 */	sac->sac_state = state;	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_flags: 16 bits (unsigned integer)	 * Currently unused.	 */	sac->sac_flags = 0;	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_length: sizeof (__u32)	 * This field is the total length of the notification data, including	 * the notification header.	 */	sac->sac_length = sizeof(struct sctp_assoc_change);	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_error:  32 bits (signed integer)	 *	 * If the state was reached due to a error condition (e.g.	 * COMMUNICATION_LOST) any relevant error information is available in	 * this field. This corresponds to the protocol error codes defined in	 * [SCTP].	 */	sac->sac_error = error;	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_outbound_streams:  16 bits (unsigned integer)	 * sac_inbound_streams:  16 bits (unsigned integer)	 *	 * The maximum number of streams allowed in each direction are	 * available in sac_outbound_streams and sac_inbound streams.	 */	sac->sac_outbound_streams = outbound;	sac->sac_inbound_streams = inbound;	/* Socket Extensions for SCTP	 * 5.3.1.1 SCTP_ASSOC_CHANGE	 *	 * sac_assoc_id: sizeof (sctp_assoc_t)	 *	 * The association id field, holds the identifier for the association.	 * All notifications for a given association have the same association	 * identifier.  For TCP style socket, this field is ignored.	 */	sctp_ulpevent_set_owner(event, asoc);	sac->sac_assoc_id = sctp_assoc2id(asoc);	return event;fail:	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/dd0fc66fb33cd610bc1a5db8a5e232d34879b4d7/ulpevent.c/buggy/net/sctp/ulpevent.c