dccp_hdr_set_seq(dh, DCCP_SKB_CB(rxskb)->dccpd_ack_seq); 
/* See "8.3.1. Abnormal Termination" in draft-ietf-dccp-spec-11 */ seqno = 0; if (DCCP_SKB_CB(rxskb)->dccpd_ack_seq != DCCP_PKT_WITHOUT_ACK_SEQ) dccp_set_seqno(&seqno, DCCP_SKB_CB(rxskb)->dccpd_ack_seq + 1);  dccp_hdr_set_seq(dh, seqno); 
static void dccp_v4_ctl_send_reset(struct sk_buff *rxskb){	int err;	struct dccp_hdr *rxdh = dccp_hdr(rxskb), *dh;	const int dccp_hdr_reset_len = sizeof(struct dccp_hdr) +				       sizeof(struct dccp_hdr_ext) +				       sizeof(struct dccp_hdr_reset);	struct sk_buff *skb;	struct dst_entry *dst;	/* Never send a reset in response to a reset. */	if (rxdh->dccph_type == DCCP_PKT_RESET)		return;	if (((struct rtable *)rxskb->dst)->rt_type != RTN_LOCAL)		return;	dst = dccp_v4_route_skb(dccp_ctl_socket->sk, rxskb);	if (dst == NULL)		return;	skb = alloc_skb(MAX_DCCP_HEADER + 15, GFP_ATOMIC);	if (skb == NULL)		goto out;	/* Reserve space for headers. */	skb_reserve(skb, MAX_DCCP_HEADER);	skb->dst = dst_clone(dst);	skb->h.raw = skb_push(skb, dccp_hdr_reset_len);	dh = dccp_hdr(skb);	memset(dh, 0, dccp_hdr_reset_len);	/* Build DCCP header and checksum it. */	dh->dccph_type	   = DCCP_PKT_RESET;	dh->dccph_sport	   = rxdh->dccph_dport;	dh->dccph_dport	   = rxdh->dccph_sport;	dh->dccph_doff	   = dccp_hdr_reset_len / 4;	dh->dccph_x	   = 1;	dccp_hdr_reset(skb)->dccph_reset_code =				DCCP_SKB_CB(rxskb)->dccpd_reset_code;	dccp_hdr_set_seq(dh, DCCP_SKB_CB(rxskb)->dccpd_ack_seq);	dccp_hdr_set_ack(dccp_hdr_ack_bits(skb),			 DCCP_SKB_CB(rxskb)->dccpd_seq);	dh->dccph_checksum = dccp_v4_checksum(skb, rxskb->nh.iph->saddr,					      rxskb->nh.iph->daddr);	bh_lock_sock(dccp_ctl_socket->sk);	err = ip_build_and_send_pkt(skb, dccp_ctl_socket->sk,				    rxskb->nh.iph->daddr,				    rxskb->nh.iph->saddr, NULL);	bh_unlock_sock(dccp_ctl_socket->sk);	if (err == NET_XMIT_CN || err == 0) {		DCCP_INC_STATS_BH(DCCP_MIB_OUTSEGS);		DCCP_INC_STATS_BH(DCCP_MIB_OUTRSTS);	}out:	 dst_release(dst);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2807d4ffb0dccb8f932c3e1701b6b6163153d333/ipv4.c/clean/net/dccp/ipv4.c