Skip to content

Commit c3cf543

Browse files
jukkargalak
authored andcommitted
net: ethernet: lldp: Use short types for ints
Instead of uint16_t and uint8_t, use u16_t and u8_t types. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 0888b9f commit c3cf543

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/net/lldp.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,29 +123,29 @@ enum net_lldp_tlv_type {
123123
/** Chassis ID TLV, see chapter 8.5.2 in IEEE 802.1AB */
124124
struct net_lldp_chassis_tlv {
125125
/** 7 bits for type, 9 bits for length */
126-
uint16_t type_length;
126+
u16_t type_length;
127127
/** ID subtype */
128-
uint8_t subtype;
128+
u8_t subtype;
129129
/** Chassis ID value */
130-
uint8_t value[NET_LLDP_CHASSIS_ID_VALUE_LEN];
130+
u8_t value[NET_LLDP_CHASSIS_ID_VALUE_LEN];
131131
} __packed;
132132

133133
/** Port ID TLV, see chapter 8.5.3 in IEEE 802.1AB */
134134
struct net_lldp_port_tlv {
135135
/** 7 bits for type, 9 bits for length */
136-
uint16_t type_length;
136+
u16_t type_length;
137137
/** ID subtype */
138-
uint8_t subtype;
138+
u8_t subtype;
139139
/** Port ID value */
140-
uint8_t value[NET_LLDP_PORT_ID_VALUE_LEN];
140+
u8_t value[NET_LLDP_PORT_ID_VALUE_LEN];
141141
} __packed;
142142

143143
/** Time To Live TLV, see chapter 8.5.4 in IEEE 802.1AB */
144144
struct net_lldp_time_to_live_tlv {
145145
/** 7 bits for type, 9 bits for length */
146-
uint16_t type_length;
146+
u16_t type_length;
147147
/** Time To Live (TTL) value */
148-
uint16_t ttl;
148+
u16_t ttl;
149149
} __packed;
150150

151151
/**

0 commit comments

Comments
 (0)