summaryrefslogtreecommitdiff
path: root/server/InterfaceController.cpp
diff options
context:
space:
mode:
authorLuke Huang <huangluke@google.com>2019-06-24 13:28:44 +0800
committerLuke Huang <huangluke@google.com>2019-07-03 15:38:40 +0800
commit6898d5bb33dbbcc8bb263c79435c4f79db61e52c (patch)
treeff8240819d3d869e142154d3b1bd3c6b0d03b400 /server/InterfaceController.cpp
parent481ddf09b6cead845f65b29322a83079c8c350c9 (diff)
Use std::vector to store domains of nameservers and minor change
1. Drop the old C style used to store domains. Previously, resolv is limited to use 6 search domains with total 255 length. (including zero padding) After this change, the length of each domain could exactly be at most 255. (rfc 1035) Also, invalid or duplicate domains will be dropped. 2. rename resolv_set_nameservers_for_net to resolv_set_nameservers Bug: 135506574 Test: cd system/netd && atest Change-Id: I94129ea521522c817d087332a7b467f616cc4895
Diffstat (limited to 'server/InterfaceController.cpp')
0 files changed, 0 insertions, 0 deletions