Top Fields Constructors Methods
io.netty.handler.pcap

pack-priv final Class IPPacket

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf

Field Summary

Modifier and TypeField and Description
private static final int
IPV6_VERSION_TRAFFIC_FLOW

Version + Traffic class + Flow label

private static final byte
private static final byte
private static final byte
private static final short

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
writePacketv4(ByteBuf byteBuf, ByteBuf payload, int protocol, int srcAddress, int dstAddress)

private static void
writePacketv6(ByteBuf byteBuf, ByteBuf payload, int protocol, byte[] srcAddress, byte[] dstAddress)

pack-priv static void
writeTCPv4(ByteBuf
ByteBuf where IP Packet data will be set
byteBuf
,
ByteBuf
Payload of TCP
payload
,
int
Source IPv4 Address
srcAddress
,
int
Destination IPv4 Address
dstAddress
)

Write IPv4 Packet for TCP Packet

pack-priv static void
writeTCPv6(ByteBuf
ByteBuf where IP Packet data will be set
byteBuf
,
ByteBuf
Payload of TCP
payload
,
byte[]
Source IPv6 Address
srcAddress
,
byte[]
Destination IPv6 Address
dstAddress
)

Write IPv6 Packet for TCP Packet

pack-priv static void
writeUDPv4(ByteBuf
ByteBuf where IP Packet data will be set
byteBuf
,
ByteBuf
Payload of UDP
payload
,
int
Source IPv4 Address
srcAddress
,
int
Destination IPv4 Address
dstAddress
)

Write IPv4 Packet for UDP Packet

pack-priv static void
writeUDPv6(ByteBuf
ByteBuf where IP Packet data will be set
byteBuf
,
ByteBuf
Payload of UDP
payload
,
byte[]
Source IPv6 Address
srcAddress
,
byte[]
Destination IPv6 Address
dstAddress
)

Write IPv6 Packet for UDP Packet

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

IPV6_VERSION_TRAFFIC_FLOWback to summary
private static final int IPV6_VERSION_TRAFFIC_FLOW

Version + Traffic class + Flow label

MAX_TTLback to summary
private static final byte MAX_TTL
TCPback to summary
private static final byte TCP
UDPback to summary
private static final byte UDP
V4_HEADER_SIZEback to summary
private static final short V4_HEADER_SIZE

Constructor Detail

IPPacketback to summary
private IPPacket()

Method Detail

writePacketv4back to summary
private static void writePacketv4(ByteBuf byteBuf, ByteBuf payload, int protocol, int srcAddress, int dstAddress)
writePacketv6back to summary
private static void writePacketv6(ByteBuf byteBuf, ByteBuf payload, int protocol, byte[] srcAddress, byte[] dstAddress)
writeTCPv4back to summary
pack-priv static void writeTCPv4(ByteBuf byteBuf, ByteBuf payload, int srcAddress, int dstAddress)

Write IPv4 Packet for TCP Packet

Parameters
byteBuf:ByteBuf

ByteBuf where IP Packet data will be set

payload:ByteBuf

Payload of TCP

srcAddress:int

Source IPv4 Address

dstAddress:int

Destination IPv4 Address

writeTCPv6back to summary
pack-priv static void writeTCPv6(ByteBuf byteBuf, ByteBuf payload, byte[] srcAddress, byte[] dstAddress)

Write IPv6 Packet for TCP Packet

Parameters
byteBuf:ByteBuf

ByteBuf where IP Packet data will be set

payload:ByteBuf

Payload of TCP

srcAddress:byte[]

Source IPv6 Address

dstAddress:byte[]

Destination IPv6 Address

writeUDPv4back to summary
pack-priv static void writeUDPv4(ByteBuf byteBuf, ByteBuf payload, int srcAddress, int dstAddress)

Write IPv4 Packet for UDP Packet

Parameters
byteBuf:ByteBuf

ByteBuf where IP Packet data will be set

payload:ByteBuf

Payload of UDP

srcAddress:int

Source IPv4 Address

dstAddress:int

Destination IPv4 Address

writeUDPv6back to summary
pack-priv static void writeUDPv6(ByteBuf byteBuf, ByteBuf payload, byte[] srcAddress, byte[] dstAddress)

Write IPv6 Packet for UDP Packet

Parameters
byteBuf:ByteBuf

ByteBuf where IP Packet data will be set

payload:ByteBuf

Payload of UDP

srcAddress:byte[]

Source IPv6 Address

dstAddress:byte[]

Destination IPv6 Address