Skip to content

Commit 64dff36

Browse files
committed
add bpf filter property
1 parent 52fcd5f commit 64dff36

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

src/main/java/com/cisco/trex/stateless/model/capture/CaptureFilter.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55

66
@JsonIgnoreProperties(ignoreUnknown = true)
77
public class CaptureFilter {
8-
8+
99
@JsonProperty("rx")
1010
private int rxPortMask;
11-
11+
1212
@JsonProperty("tx")
1313
private int txPortMask;
1414

15+
@JsonProperty("bpf")
16+
private String bpfFilter;
17+
1518
@JsonProperty("rx")
1619
public int getRxPortMask() {
1720
return rxPortMask;
@@ -31,4 +34,16 @@ public int getTxPortMask() {
3134
public void setTxPortMask(int txPortMask) {
3235
this.txPortMask = txPortMask;
3336
}
37+
38+
39+
@JsonProperty("bpf")
40+
public String getBpfFilter() {
41+
return this.bpfFilter;
42+
}
43+
44+
@JsonProperty("bpf")
45+
public void setBpfFilter(String bpfFilter) {
46+
this.bpfFilter = bpfFilter;
47+
}
48+
3449
}

0 commit comments

Comments
 (0)