FwMarkServer: include space for scope

bionic/libc/dns/net/getnameinfo.c does return scope...

Example IPv6 addresses (IPv4 is comparatively short of course)

1111:2222:3333:4444:5555:6666:7777:8888\0 <= 8*5 = 40
1111:2222:3333:4444:5555:6666:123.123.123.123\0 <= 6*5 + 4*4 = 46
fe80:2222:3333:4444:5555:6666:7777:8888%DEV...\0 <= 8*5 + 16 = 56

it's not clear whether 46 + 16 == 62 case can happen as well...

ping6 fe80:1111:2222:3333:4444:5555:123.123.123.123%enx00112233445566
does work (as in parse the address),

[even though more normal is fe80::1122:33ff:fe44:5566%rmnet0]

note: scope u32 can be numeric too, but that's only 10 characters

FYI we have:
// actually too short (ie. no space for scope for link local ips)
INET6_ADDRSTRLEN == 46
// Max Linux interface name is 15 char + null
IFNAMSIZ == 16

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I6af19305e9ca13b2a633b8be4fb5533cd67d19ea
1 file changed
tree: bfd64ca7cfcfcb0da3799e0c38e8a4fd4c82264a
  1. client/
  2. include/
  3. netutils_wrappers/
  4. server/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. NOTICE
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING