IpPacket Constructor (IpAddress, IpAddress, IpProtocol, Byte, Byte, Byte, UInt16, IpFlag, UInt16, Byte) |
Initializes a new instance of the IpPacket class using the specified
values.
Namespace: Network.Sim.Network.IpAssembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic IpPacket(
IpAddress destination,
IpAddress source,
IpProtocol type,
byte ihl,
byte dscp,
byte ttl,
ushort identification,
IpFlag flags,
ushort fragmentOffset,
byte[] data
)
Parameters
- destination
- Type: Network.Sim.Network.IpIpAddress
The IPv4 address of the destination
host. - source
- Type: Network.Sim.Network.IpIpAddress
The IPv4 address of the sending host. - type
- Type: Network.Sim.Network.IpIpProtocol
The type of the transport protocol encapsulated in
the IP packet's data section. - ihl
- Type: SystemByte
The Internet Header Length. - dscp
- Type: SystemByte
The Differentiated Services Code Point. - ttl
- Type: SystemByte
The time-to-live of the IP packet. - identification
- Type: SystemUInt16
The idenfication used for uniquely identifying
fragments of a fragmented IP packet. - flags
- Type: Network.Sim.Network.IpIpFlag
The flags set on the IP packet. - fragmentOffset
- Type: SystemUInt16
The fragment offset of the packet. - data
- Type: SystemByte
The transport data to transfer as part of the IP
packet.
Exceptions
See Also