[source]

Package net

Constants

Name

Value

Description

C_NET_ETH_PREMABLE_LENGTH

7

limitations

C_NET_ETH_INTER_FRAME_GAP_LENGTH

12

C_NET_ETH_MIN_FRAME_LENGTH

64

C_NET_ETH_MAX_NORMALFRAME_LENGTH

1518

C_NET_ETH_MAX_TAGGEDFRAME_LENGTH

1522

C_NET_ETH_MAX_JUMBOFRAME_LENGTH

9018

C_NET_MAC_ADDRESS_EMPTY

( others => ( others => '0' ) )

predefined constants

C_NET_MAC_ADDRESS_BROADCAST

( others => ( others => '1' ) )

C_NET_MAC_MASK_EMPTY

( others => ( others => '0' ) )

C_NET_MAC_MASK_DEFAULT

( others => ( others => '1' ) )

C_NET_MAC_ETHERNETTYPE_EMPTY

( others => ( others => '0' ) )

C_NET_MAC_SOURCEFILTER_NONE

( Address => to_net_mac_address ( "00:00:00:00:00:01" ) , Mask => C_NET_MAC_MASK_EMPTY )

C_NET_MAC_SFC_TYPE_EMPTY

( others => '0' )

predefined constants

C_NET_IPV4_ADDRESS_EMPTY

( others => ( others => '0' ) )

predefined constants

C_NET_IPV4_PROTOCOL_EMPTY

( others => '0' )

C_NET_IPV4_TOS_PRECEDENCE_ROUTINE

"000"

C_NET_IPV4_TOS_PRECEDENCE_PRIORITY

"001"

C_NET_IPV4_TOS_PRECEDENCE_IMMEDIATE

"010"

C_NET_IPV4_TOS_PRECEDENCE_FLASH

"011"

C_NET_IPV4_TOS_PRECEDENCE_FLASH_OVERRIDE

"100"

C_NET_IPV4_TOS_PRECEDENCE_CRITIC_ECP

"101"

C_NET_IPV4_TOS_PRECEDENCE_INTERNETWORK_CONTROL

"110"

C_NET_IPV4_TOS_PRECEDENCE_NETWORK_CONTROL

"111"

C_NET_IPV4_TOS_DEFAULT

( Precedence => C_NET_IPV4_TOS_PRECEDENCE_ROUTINE , Delay => '0' , Throughput => '0' , Relibility => '0' )

C_NET_IPV6_ADDRESS_EMPTY

( others => ( others => '0' ) )

predefined constants

C_NET_IPV6_NEXT_HEADER_EMPTY

( others => '0' )

C_NET_MAC_ETHERNETTYPE_SSFC

to_net_mac_ethernettype ( x"A987" )

add user defined ethernet types here: Andreas Hoeer - SFC Protocol - simple version (length-field, type-field)

C_NET_MAC_ETHERNETTYPE_SWAP

to_net_mac_ethernettype ( x"FFFE" )

Xilinx Ethernet Frame Swap Module

C_NET_MAC_ETHERNETTYPE_LOOPBACK

to_net_mac_ethernettype ( x"FFFF" )

Frame loopback module

C_NET_MAC_ETHERNETTYPE_IPV4

to_net_mac_ethernettype ( x"0800" )

Ethernet Types, see: http://en.wikipedia.org/wiki/EtherType for complete liste see: http://standards.ieee.org/develop/regauth/ethertype/eth.txt see also: http://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xml Internet Protocol, Version 4 (IPv4)

C_NET_MAC_ETHERNETTYPE_ARP

to_net_mac_ethernettype ( x"0806" )

Address Resolution Protocol (ARP)

C_NET_MAC_ETHERNETTYPE_WOL

to_net_mac_ethernettype ( x"0842" )

Wake-on-LAN Magic Packet, as used by ether-wake and Sleep Proxy Service

C_NET_MAC_ETHERNETTYPE_VLAN

to_net_mac_ethernettype ( x"8100" )

VLAN-tagged frame (IEEE 802.1Q) & Shortest Path Bridging IEEE 802.1aq[3]

C_NET_MAC_ETHERNETTYPE_SNMP

to_net_mac_ethernettype ( x"814C" )

