/* Throw away all pending data on the socket.  */
void ip_flush_pending_frames(struct sock *sk)
/* Throw away all pending data on the socket.  */
void ip_flush_pending_frames(struct sock *sk)
{
	struct sk_buff *skb;
	while ((skb = __skb_dequeue_tail(&sk->sk_write_queue)) != NULL)
		kfree_skb(skb);
	ip_cork_release(inet_sk(sk));
}