Skip to content

Commit 3b41dcd

Browse files
Merge pull request #118 from cisco-system-traffic-generator/removeRxFilters
add method removeRxFilters
2 parents 17e3e7b + af7b996 commit 3b41dcd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/cisco/trex/stateless/TRexClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,14 @@ public void removeRxQueue(int portIndex) {
372372
callMethod("set_rx_feature", payload);
373373
}
374374

375+
public void removeRxFilters(int portIndex, int profileId) {
376+
Map<String, Object> payload = createPayload(portIndex);
377+
if (profileId > 0) {
378+
payload.put("profile_id", profileId);
379+
}
380+
callMethod("remove_rx_filters", payload);
381+
}
382+
375383
/** Set promiscuous mode, Enable interface to receive packets from all mac addresses */
376384
public void setPromiscuousMode(int portIndex, boolean enabled) {
377385
Map<String, Object> payload = createPayload(portIndex);

0 commit comments

Comments
 (0)