Skip to content

Commit

Permalink
cleanup net.headers
Browse files Browse the repository at this point in the history
  • Loading branch information
masonticehurst committed Feb 28, 2024
1 parent 4ed5d75 commit 622f85a
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions eRINA_STM32F7/src/net/net-headers.ads
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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand All @@ -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;

0 comments on commit 622f85a

Please sign in to comment.