Simple Network Management Protocol (SNMP)[4]

C_NET_MAC_ETHERNETTYPE_IPV6

to_net_mac_ethernettype ( x"86DD" )

Internet Protocol, Version 6 (IPv6)

C_NET_MAC_ETHERNETTYPE_MACCONTROL

to_net_mac_ethernettype ( x"8808" )

MAC Control

C_NET_MAC_ETHERNETTYPE_JUMBOFRAMES

to_net_mac_ethernettype ( x"8870" )

Jumbo Frames

C_NET_MAC_ETHERNETTYPE_QINQ

to_net_mac_ethernettype ( x"9100" )

Q-in-Q

C_NET_IP_PROTOCOL_LOOPBACK

x"FF"

    • IANA reserved (used for loopback)

C_NET_IP_PROTOCOL_IPV4

x"04"

( 4) - IPv4 Header RFC 2003

C_NET_IP_PROTOCOL_IPv6

x"29"

( 41) - IPv6 Header - IPv6 Encapsulation RFC 2473

C_NET_IP_PROTOCOL_IPV6_HOP_BY_HOP

x"00"

( 0) - IPv6 Ext. Header - Hop-by-Hop Option RFC 2460

C_NET_IP_PROTOCOL_IPV6_ROUTING

x"2B"

( 43) - IPv6 Ext. Header - Routing Header RFC 2460

C_NET_IP_PROTOCOL_IPV6_FRAGMENTATION

x"2C"

( 44) - IPv6 Ext. Header - Fragmentation Header RFC 2460

C_NET_IP_PROTOCOL_IPV6_ICMP

x"3A"

ICMPv6 ( 58) - Internet Control Message Protocol for IPv6 RFC ----

C_NET_IP_PROTOCOL_IPV6_NO_NEXT_HEADER

x"3B"

( 59) - IPv6 Ext. Header - No Next Header RFC 2460

C_NET_IP_PROTOCOL_IPV6_DEST_OPTIONS

x"3C"

( 60) - IPv6 Ext. Header - Destination Options RFC 2460

C_NET_IP_PROTOCOL_ICMP

x"01"

ICMP ( 1) - Internet Control Message Protocol RFC 792

C_NET_IP_PROTOCOL_IGMP

x"02"

IGMP ( 2) - Internet Group Management Protocol RFC 1112

C_NET_IP_PROTOCOL_TCP

x"06"

TCP ( 6) - Transmission Control Protocol RFC 793

C_NET_IP_PROTOCOL_SCTP

x"84"

SCTP (132) - Stream Control Transmission Protocol RFC ----

C_NET_IP_PROTOCOL_UDP

x"11"

UDP ( 17) - User Datagram Protocol RFC 768

C_NET_IP_PROTOCOL_UDP_LITE

x"88"

UDPLite (136) - UDP Lite RFC 3828

C_NET_IP_PROTOCOL_L2TP

x"73"

L2TP (115) - Layer Two Tunneling Protocol RFC 3931

C_NET_ICMPV4_TYPE_EMPTY

x"00"

ICMPv4 Types empty type field

C_NET_ICMPV4_TYPE_ECHO_REPLY

x"00"

Echo-Reply

C_NET_ICMPV4_TYPE_DEST_UNREACHABLE

x"03"

Destination unreachable

C_NET_ICMPV4_TYPE_SOURCE_QUENCH

x"04"

Source Quench

C_NET_ICMPV4_TYPE_REDIRECT

x"05"

Redirect

C_NET_ICMPV4_TYPE_ECHO_REQUEST

x"08"

Echo-Request

C_NET_ICMPV4_TYPE_TIME_EXCEEDED

x"0B"

Time Exceeded

C_NET_ICMPV4_TYPE_PARAMETER_PROBLEM

x"0C"

Parameter Problem

C_NET_ICMPV4_CODE_EMPTY

x"00"

ICMPv4 Codes empty code field

C_NET_ICMPV4_CODE_NET_UNREACHABLE

x"00"

ICMPv4 Codes for type Destination Unreachable Network unreachable

C_NET_ICMPV4_CODE_HOST_UNREACHABLE

x"01"

Host unreachable

