History

arcnet: fix indentation of if_arcnet.h

Standardized spacing is easier to read.

Joe Perches committed 11 years ago

Commit 37587fa1 parent 227b9e81 file · +26 −29Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/if_arcnet.h+26−29
@@ -19,7 +19,6 @@ · 18 unmodified lines
1919 #include <linux/types.h>
2020 #include <linux/if_ether.h>
2121
22−
2322 /*
2423 * These are the defined ARCnet Protocol ID's.
2524 */
@@ -57,42 +56,40 @@ · 31 unmodified lines
5756 * The RFC1201-specific components of an arcnet packet header.
5857 */
5958 struct arc_rfc1201 {
60− __u8 proto; /* protocol ID field - varies */
61− __u8 split_flag; /* for use with split packets */
62− __be16 sequence; /* sequence number */
63− __u8 payload[0]; /* space remaining in packet (504 bytes)*/
59+ __u8 proto; /* protocol ID field - varies */
60+ __u8 split_flag; /* for use with split packets */
61+ __be16 sequence; /* sequence number */
62+ __u8 payload[0]; /* space remaining in packet (504 bytes)*/
6463 };
6564 #define RFC1201_HDR_SIZE 4
6665
67−
6866 /*
6967 * The RFC1051-specific components.
7068 */
7169 struct arc_rfc1051 {
72− __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */
73− __u8 payload[0]; /* 507 bytes */
70+ __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */
71+ __u8 payload[0]; /* 507 bytes */
7472 };
7573 #define RFC1051_HDR_SIZE 1
7674
77−
7875 /*
7976 * The ethernet-encap-specific components. We have a real ethernet header
8077 * and some data.
8178 */
8279 struct arc_eth_encap {
83− __u8 proto; /* Always ARC_P_ETHER */
84− struct ethhdr eth; /* standard ethernet header (yuck!) */
85− __u8 payload[0]; /* 493 bytes */
80+ __u8 proto; /* Always ARC_P_ETHER */
81+ struct ethhdr eth; /* standard ethernet header (yuck!) */
82+ __u8 payload[0]; /* 493 bytes */
8683 };
8784 #define ETH_ENCAP_HDR_SIZE 14
8885
89−
9086 struct arc_cap {
9187 __u8 proto;
92− __u8 cookie[sizeof(int)]; /* Actually NOT sent over the network */
88+ __u8 cookie[sizeof(int)];
89+ /* Actually NOT sent over the network */
9390 union {
9491 __u8 ack;
95− __u8 raw[0]; /* 507 bytes */
92+ __u8 raw[0]; /* 507 bytes */
9693 } mes;
9794 };
9895
@@ -105,9 +102,9 @@ struct arc_cap { · 6 unmodified lines
105102 * driver.
106103 */
107104 struct arc_hardware {
108− __u8 source, /* source ARCnet - filled in automagically */
109− dest, /* destination ARCnet - 0 for broadcast */
110− offset[2]; /* offset bytes (some weird semantics) */
105+ __u8 source; /* source ARCnet - filled in automagically */
106+ __u8 dest; /* destination ARCnet - 0 for broadcast */
107+ __u8 offset[2]; /* offset bytes (some weird semantics) */
111108 };
112109 #define ARC_HDR_SIZE 4
113110
@@ -116,17 +113,17 @@ struct arc_hardware { · 2 unmodified lines
116113 * when you do a raw packet capture).
117114 */
118115 struct archdr {
119− /* hardware requirements */
120− struct arc_hardware hard;
121−
122− /* arcnet encapsulation-specific bits */
123− union {
124− struct arc_rfc1201 rfc1201;
125− struct arc_rfc1051 rfc1051;
126− struct arc_eth_encap eth_encap;
127− struct arc_cap cap;
128− __u8 raw[0]; /* 508 bytes */
129− } soft;
116+ /* hardware requirements */
117+ struct arc_hardware hard;
118+
119+ /* arcnet encapsulation-specific bits */
120+ union {
121+ struct arc_rfc1201 rfc1201;
122+ struct arc_rfc1051 rfc1051;
123+ struct arc_eth_encap eth_encap;
124+ struct arc_cap cap;
125+ __u8 raw[0]; /* 508 bytes */
126+ } soft;
130127 };
131128
132129 #endif /* _LINUX_IF_ARCNET_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t