Hello!
> I have a question though: If this method is ever called to send an RST,
> will it work?
Work for what? This method is used when you have no socket in the system
matching to this skb. :-)
> What about this part, do you think it is not needed either? It appeared
> to me that w/out this, the sending socket and the receiving socket
...
> sending one, unfortunately).
No, this is impossible. addrs/ports identity identifies socket unambiguously.
But even this does not matter, your patch is noop by much simpler pure
"syntactical" reason, it copies req->bound_dev_if from listening socket.
And after this the check in lookup req degenerates to TRUE __identitically__.
:-)
Alexey
|