Fix listing of interfaces with ID > 255

get_ifi_info_linuxv6 only reads up to 2 hexadecimal characters for
interface indexes, so interface indexes above 255 cannot be used.

Use %x instead of %02x to remove this limitation. This is what upstream
used up to version 878.270.2, after which mdnsresponder stopped using
/proc to list interfaces. Only the interface index reading is changed to
keep the change minimal.

Test: atest NsdManagerTest --rerun-until-failure 100
Bug: 235797641
Change-Id: Iddca5052e7d76bc7878f0442acb9ccd67cbb620f
(cherry picked from commit e9c96727e7e42c0ef6ff8edf79087b81a5fb5082)
Merged-In: Iddca5052e7d76bc7878f0442acb9ccd67cbb620f
1 file changed