bad processing code: custom element
saasasasasas sasasasasasasasasas <[email protected]> Thu, 17 Oct 2013 19:11:56 -0400
| Newsgroups | gmane.network.routing.click |
|---|---|
| Message-ID | <CAPevq-1spm4X=mmoRP9M9F2HKZ64m31xTcptoSo86MO+0yBsnw@mail.gmail.com> |
I have a click element called TagForwarder that takes 1 input and writes to n output that is dependent on user configuration. So, to route packets based on Layer7 contents that contain interesting tags tag1 and tag2, the configuration would be: tf::TagForwarder(tag1, tag2, -). tf[0] -> packets containing tag1 tf[2] -> packets containing tag2 tf[3] -> Discard Inside the code of the element: 1. The processing_code for the element returns the string "PUSH" 2.. port count function returns "1/-" When I do the following: Socket() -> tf::TagForwarder(tag1, tag2, -).; tf[0] -> Socket() tf[2] -> Socket() tf[3] -> Discard I get the warning message : "bad processing code" Where's my mistake?