C_NET_ICMPV4_CODE_PROTOCOL_UNREACHABLE

x"02"

Protocol unreachable

C_NET_ICMPV4_CODE_PORT_UNREACHABLE

x"03"

Port unreachable

C_NET_ICMPV4_CODE_FRAGMENTATION_NEEDED

x"04"

Fragmentation needed, but DF set

C_NET_ICMPV4_CODE_SOURCE_ROUTE_FAILED

x"05"

Source route failed

C_NET_ICMPV4_CODE_TIME_TO_LIVE_EXCEEDED

x"00"

ICMPv4 Codes for type Time Exceeded Hop limit exceeded in transit

C_NET_ICMPV4_CODE_FRAG_REASS_TIME_EXCEEDED

x"01"

Fragment reassembly time exceeded

C_NET_ICMPV4_CODE_ECHO_REQUEST

x"00"

ICMPv4 Codes for type Echo Request Echo Request

C_NET_ICMPV4_CODE_ECHO_REPLY

x"00"

ICMPv4 Codes for type Echo Reply Echo Reply

C_NET_ICMPV6_TYPE_DEST_UNREACHABLE

x"01"

ICMPv6 Types - Errors Destination unreachable

C_NET_ICMPV6_TYPE_PACKET_TOO_BIG

x"02"

Packet Too Big

C_NET_ICMPV6_TYPE_TIME_EXCEEDED

x"03"

Time Exceeded

C_NET_ICMPV6_TYPE_PARAMETER_PROBLEM

x"04"

Parameter Problem

C_NET_ICMPV6_TYPE_ERROR_EXP

x"7F"

C_NET_ICMPV6_TYPE_ECHO_REQUEST

x"80"

ICMPv6 Types - Information Echo Request

C_NET_ICMPV6_TYPE_ECHO_REPLY

x"81"

Echo Reply

C_NET_ICMPV6_TYPE_INFORMANTION_EXP

x"FF"

C_NET_ICMPV6_CODE_EMPTY

x"00"

ICMPv6 Codes empty code field

C_NET_ICMPV6_CODE_NO_ROUTE_TO_DEST

x"00"

ICMPv6 Codes for type Destination Unreachable No route to destination

C_NET_ICMPV6_CODE_COM_PROHIBITED

x"01"

Communication with destination administratively prohibited

C_NET_ICMPV6_CODE_BEYOND_SCOPE

x"02"

Beyond scope of source address

C_NET_ICMPV6_CODE_ADDRESS_UNREACHABLE

x"03"

Address unreachable

C_NET_ICMPV6_CODE_PORT_UNREACHABLE

x"04"

Port unreachable

C_NET_ICMPV6_CODE_ADDRESS_FAILED_POLICY

x"05"

Source address failed ingress/egress policy

C_NET_ICMPV6_CODE_REJECT_ROUTE_TO_DEST

x"06"

Reject route to destination

C_NET_ICMPV6_CODE_PACKET_TOO_BIG

x"00"

ICMPv6 Codes for type Packet Too Big Packet Too Big

C_NET_ICMPV6_CODE_HOP_LIMIT_EXCEEDED

x"00"

ICMPv6 Codes for type Time Exceeded Hop limit exceeded in transit

C_NET_ICMPV6_CODE_REASS_TIME_EXCEEDED

x"01"

Fragment reassembly time exceeded

C_NET_ICMPV6_CODE_HEADER_FIELD_ERROR

x"00"

ICMPv6 Codes for type Parameter Problem Erroneous header field encountered

C_NET_ICMPV6_CODE_NEXT_HEADER_ERROR

x"01"

Unrecognized Next Header type encountered

C_NET_ICMPV6_CODE_IPV6_OPTION_ERROR

x"02"

Unrecognized IPv6 option encountered

C_NET_ICMPV6_CODE_ECHO_REQUEST

x"00"

ICMPv6 Codes for type Echo Request Echo Request

C_NET_ICMPV6_CODE_ECHO_REPLY

x"00"

ICMPv6 Codes for type Echo Reply Echo Reply

C_NET_TCP_PORTNUMBER_ECHO

x"0007"

Echo Protocol (7) - RFC 862

C_NET_TCP_PORTNUMBER_FTP_DATA

