Byonggon Chun
Byonggon Chun

Reputation: 45

How to get zone-id from interface index for send with ipv6 addr?

I have to get zone id from network interface index for send data with ipv6 addr.

Normally interface index number or interface name is used for zone id with ipv6 addr.

But someone told me interface name or index number is not zone id.

so... is there someone know how to get correct zone id from ifindex?

my system is linux/android/.

Upvotes: 1

Views: 551

Answers (1)

Sander Steffann
Sander Steffann

Reputation: 9978

The scope-id is actually the interface index number, so you can use that.

Upvotes: 2

Related Questions