This is automatically generated documentation. Edit after the "COMMENTS" heading; changes to the main body will be lost.

HashSwitch Element Documentation

NAME

HashSwitch -- Click element; classifies packets by hash of contents

SYNOPSIS

HashSwitch(OFFSET, LENGTH)

Ports: 1 input, 1 or more outputs
Processing: push
Package: standard (core)

DESCRIPTION

Can have any number of outputs. Chooses the output on which to emit each packet based on a hash of the LENGTH bytes starting at OFFSET. Could be used for stochastic fair queuing.

EXAMPLES

This element expects IP packets and chooses the output based on a hash of the IP destination address:

 HashSwitch(16, 4)

SEE ALSO

Switch, RoundRobinSwitch, StrideSwitch, RandomSwitch

Generated by 'click-elem2man' from '../elements/standard/hashswitch.hh:6' on 12/Jul/2011.

COMMENTS

 
elements/hashswitch.txt · Last modified: 2011/07/12 11:29 (external edit)
 
Recent changes RSS feed Driven by DokuWiki