x"0014"

FTP Protocol (20) - RFC 765

C_NET_TCP_PORTNUMBER_FTP_CONTROL

x"0015"

FTP Protocol (21) - RFC 765

C_NET_TCP_PORTNUMBER_LOOPBACK

x"FFFF"

Types

Name

Description

T_NET_ETH_PHY_DATA_INTERFACE
T_NET_ETH_PHY_MANAGEMENT_INTERFACE
T_NET_ETH_PCSCORE
T_NET_ETH_PHY_DEVICE
T_NET_ETH_PHY_DEVICE_ADDRESS
T_NET_ETH_PHYCONTROLLER_COMMAND
T_NET_ETH_PHYCONTROLLER_STATUS
T_NET_ETH_PHYCONTROLLER_ERROR
T_NET_ETH_PHY_INTERFACE_GMII

FPGA <=> PHY physical interface: GMII (Gigabit Media Independant Interface)

T_NET_ETH_PHY_INTERFACE_RGMII

FPGA <=> PHY physical interface: RGMII (Reduced Gigabit Media Independant Interface)

T_NET_ETH_PHY_INTERFACE_SGMII

FPGA <=> PHY physical interface: SGMII (Serial GMII)

T_NET_ETH_PHY_INTERFACE_MDIO

FPGA <=> PHY management interface: MDIO (Management Data Input/Output)

T_NET_ETH_PHY_INTERFACE_COMMON
T_NET_ETH_PHY_INTERFACES

combined interface definition - union-types are still not supported in VHDL

T_NET_ETH_PCS_1000BASE_X_SYNC_STATUS

1000BASE-X - synchronization

T_NET_ETH_PCS_1000BASE_X_AUTONEG_STATUS

1000BASE-X - autonegotiation

T_NET_ETH_RS_DATA_INTERFACE
T_NET_ETH_COMMAND
T_NET_ETH_STATUS
T_NET_ETH_ERROR
T_NET_MAC_ADDRESS

types

T_NET_MAC_ETHERNETTYPE
T_NET_MAC_ADDRESS_VECTOR

arrays

T_NET_MAC_ETHERNETTYPE_VECTOR
T_NET_MAC_INTERFACE
T_NET_MAC_INTERFACE_VECTOR
T_NET_MAC_CONFIGURATION
T_NET_MAC_CONFIGURATION_VECTOR

arrays

T_NET_MAC_SFC_TYPE

types

T_ETH_SFC_TYPE_VECTOR

arrays

T_NET_IP_PROTOCOL
T_NET_IPV4_ADDRESS

types

T_NET_IPV4_PROTOCOL
T_NET_IPV4_TOS_PRECEDENCE
T_NET_IPV4_TYPE_OF_SERVICE
T_NET_IPV4_ADDRESS_VECTOR

arrays

T_NET_IPV4_PROTOCOL_VECTOR
T_NET_IPV4_TYPE_OF_SERVICE_VECTOR
T_NET_IPV6_ADDRESS

types

T_NET_IPV6_PREFIX
T_NET_IPV6_NEXT_HEADER
T_NET_IPV6_ADDRESS_VECTOR

arrays

T_NET_IPV6_PREFIX_VECTOR
T_NET_IPV6_NEXT_HEADER_VECTOR
T_NET_ARP_ARPCACHE_COMMAND

commands

T_NET_ARP_ARPCACHE_STATUS

status

T_NET_ARP_IPPOOL_COMMAND
T_NET_ARP_ARPCACHE_LINE
T_NET_ARP_ARPCACHE_VECTOR
T_NET_ARP_TESTER_COMMAND

commands

T_NET_ARP_TESTER_STATUS

status

T_NET_ICMPV4_TYPE
T_NET_ICMPV4_CODE
T_NET_ICMPV4_COMMAND

commands

T_NET_ICMPV4_TX_COMMAND
T_NET_ICMPV4_RX_COMMAND
T_NET_ICMPV4_STATUS

status

T_NET_ICMPV4_TX_STATUS
T_NET_ICMPV4_RX_STATUS
T_NET_ICMPV4_ERROR

errors

