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
19#include <linux/types.h>19#include <linux/types.h>
20#include <linux/if_ether.h>20#include <linux/if_ether.h>
21 21
22
23/*22/*
24 * These are the defined ARCnet Protocol ID's.23 * These are the defined ARCnet Protocol ID's.
25 */24 */
@@ -57,42 +56,40 @@ · 31 unmodified lines
57 * The RFC1201-specific components of an arcnet packet header.56 * The RFC1201-specific components of an arcnet packet header.
58 */57 */
59struct arc_rfc1201 {58struct arc_rfc1201 {
60 __u8 proto; /* protocol ID field - varies */59 __u8 proto; /* protocol ID field - varies */
61 __u8 split_flag; /* for use with split packets */60 __u8 split_flag; /* for use with split packets */
62 __be16 sequence; /* sequence number */61 __be16 sequence; /* sequence number */
63 __u8 payload[0]; /* space remaining in packet (504 bytes)*/62 __u8 payload[0]; /* space remaining in packet (504 bytes)*/
64};63};
65#define RFC1201_HDR_SIZE 464#define RFC1201_HDR_SIZE 4
66 65
67
68/*66/*
69 * The RFC1051-specific components.67 * The RFC1051-specific components.
70 */68 */
71struct arc_rfc1051 {69struct arc_rfc1051 {
72 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */70 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */
73 __u8 payload[0]; /* 507 bytes */71 __u8 payload[0]; /* 507 bytes */
74};72};
75#define RFC1051_HDR_SIZE 173#define RFC1051_HDR_SIZE 1
76 74
77
78/*75/*
79 * The ethernet-encap-specific components. We have a real ethernet header76 * The ethernet-encap-specific components. We have a real ethernet header
80 * and some data.77 * and some data.
81 */78 */
82struct arc_eth_encap {79struct arc_eth_encap {
83 __u8 proto; /* Always ARC_P_ETHER */80 __u8 proto; /* Always ARC_P_ETHER */
84 struct ethhdr eth; /* standard ethernet header (yuck!) */81 struct ethhdr eth; /* standard ethernet header (yuck!) */
85 __u8 payload[0]; /* 493 bytes */82 __u8 payload[0]; /* 493 bytes */
86};83};
87#define ETH_ENCAP_HDR_SIZE 1484#define ETH_ENCAP_HDR_SIZE 14
88 85
89
90struct arc_cap {86struct arc_cap {
91 __u8 proto;87 __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 */
93 union {90 union {
94 __u8 ack;91 __u8 ack;
95 __u8 raw[0]; /* 507 bytes */92 __u8 raw[0]; /* 507 bytes */
96 } mes;93 } mes;
97};94};
98 95
@@ -105,9 +102,9 @@ struct arc_cap { · 6 unmodified lines
105 * driver.102 * driver.
106 */103 */
107struct arc_hardware {104struct arc_hardware {
108 __u8 source, /* source ARCnet - filled in automagically */105 __u8 source; /* source ARCnet - filled in automagically */
109 dest, /* destination ARCnet - 0 for broadcast */106 __u8 dest; /* destination ARCnet - 0 for broadcast */
110 offset[2]; /* offset bytes (some weird semantics) */107 __u8 offset[2]; /* offset bytes (some weird semantics) */
111};108};
112#define ARC_HDR_SIZE 4109#define ARC_HDR_SIZE 4
113 110
@@ -116,17 +113,17 @@ struct arc_hardware { · 2 unmodified lines
116 * when you do a raw packet capture).113 * when you do a raw packet capture).
117 */114 */
118struct archdr {115struct archdr {
119 /* hardware requirements */116 /* hardware requirements */
120 struct arc_hardware hard;117 struct arc_hardware hard;
121 118
122 /* arcnet encapsulation-specific bits */119 /* arcnet encapsulation-specific bits */
123 union {120 union {
124 struct arc_rfc1201 rfc1201;121 struct arc_rfc1201 rfc1201;
125 struct arc_rfc1051 rfc1051;122 struct arc_rfc1051 rfc1051;
126 struct arc_eth_encap eth_encap;123 struct arc_eth_encap eth_encap;
127 struct arc_cap cap;124 struct arc_cap cap;
128 __u8 raw[0]; /* 508 bytes */125 __u8 raw[0]; /* 508 bytes */
129 } soft;126 } soft;
130};127};
131 128
132#endif /* _LINUX_IF_ARCNET_H */129#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