Re: [PATCH net] sock: reset sk_err when the error queue is empty

2017-06-04 Thread David Miller
From: Soheil Hassas Yeganeh Date: Fri, 2 Jun 2017 12:38:22 -0400 > From: Soheil Hassas Yeganeh > > Prior to f5f99309fa74 (sock: do not set sk_err in > sock_dequeue_err_skb), sk_err was reset to the error of > the skb on the head of the error queue. > > Applications, most notably ping, are rel

[PATCH net] sock: reset sk_err when the error queue is empty

2017-06-02 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh Prior to f5f99309fa74 (sock: do not set sk_err in sock_dequeue_err_skb), sk_err was reset to the error of the skb on the head of the error queue. Applications, most notably ping, are relying on this behavior to reset sk_err for ICMP packets. Set sk_err to the ICMP er