You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use a l2 based expression such as
'host ether xx-xx-xx-xx-xx-xx' results in a error
as it is not a valid l3 expression (thus compilation fails)
however, in order to be able to have both l2&l3 expressions
we need to seperate out the flags and pass them seperately.
Signed-off-by: Tom Hadlaw <[email protected]>
Copy file name to clipboardexpand all lines: internal/pwru/types.go
+4-2
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,8 @@ type Flags struct {
38
38
FilterTrackBpfHelpersbool
39
39
FilterIfnamestring
40
40
FilterPcapstring
41
-
FilterTunnelPcapstring
41
+
FilterTunnelPcapL2string
42
+
FilterTunnelPcapL3string
42
43
FilterKprobeBatchuint
43
44
44
45
OutputTSstring
@@ -76,7 +77,8 @@ func (f *Flags) SetFlags() {
76
77
flag.BoolVar(&f.FilterTrackSkb, "filter-track-skb", false, "trace a packet even if it does not match given filters (e.g., after NAT or tunnel decapsulation)")
77
78
flag.BoolVar(&f.FilterTrackSkbByStackid, "filter-track-skb-by-stackid", false, "trace a packet even after it is kfreed (e.g., traffic going through bridge)")
0 commit comments