Re: Source IP selection
- Reply: Ian Zimmerman : "Re: Source IP selection"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Feb 2023 21:45:19 UTC
It appears that Ian Zimmerman <possessor.assizer305@aceecat.org> said: >Hello, >how is the source IP address selected for an unbound socket, if there >are multiple addresses (ie. aliases) configured on the outgoing >interface? I am interested in particular in the UDP case, ie. >the sendto() syscall. >This is almost the question at the following link but ... not about >THAT kernel but FreeBSD. > >https://stackoverflow.com/questions/63955841/how-does-tcp-ip-select-a-source-ip-address Same answer, use bind() if you want to bind to a specific address. R's, John