Closed leonardhyu closed 1 year ago
extend_filter_mode = await flow.shadow_filter.use_extended_mode()
config = await extend_filter_mode.get()
ethernet = dataset.ProtocolSegement(
protocol_type=dataset.ProtocolOption.ETHERNET,
value='000001111',
mask='1110000',
)
ipv4_1 = dataset.ProtocolSegement(
protocol_type=dataset.ProtocolOption.IP,
value='000001111',
mask='1110000',
)
ipv4_2 = dataset.ProtocolSegement(
protocol_type=dataset.ProtocolOption.IP,
value='000001111',
mask='1110000',
)
config.protocol_segments = (ethernet, ipv4_1, ipv4_2)