mytliulei/DCNRobot — pull request #15 by mytliulei (2014-12-18 09:36:28+00:00)
Title: closed Issue #14add ixia keyword to set stream using capture packet

new keyword:
1. *Modify Capture Packet*
modify a capture packet using offset and hexstr

Note:please use this keyword after Filter Capture Packet

args:
- packet: \ \ \ the item in list of the sencond return value of Filter
Capture Packet or the return value of itself to continue modify
- offset: \ \ \ offset of hexstr packet
- hexstr: \ \ \ a byte hex string using space to split, for exapmle: 'FF
00'

return:
- packet of scapy format

2. *Set Stream Packet By Capture*
set a capture packet on stream of ixia port

Note:please use this keyword after Modify Capture Packet or Filter
Capture Packet

args:
- chasId: normally should be 1
- card: \ \ ixia card
- port: \ \ ixia port
- streamId: stream id
- packet: \ \ the return value of keyword Modify Capture Packet or the
item in list of the sencond return value of Filter Capture Packet

return:
- 0: ok
- non zero: error code