summaryrefslogtreecommitdiff
path: root/NetworkPkg/Ip6Dxe/Ip6Input.h
diff options
context:
space:
mode:
authorMichael Kubacki <michael.kubacki@microsoft.com>2021-12-05 14:54:07 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commitd1050b9dff1cace252aff86630bfdb59dff5f507 (patch)
tree77f796143980742d97a883f62ce339a270474801 /NetworkPkg/Ip6Dxe/Ip6Input.h
parent2f88bd3a1296c522317f1c21377876de63de5be7 (diff)
downloadedk2-d1050b9dff1cace252aff86630bfdb59dff5f507.zip
edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.gz
edk2-d1050b9dff1cace252aff86630bfdb59dff5f507.tar.bz2
NetworkPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the NetworkPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Diffstat (limited to 'NetworkPkg/Ip6Dxe/Ip6Input.h')
-rw-r--r--NetworkPkg/Ip6Dxe/Ip6Input.h86
1 files changed, 42 insertions, 44 deletions
diff --git a/NetworkPkg/Ip6Dxe/Ip6Input.h b/NetworkPkg/Ip6Dxe/Ip6Input.h
index 76a4edb..5fcf4af 100644
--- a/NetworkPkg/Ip6Dxe/Ip6Input.h
+++ b/NetworkPkg/Ip6Dxe/Ip6Input.h
@@ -10,23 +10,21 @@
#ifndef __EFI_IP6_INPUT_H__
#define __EFI_IP6_INPUT_H__
-#define IP6_MIN_HEADLEN 40
-#define IP6_MAX_HEADLEN 120
+#define IP6_MIN_HEADLEN 40
+#define IP6_MAX_HEADLEN 120
///
/// 8(ESP header) + 16(max IV) + 16(max padding) + 2(ESP tail) + 12(max ICV) = 54
///
-#define IP6_MAX_IPSEC_HEADLEN 54
+#define IP6_MAX_IPSEC_HEADLEN 54
-
-#define IP6_ASSEMLE_HASH_SIZE 127
+#define IP6_ASSEMLE_HASH_SIZE 127
///
/// Lift time in seconds.
///
-#define IP6_FRAGMENT_LIFE 60
-#define IP6_MAX_PACKET_SIZE 65535
-
+#define IP6_FRAGMENT_LIFE 60
+#define IP6_MAX_PACKET_SIZE 65535
-#define IP6_GET_CLIP_INFO(Packet) ((IP6_CLIP_INFO *) ((Packet)->ProtoData))
+#define IP6_GET_CLIP_INFO(Packet) ((IP6_CLIP_INFO *) ((Packet)->ProtoData))
#define IP6_ASSEMBLE_HASH(Dst, Src, Id) \
((*((UINT32 *) (Dst)) + *((UINT32 *) (Src)) + (Id)) % IP6_ASSEMLE_HASH_SIZE)
@@ -45,42 +43,42 @@
// life. If it isn't consumed before Life reaches zero, the packet is released.
//
typedef struct {
- UINT32 LinkFlag;
- INT32 CastType;
- INT32 Start;
- INT32 End;
- INT32 Length;
- UINT32 Life;
- EFI_STATUS Status;
- UINT32 Id;
- UINT16 HeadLen;
- UINT8 NextHeader;
- UINT8 LastFrag;
- UINT32 FormerNextHeader;
+ UINT32 LinkFlag;
+ INT32 CastType;
+ INT32 Start;
+ INT32 End;
+ INT32 Length;
+ UINT32 Life;
+ EFI_STATUS Status;
+ UINT32 Id;
+ UINT16 HeadLen;
+ UINT8 NextHeader;
+ UINT8 LastFrag;
+ UINT32 FormerNextHeader;
} IP6_CLIP_INFO;
//
// Structure used to assemble IP packets.
//
typedef struct {
- LIST_ENTRY Link;
- LIST_ENTRY Fragments; // List of all the fragments of this packet
+ LIST_ENTRY Link;
+ LIST_ENTRY Fragments; // List of all the fragments of this packet
//
// Identity of one IP6 packet. Each fragment of a packet has
// the same (Dst, Src, Id).
//
- EFI_IPv6_ADDRESS Dst;
- EFI_IPv6_ADDRESS Src;
- UINT32 Id;
+ EFI_IPv6_ADDRESS Dst;
+ EFI_IPv6_ADDRESS Src;
+ UINT32 Id;
- UINT32 TotalLen;
- UINT32 CurLen;
- UINT32 Life; // Count down life for the packet.
+ UINT32 TotalLen;
+ UINT32 CurLen;
+ UINT32 Life; // Count down life for the packet.
- EFI_IP6_HEADER *Head; // IP head of the first fragment
- IP6_CLIP_INFO *Info; // Per packet information of the first fragment
- NET_BUF *Packet; // The first fragment of the packet
+ EFI_IP6_HEADER *Head; // IP head of the first fragment
+ IP6_CLIP_INFO *Info; // Per packet information of the first fragment
+ NET_BUF *Packet; // The first fragment of the packet
} IP6_ASSEMBLE_ENTRY;
//
@@ -89,7 +87,7 @@ typedef struct {
// as hash table.
//
typedef struct {
- LIST_ENTRY Bucket[IP6_ASSEMLE_HASH_SIZE];
+ LIST_ENTRY Bucket[IP6_ASSEMLE_HASH_SIZE];
} IP6_ASSEMBLE_TABLE;
/**
@@ -105,10 +103,10 @@ typedef struct {
**/
VOID
Ip6AcceptFrame (
- IN NET_BUF *Packet,
- IN EFI_STATUS IoStatus,
- IN UINT32 Flag,
- IN VOID *Context
+ IN NET_BUF *Packet,
+ IN EFI_STATUS IoStatus,
+ IN UINT32 Flag,
+ IN VOID *Context
);
/**
@@ -127,7 +125,7 @@ Ip6AcceptFrame (
**/
EFI_STATUS
Ip6InstanceDeliverPacket (
- IN IP6_PROTOCOL *IpInstance
+ IN IP6_PROTOCOL *IpInstance
);
/**
@@ -175,7 +173,7 @@ Ip6IpSecProcessPacket (
**/
VOID
Ip6CreateAssembleTable (
- IN OUT IP6_ASSEMBLE_TABLE *Table
+ IN OUT IP6_ASSEMBLE_TABLE *Table
);
/**
@@ -187,7 +185,7 @@ Ip6CreateAssembleTable (
**/
VOID
Ip6CleanAssembleTable (
- IN OUT IP6_ASSEMBLE_TABLE *Table
+ IN OUT IP6_ASSEMBLE_TABLE *Table
);
/**
@@ -210,9 +208,9 @@ Ip6CleanAssembleTable (
**/
EFI_STATUS
Ip6Demultiplex (
- IN IP6_SERVICE *IpSb,
- IN EFI_IP6_HEADER *Head,
- IN NET_BUF *Packet
+ IN IP6_SERVICE *IpSb,
+ IN EFI_IP6_HEADER *Head,
+ IN NET_BUF *Packet
);
/**
@@ -223,7 +221,7 @@ Ip6Demultiplex (
**/
VOID
Ip6PacketTimerTicking (
- IN IP6_SERVICE *IpSb
+ IN IP6_SERVICE *IpSb
);
#endif