-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ed5d75
commit 622f85a
Showing
1 changed file
with
6 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
----------------------------------------------------------------------- | ||
-- net-headers -- Network headers | ||
-- Copyright (C) 2016 Stephane Carrez | ||
-- Written by Stephane Carrez ([email protected]) | ||
-- | ||
-- Licensed under the Apache License, Version 2.0 (the "License"); | ||
-- you may not use this file except in compliance with the License. | ||
-- You may obtain a copy of the License at | ||
-- | ||
-- http://www.apache.org/licenses/LICENSE-2.0 | ||
-- | ||
-- Unless required by applicable law or agreed to in writing, software | ||
-- distributed under the License is distributed on an "AS IS" BASIS, | ||
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
-- See the License for the specific language governing permissions and | ||
-- limitations under the License. | ||
----------------------------------------------------------------------- | ||
package Net.Headers is | ||
|
||
pragma Preelaborate; | ||
|
@@ -57,8 +40,8 @@ package Net.Headers is | |
|
||
-- ARP Ethernet packet | ||
type Arp_Packet is record | ||
Ethernet : Net.Headers.Ether_Header; | ||
Arp : Net.Headers.Ether_Arp; | ||
Ethernet : Ether_Header; | ||
Arp : Ether_Arp; | ||
end record; | ||
type Arp_Packet_Access is access all Arp_Packet; | ||
|
||
|
@@ -98,8 +81,6 @@ package Net.Headers is | |
QOS_Id : Uint16; | ||
end record; | ||
|
||
type EFCP_Header_Access is access all EFCP_Header; | ||
|
||
for EFCP_Header use record | ||
PDU_Version at 0 range 0 .. 7; | ||
PDU_Type at 1 range 0 .. 7; | ||
|
@@ -115,18 +96,14 @@ package Net.Headers is | |
QOS_Id at 26 range 0 .. 15; | ||
end record; | ||
|
||
type Ether_EFCP is record | ||
Efcp_Hdr : EFCP_Header; | ||
end record; | ||
|
||
type Ether_EFCP_Access is access all Ether_EFCP; | ||
type EFCP_Header_Access is access all EFCP_Header; | ||
|
||
-- EFCP Ethernet packet | ||
type EFCP_Packet is record | ||
Ethernet : Net.Headers.Ether_Header; | ||
Arp : Net.Headers.Ether_EFCP; | ||
Ethernet : Ether_Header; | ||
Efcp : EFCP_Header; | ||
end record; | ||
|
||
type EFCP_Packet_Access is access all EFCP_Packet; | ||
|
||
end Net.Headers; | ||
end Net.Headers; |