NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
stru_Arp_Packet Struct Reference

This Arp packet structure is according to RFC 826. More...

#include <ARP.h>

Collaboration diagram for stru_Arp_Packet:

Data Fields

PNETSIM_MACADDRESS szDestMac
 Destination MAC address.
 
PNETSIM_MACADDRESS szSrcMac
 Source MAC address.
 
ETHERNET_TYPE nEther_type
 Ethernet Type.
 
HARDWARETYPE n_ar$hrd
 Hardware Type 2 bytes.
 
PROTOCOLTYPE n_ar$pro
 Protocol Type 2 bytes.
 
unsigned short int usn_ar$hln
 H/W address length 1 byte ,specifies the sizes of the H/W address in bytes.
 
unsigned short int usn_ar$pln
 Protocol address length 1 byte,specifies the sizes of the protocol address in bytes.
 
OPCODE n_ar$op
 Operation REQUEST/REPLY 2 bytes.
 
PNETSIM_MACADDRESS sz_ar$sha
 Hardware address of the sender.
 
NETSIM_IPAddress sz_ar$spa
 Protocol address of the sender.
 
PNETSIM_MACADDRESS sz_ar$tha
 Hardware address of target (if know) otherwise empty 6 bytes.
 
NETSIM_IPAddress sz_ar$tpa
 Protocol address of target.
 

Detailed Description

This Arp packet structure is according to RFC 826.

Definition at line 104 of file ARP.h.

Field Documentation

◆ n_ar$hrd

HARDWARETYPE stru_Arp_Packet::n_ar$hrd

Hardware Type 2 bytes.

Definition at line 110 of file ARP.h.

◆ n_ar$op

OPCODE stru_Arp_Packet::n_ar$op

Operation REQUEST/REPLY 2 bytes.

Definition at line 114 of file ARP.h.

◆ n_ar$pro

PROTOCOLTYPE stru_Arp_Packet::n_ar$pro

Protocol Type 2 bytes.

Definition at line 111 of file ARP.h.

◆ nEther_type

ETHERNET_TYPE stru_Arp_Packet::nEther_type

Ethernet Type.

Definition at line 108 of file ARP.h.

◆ sz_ar$sha

PNETSIM_MACADDRESS stru_Arp_Packet::sz_ar$sha

Hardware address of the sender.

Definition at line 115 of file ARP.h.

◆ sz_ar$spa

NETSIM_IPAddress stru_Arp_Packet::sz_ar$spa

Protocol address of the sender.

Definition at line 116 of file ARP.h.

◆ sz_ar$tha

PNETSIM_MACADDRESS stru_Arp_Packet::sz_ar$tha

Hardware address of target (if know) otherwise empty 6 bytes.

Definition at line 117 of file ARP.h.

◆ sz_ar$tpa

NETSIM_IPAddress stru_Arp_Packet::sz_ar$tpa

Protocol address of target.

Definition at line 118 of file ARP.h.

◆ szDestMac

PNETSIM_MACADDRESS stru_Arp_Packet::szDestMac

Destination MAC address.

Definition at line 106 of file ARP.h.

◆ szSrcMac

PNETSIM_MACADDRESS stru_Arp_Packet::szSrcMac

Source MAC address.

Definition at line 107 of file ARP.h.

◆ usn_ar$hln

unsigned short int stru_Arp_Packet::usn_ar$hln

H/W address length 1 byte ,specifies the sizes of the H/W address in bytes.

Definition at line 112 of file ARP.h.

◆ usn_ar$pln

unsigned short int stru_Arp_Packet::usn_ar$pln

Protocol address length 1 byte,specifies the sizes of the protocol address in bytes.

Definition at line 113 of file ARP.h.


The documentation for this struct was generated from the following file: