commit | 5e5e5e9a733d9427064f6fb0a72df9769f634d92 | [log] [tgz] |
---|---|---|
author | Chenbo Feng <fengc@google.com> | Fri Mar 02 01:32:53 2018 -0800 |
committer | Chenbo Feng <fengc@google.com> | Wed Mar 07 11:39:52 2018 +0900 |
tree | 53b7e9ae4dd887dc0622dce70e41e030c349ec43 | |
parent | d555e08224d2a08f4f12c16ae4109b63b9f7def9 [diff] |
Include iface index in the netlink event The TrafficController inside netd also get notified when the interface on device added or removed, and it need both ifaceName and ifaceIndex information from Netlink event. Add the ifaceIndex in the event can avoid the TrafficController to run if_nametoindex again when receive the event. Bug: 30950746 Bug: 73137611 Test: new interface show up in bpf interface map. Change-Id: Ia3b4aeb8eff345ce7cf03ccec88f0893cfe125c0