Rans4ckeR / RS.Fritz.Manager

A .NET library and Windows WPF app for FritzBox devices using WCF.
7 stars 1 forks source link

In Hosts service Index numbers of HostLists and GenericHostEntry do not match #23

Closed RoSchmi closed 2 years ago

RoSchmi commented 2 years ago

In the list the indices start with '1' in GenericHostEntry they start with '0'.

Rans4ckeR commented 2 years ago

@RoSchmi the devicehostlist.xml as coming from the device indeed starts with index 1 while the service GetGenericHostEntry request is 0 based. There is no guaranteed mapping between the 2. When requesting GetGenericHostEntry with the same index several times in a row I get a different host in the response.

RoSchmi commented 2 years ago

When requesting GetGenericHostEntry with the same index several times in a row I get a different host in the response. I cannot confirm your observation on my Fritzbox. When I enter an index number several times, I always get the same host as response. To get a host from the Hostslist with a certain index I have to enter this index -1.

Rans4ckeR commented 2 years ago

@RoSchmi It's still possible to retrieve GetGenericHostEntry entries using a raw unaltered value (0 based) but I added automatic retrieval of all entries. When retrieving all the GetGenericHostEntry entries at the same time as retrieving the xml list they always seem to match at my end.