Forum Discussion
Robert_47833
Altostratus
Jun 20, 2012tcp::payload question
hi,dear irule
1:if I use tcp::collect 50 to collect first 50 bytes,then I wanna extract 21-22 bytes via tcp::payload
how to achieve this?
2:tcp::payload 2 means take first 2bytes from payload,right?
3:in the hi,
1:if I use tcp::collect 50 to collect first 50 bytes,then I wanna extract 21-22 bytes via tcp::payload
how to achieve this?
2:tcp::payload 2 means take first 2bytes from payload,right?
3:in the
TCP::payload []¶
Returns the accumulated TCP data content. If is specified, and more than bytes are available, only the first bytes of collected data are returned.
TCP::payload []¶
- Returns the accumulated TCP data content. If is specified, and more than bytes are available, only the first bytes of collected data are returned.
what does "If is specified, and more than bytes are available, only the first bytes of collected data are returned If is specified, and more than bytes are available, only the first bytes of collected data are returned" mean?
2 Replies
- hoolio
Cirrostratus
Hi Robbie,
Your post got a bit jumbled. Can you post it in clear text or use [ code ] [/ code ] blocks (without the spaces)?
Also, I updated the TCP::payload page as some of the keywords were in angle brackets and weren't being rendered on the page. Hopefully the doc is a little clearer now.
https://devcentral.f5.com/wiki/iRules.TCP__payload.ashx
Thanks, Aaron - Robert_47833
Altostratus
hi,dear irule
1:if I use tcp::collect 50 to collect first 50 bytes,then I wanna extract 21-22 bytes via tcp::payload
how to achieve this?
2:tcp::payload 2 means take first 2bytes from payload,right?
3:in the tcp::payload size
Returns the accumulated TCP data content. If is specified, and more than bytes are available, only the first bytes of collected data are returned.
what does "If is specified, and more than bytes are available, only the first bytes of collected data are returned If is specified, and more than bytes are available, only the first bytes of collected data are returned" mean?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects