Skip to content
Tom Barbette edited this page Nov 25, 2022 · 1 revision

CTXDispatcher Element Documentation

NAME

CTXDispatcher — Click element;

SYNOPSIS

CTXDispatcher

Ports: 1 input, any number of outputs
Processing: push

DESCRIPTION

Define a context to classify packets among its outputs. It works much like Classifier, except the context will be grabbed by a CTXManager element that will handle classification and state management. See the MiddleClick paper.

It takes a serie of argument such as : CTXDispatcher(12/0806 20/01 0, 12/0806 20/02 1, 12/0800 2, - drop)

Where each argument defines a pattern and an output port. The output ports can be omitted if sequential, as much as the default rule. The following is therefore identical. CTXDispatcher(12/0806 20/01, 12/0806 20/02, 12/0800)

Each output rule cannot overlap with other rules. Eg you cannot have TCP packets going to port 0 and IP packets to port 1, as TCP packets are IP packets, it is impossible. You can use FlowContextDispatcher to have rules added in a "cascading else" fashion, i.e. if packets are not TCP but still IP packets, go to port 1. This is the default behavior of the context link (~>).

Generated by click-elem2man from ../elements/ctx/ctxdispatcher.hh:11 on 2022/11/25.

Clone this wiki locally