T_NET_ICMPV4_TX_ERROR
T_NET_ICMPV4_RX_ERROR
T_NET_ICMPV6_TYPE
T_NET_ICMPV6_CODE
T_NET_NDP_DESTINATIONCACHE_LINE
T_NET_NDP_NEIGHBORCACHE_LINE
T_NET_NDP_DESTINATIONCACHE_VECTOR
T_NET_NDP_NEIGHBORCACHE_VECTOR
T_NET_NDP_REACHABILITY_STATE
T_NET_UDP_PORT
T_NET_UDP_PORTPAIR
T_NET_UDP_PORTPAIR_VECTOR
T_NET_TCP_PORT

TODO: if TCP is added, move this to the TCP section in this file!

Functions

virtual function T_NET_ETH_RS_DATA_INTERFACE to_net_eth_RSDataInterface ( string str ) [source]
virtual function T_NET_ETH_PHY_DATA_INTERFACE to_net_eth_PHYDataInterface ( string str ) [source]
virtual function T_NET_ETH_PHY_MANAGEMENT_INTERFACE to_net_eth_PHYManagementInterface ( string str ) [source]
virtual function T_NET_ETH_PHY_DEVICE to_net_eth_PHYDevice ( string str ) [source]
virtual function T_NET_MAC_ADDRESS to_net_mac_address ( T_SLV_48 slv ) [source]

type conversion functions

virtual function T_NET_MAC_ADDRESS to_net_mac_address ( T_SLVV_8 slvv ) [source]
virtual function T_NET_MAC_ADDRESS to_net_mac_address ( string str ) [source]
virtual function T_NET_MAC_ETHERNETTYPE to_net_mac_ethernettype ( T_SLV_16 slv ) [source]
virtual function STD_LOGIC_VECTOR to_slv ( T_NET_MAC_ADDRESS mac ) [source]
virtual function STD_LOGIC_VECTOR to_slv ( T_NET_MAC_ETHERNETTYPE Ethtype ) [source]
virtual function STD_LOGIC_VECTOR to_slv ( T_NET_IPV4_ADDRESS ip ) [source]
virtual function STD_LOGIC_VECTOR to_slv ( T_NET_IPV4_TYPE_OF_SERVICE tos ) [source]

function to_slv(proto : T_NET_IPV4_PROTOCOL) return STD_LOGIC_VECTOR;

virtual function STD_LOGIC_VECTOR to_slv ( T_NET_IPV6_ADDRESS ip ) [source]
virtual function T_SLVV_8 to_slvv_8 ( T_NET_MAC_ADDRESS mac ) [source]
virtual function T_SLVV_8 to_slvv_8 ( T_NET_MAC_ETHERNETTYPE Ethtype ) [source]
virtual function T_SLVV_8 to_slvv_8 ( T_NET_IPV4_ADDRESS ip ) [source]
virtual function T_SLVV_8 to_slvv_8 ( T_NET_IPV6_ADDRESS ip ) [source]
virtual function string to_string ( T_NET_MAC_ADDRESS mac ) [source]
virtual function string to_string ( T_NET_MAC_ETHERNETTYPE Ethtype ) [source]
virtual function string to_string ( T_NET_IPV4_ADDRESS ip ) [source]
virtual function string to_string ( T_NET_IPV6_ADDRESS IP ) [source]
virtual function string to_string ( T_NET_IPV6_PREFIX Prefix ) [source]
virtual function positive getPortCount ( T_NET_MAC_CONFIGURATION_VECTOR MACConfiguration ) [source]

functions

virtual function T_NET_IPV4_ADDRESS to_net_ipv4_address ( T_SLV_32 slv ) [source]

type conversion functions

virtual function T_NET_IPV4_ADDRESS to_net_ipv4_address ( string str ) [source]
virtual function T_NET_IPV4_TYPE_OF_SERVICE to_net_ipv4_TYPE_of_service ( T_SLV_8 slv ) [source]
virtual function T_NET_IPV6_ADDRESS to_net_ipv6_address ( T_SLV_128 slv ) [source]

type conversion functions

virtual function T_NET_IPV6_ADDRESS to_net_ipv6_address ( string str ) [source]
virtual function T_NET_IPV6_PREFIX to_net_ipv6_prefix ( string str ) [source]