|
MoonGen
|
AH utility. More...
Go to the source code of this file.
Functions | |
| function ipsecICV | set (icv) |
| Set the IPsec ICV. More... | |
| function ipsecICV | get () |
| Retrieve the IPsec ICV. More... | |
| function ipsecICV | getString (doByteSwap) |
| Get the IPsec string. More... | |
| function ahHeader | setSPI (int) |
| Set the SPI. More... | |
| function ahHeader | getSPI () |
| Retrieve the SPI. More... | |
| function ahHeader | getSPIString () |
| Retrieve the SPI as string. More... | |
| function ahHeader | setSQN (int) |
| Set the SQN. More... | |
| function ahHeader | getSQN () |
| Retrieve the SQN. More... | |
| function ahHeader | getSQNString () |
| Retrieve the SQN as string. More... | |
| function ahHeader | setIV (iv) |
| Set the IV. More... | |
| function ahHeader | getIV () |
| Retrieve the IV. More... | |
| function ahHeader | getIVString () |
| Retrieve the IV as string. More... | |
| function ahHeader | setICV (icv) |
| Set the ICV. More... | |
| function ahHeader | getICV () |
| Retrieve the ICV. More... | |
| function ahHeader | getICVString () |
| Retrieve the ICV as string. More... | |
| function ahHeader | setNextHeader (int) |
| Set the Next Header. More... | |
| function ahHeader | getNextHeader () |
| Retrieve the Next Header. More... | |
| function ahHeader | getNextHeaderString () |
| Retrieve the Next Header as string. More... | |
| function ahHeader | setLength (int) |
| Set the Length. More... | |
| function ahHeader | getLength () |
| Retrieve the Length. More... | |
| function ahHeader | getLengthString () |
| Retrieve the Length as string. More... | |
| function ahHeader | fill (args, pre) |
| Set all members of the ah header. More... | |
| function ahHeader | get (pre) |
| Retrieve the values of all members. More... | |
| function ahHeader | getString () |
| Retrieve the values of all members. More... | |
| function ahHeader | resolveNextHeader () |
| Resolve which header comes after this one (in a packet) For instance: in tcp/udp based on the ports This function must exist and is only used when get/dump is executed on an unknown (mbuf not yet casted to e.g. More... | |
| function ahHeader | setDefaultNamedArgs (pre, namedArgs, nextHeader, accumulatedLength) |
| Change the default values for namedArguments (for fill/get) This can be used to for instance calculate a length value based on the total packet length See proto/ip4.setDefaultNamedArgs as an example This function must exist and is only used by packet.fill. More... | |
AH utility.
Utility functions for the ah_header structs defined in headers.lua .
Includes:
Definition in file ah.lua.
| function ahHeader fill | ( | args | , |
| pre | |||
| ) |
Set all members of the ah header.
Per default, all members are set to default values specified in the respective set function. Optional named arguments can be used to set a member to a user-provided value.
| args | Table of named arguments. Available arguments: ahSPI, ahSQN, ahIV, ahICV |
| pre | prefix for namedArgs. Default 'ah'. fill() fill{ ahXYZ=1 } |
| function ipsecICV get | ( | ) |
Retrieve the IPsec ICV.
| function ahHeader get | ( | pre | ) |
Retrieve the values of all members.
| pre | prefix for namedArgs. Default 'ah'. |
| function ahHeader getICV | ( | ) |
Retrieve the ICV.
| function ahHeader getICVString | ( | ) |
Retrieve the ICV as string.
| function ahHeader getIV | ( | ) |
Retrieve the IV.
| function ahHeader getIVString | ( | ) |
Retrieve the IV as string.
| function ahHeader getLength | ( | ) |
Retrieve the Length.
| function ahHeader getLengthString | ( | ) |
Retrieve the Length as string.
| function ahHeader getNextHeader | ( | ) |
Retrieve the Next Header.
| function ahHeader getNextHeaderString | ( | ) |
Retrieve the Next Header as string.
| function ahHeader getSPI | ( | ) |
Retrieve the SPI.
| function ahHeader getSPIString | ( | ) |
Retrieve the SPI as string.
| function ahHeader getSQN | ( | ) |
Retrieve the SQN.
| function ahHeader getSQNString | ( | ) |
Retrieve the SQN as string.
| function ipsecICV getString | ( | doByteSwap | ) |
Get the IPsec string.
| icv | IPsec ICV in string format. |
| function ip4Header getString | ( | ) |
Retrieve the values of all members.
| function ahHeader resolveNextHeader | ( | ) |
Resolve which header comes after this one (in a packet) For instance: in tcp/udp based on the ports This function must exist and is only used when get/dump is executed on an unknown (mbuf not yet casted to e.g.
tcpv6 packet) packet (mbuf)
| function ipsecICV set | ( | icv | ) |
Set the IPsec ICV.
| iv | IPsec ICV in 'union ipsec_icv' format. |
| function ahHeader setDefaultNamedArgs | ( | pre | , |
| namedArgs | , | ||
| nextHeader | , | ||
| accumulatedLength | |||
| ) |
Change the default values for namedArguments (for fill/get) This can be used to for instance calculate a length value based on the total packet length See proto/ip4.setDefaultNamedArgs as an example This function must exist and is only used by packet.fill.
| pre | The prefix used for the namedArgs, e.g. 'ah' |
| namedArgs | Table of named arguments (see See more) |
| nextHeader | The header following after this header in a packet |
| accumulatedLength | The so far accumulated length for previous headers in a packet |
| function ahHeader setICV | ( | icv | ) |
Set the ICV.
| int | ICV of the ah header as... |
| function ahHeader setIV | ( | iv | ) |
Set the IV.
| int | IV of the ah header as 'union ipsec_iv'. |
| function ahHeader setLength | ( | int | ) |
Set the Length.
| int | Length of the ah header as A bit integer. |
| function ahHeader setNextHeader | ( | int | ) |
Set the Next Header.
| int | Next Header of the ah header as A bit integer. |
| function ahHeader setSPI | ( | int | ) |
Set the SPI.
| int | SPI of the ah header as A bit integer. |
| function ahHeader setSQN | ( | int | ) |
Set the SQN.
| int | SQN of the ah header as A bit integer. |