Re: Use selected source IP when replying to reflecting ICMP

2020-11-08 Thread Martin Pieuchot
On 08/11/20(Sun) 18:05, Denis Fondras wrote: > ICMP error replies are sent from the IP of the interface the packet came in > even > when the source IP was forced with route(8). icmp_reflect() is called without the KERNEL_LOCK(). rtable_getsource() and ifa_ifwithaddr() are not safe to do so. So

Use selected source IP when replying to reflecting ICMP

2020-11-08 Thread Denis Fondras
ICMP error replies are sent from the IP of the interface the packet came in even when the source IP was forced with route(8). Index: netinet/ip_icmp.c === RCS file: /cvs/src/sys/netinet/ip_icmp.c,v retrieving revision 1.183 diff -u -p