Add IPv6 Handling for DSCP Policies and Support Interfaces with MAC Addresses
Add bpf functionality to handle IPv6 packets and apply DSCP value. Also support DSCP policy rules on multiple interfaces simultaneously. Test: atest DscpPolicyTest Bug: 217166486 Change-Id: I452a87355fd0382a4c38b84aa3465505951d9bf0
This commit is contained in:
@@ -3669,7 +3669,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
}
|
||||
case NetworkAgent.EVENT_REMOVE_ALL_DSCP_POLICIES: {
|
||||
if (mDscpPolicyTracker != null) {
|
||||
mDscpPolicyTracker.removeAllDscpPolicies(nai);
|
||||
mDscpPolicyTracker.removeAllDscpPolicies(nai, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -4410,6 +4410,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
}
|
||||
|
||||
private void destroyNativeNetwork(@NonNull NetworkAgentInfo nai) {
|
||||
if (mDscpPolicyTracker != null) {
|
||||
mDscpPolicyTracker.removeAllDscpPolicies(nai, false);
|
||||
}
|
||||
try {
|
||||
mNetd.networkDestroy(nai.network.getNetId());
|
||||
} catch (RemoteException | ServiceSpecificException e) {
|
||||
|
||||
Reference in New Issue
Block a user