summaryrefslogtreecommitdiff
path: root/proto_vlan.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-08-07 09:14:25 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-08-07 09:14:25 +0200
commita539a4d7a02c41a59a5490ebeba461a68f0a2a87 (patch)
tree5cb99db32f9fb0015f2fe367653b9205dd66ad76 /proto_vlan.c
parent815dcd255ea9da8b23e8e7c839545d5d41eee336 (diff)
dissectors: Use __packed macro instead of open-coding it
Consistently vse the __packed macro defined in built_in.h instead of __attribute__((packed)) in all dissectors (and the entire code base for that matter). Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_vlan.c')
-rw-r--r--proto_vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto_vlan.c b/proto_vlan.c
index f9b2cf2..9ba66a9 100644
--- a/proto_vlan.c
+++ b/proto_vlan.c
@@ -16,7 +16,7 @@
struct vlanhdr {
uint16_t h_vlan_TCI;
uint16_t h_vlan_encapsulated_proto;
-} __attribute__((packed));
+} __packed;
static void vlan(struct pkt_buff *pkt)
{