C# 클래스 NetworkPackets.EthernetPacket

Encapsulates an EthernetPacket and provides the mechanisms to generate new Ethernet Packets. This is immutable.
The Header is of the format: Field Position Destination Address6 bytes Source Address6 bytes Type2 bytes DataThe rest
상속: NetworkPacket
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BroadcastAddress MemBlock
DestinationAddress MemBlock
SourceAddress MemBlock
Type Types
UnicastAddress MemBlock

공개 메소드들

메소드 설명
EthernetPacket ( MemBlock Packet ) : Brunet

This parses a MemBlock into the Ethernet fields

EthernetPacket ( MemBlock DestinationAddress, MemBlock SourceAddress, Types Type, ICopyable Payload ) : Brunet

Creates an Ethernet Packet from Ethernet fields and the payload

GetMulticastEthernetAddress ( MemBlock mcast_ip ) : MemBlock

Generates a multicast mac address based upon the multicast IP address.

비공개 메소드들

메소드 설명
EthernetPacket ( ) : Brunet

메소드 상세

EthernetPacket() 공개 메소드

This parses a MemBlock into the Ethernet fields
public EthernetPacket ( MemBlock Packet ) : Brunet
Packet MemBlock The Ethernet packet
리턴 Brunet

EthernetPacket() 공개 메소드

Creates an Ethernet Packet from Ethernet fields and the payload
public EthernetPacket ( MemBlock DestinationAddress, MemBlock SourceAddress, Types Type, ICopyable Payload ) : Brunet
DestinationAddress MemBlock Where the Ethernet packet is going.
SourceAddress MemBlock Where the Ethernet packet originated.
Type Types Type of Ethernet payload.
Payload ICopyable Payload as an ICopyable
리턴 Brunet

GetMulticastEthernetAddress() 공개 정적인 메소드

Generates a multicast mac address based upon the multicast IP address.
public static GetMulticastEthernetAddress ( MemBlock mcast_ip ) : MemBlock
mcast_ip MemBlock The multicast ip address
리턴 MemBlock

프로퍼티 상세

BroadcastAddress 공개적으로 정적으로 프로퍼티

The default broadcast (multicast) address
public static MemBlock BroadcastAddress
리턴 MemBlock

DestinationAddress 공개적으로 프로퍼티

The address where the Ethernet packet is going
public MemBlock DestinationAddress
리턴 MemBlock

SourceAddress 공개적으로 프로퍼티

The address where the Ethernet packet originated
public MemBlock SourceAddress
리턴 MemBlock

Type 공개적으로 프로퍼티

The type for the Ethernet payload
public Types Type
리턴 Types

UnicastAddress 공개적으로 정적으로 프로퍼티

The default unicast address
public static MemBlock UnicastAddress
리턴 MemBlock