NetlinkEvent - ignore captive portal and pref64 nd user opts

These are provided to userspace by newer kernels.

Test: builds
Bug: 150648313
Change-Id: I811c75e9a4739db149f502b9a43c99a8ed883341
Merged-In: I811c75e9a4739db149f502b9a43c99a8ed883341
This commit is contained in:
Maciej Żenczykowski 2020-04-02 03:07:44 +00:00 committed by Maciej Zenczykowski
parent 6bd3bc8d01
commit 1aa0274299
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,10 @@ bool NetlinkEvent::parseNdUserOptMessage(const struct nlmsghdr *nh) {
free(buf);
} else if (opthdr->nd_opt_type == ND_OPT_DNSSL) {
// TODO: support DNSSL.
} else if (opthdr->nd_opt_type == ND_OPT_CAPTIVE_PORTAL) {
// TODO: support CAPTIVE PORTAL.
} else if (opthdr->nd_opt_type == ND_OPT_PREF64) {
// TODO: support PREF64.
} else {
SLOGD("Unknown ND option type %d\n", opthdr->nd_opt_type);
return false;