# addFilterV2
Source: [https://docs.qualcomm.com/doc/80-PK177-134/topic/add_filter_v2.html](https://docs.qualcomm.com/doc/80-PK177-134/topic/add_filter_v2.html)
This API adds a new filter; it is the same as [addFilter](https://docs.qualcomm.com/doc/80-PK177-134/topic/add_filter.html), but with an extra argument
for application type.
addFilterV2()Copy to clipboard
Note: Any kind of functional error will report via callback function.
## Parameters
| **Parameters** | **API type** | **Data type** | **Description** |
| --- | --- | --- | --- |
| srcIp | Java | String | Source IP address |
| srcIp | Native | const char\* | Source IP address |
| dstIp | Java | String | Destination IP address |
| dstIp | Native | const char\* | Destination IP address |
| srcPort | Java | int | Source port |
| srcPort | Native | uint16\_t | Source port |
| dstPort | Java | int | Destination port |
| dstPort | Native | uint16\_t | Destination port |
| protocol | Java | protocolEnum | [Protocol](https://docs.qualcomm.com/doc/80-PK177-134/topic/llm_filter_protocol.html) |
| protocol | Native | llm\_protocolEnum | [Protocol](https://docs.qualcomm.com/doc/80-PK177-134/topic/llm_filter_protocol.html) |
| dscp | Java | int | DSCP value (0-255) |
| dscp | Native | uint8\_t | DSCP value (0-255) |
| uplink | Java | level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to be set on
uplink |
| uplink | Native | llm\_level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to be set on
uplink |
| downlink | Java | level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to be set on
downlink |
| downlink | Native | llm\_level | Latency [level](https://docs.qualcomm.com/doc/80-PK177-134/topic/level.html) to be set on
downlink |
| pdcpTimer | Java | long | PDCP timer value |
| pdcpTimer | Native | uint32\_t | PDCP timer value |
| ood | Java | oodEnum | [OOD value](https://docs.qualcomm.com/doc/80-PK177-134/topic/ood.html) |
| ood | Native | llm\_oodEnum | [OOD value](https://docs.qualcomm.com/doc/80-PK177-134/topic/ood.html) |
| inactivityTimer | Java | long | Inactivity timer |
| inactivityTimer | Native | uint32\_t | Inactivity timer |
| appType | Java | appType | [App type](https://docs.qualcomm.com/doc/80-PK177-134/topic/app_type_QC_1.html) |
| appType | Native | llm\_appType | [App type](https://docs.qualcomm.com/doc/80-PK177-134/topic/app_type_QC_1.html) |
| addFilterCallback | Java | IfilterStatus | Callback providing the filter ID ([Filter status](https://docs.qualcomm.com/doc/80-PK177-134/topic/filter_status.html)) |
| addFilterCallback | Native | llm\_filterStatus | Callback providing the filter ID ([Filter status](https://docs.qualcomm.com/doc/80-PK177-134/topic/filter_status.html)) |
| ret | Native | int8\_t& | On success this is the actual return value from the API.