On 4/23/22 11:17, Heinz Junkes wrote:
Unfortunately, I don't understand it.
If one would stick to the intended protocol, then wouldn't it work to simply route the packet content with the server address in it into the subnet?
Yes. As long as there is a reverse route for the IP source address.
Why is the server IP address not entered in the announcement server but '\xff\xff\xff\xff'?
Preferring the source address field in the IP header works better in the
presence of a firewall/router doing NAT.
...
if(ntohl(buf->serverIP)==0xffffffff) {
/* direct from the source */
self->nameserv.ia.sin_addr = peer->ia.sin_addr;
} else {
/* proxied */
self->nameserv.ia.sin_addr.s_addr = buf->serverIP;
}
...
This is the logic.
- References:
- Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
- Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Michael Davidsaver via Tech-talk
- Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
- Navigate by Date:
- Prev:
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
- Next:
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Han Lee via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
- Navigate by Thread:
- Prev:
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
- Next:
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Han Lee via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
<2022>
2023
2024
|