Skip to content

Commit

Permalink
netsniff-ng: Rename proto_vlan.h to vlan.h
Browse files Browse the repository at this point in the history
The proto_ prefix is reserved for dissectors and the header contains
helper functions not exclusive to the proto_vlan dissector, so give it a
more generic name.

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Jan 27, 2016
1 parent 56fd1de commit c5bd006
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dissector.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "ring.h"
#include "tprintf.h"
#include "linktype.h"
#include "proto_vlan.h"
#include "vlan.h"

#define PRINT_NORM 0
#define PRINT_LESS 1
Expand Down
2 changes: 1 addition & 1 deletion proto_vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <netinet/in.h> /* for ntohs() */

#include "proto.h"
#include "proto_vlan.h"
#include "vlan.h"
#include "dissector_eth.h"
#include "pkt_buff.h"

Expand Down
9 changes: 2 additions & 7 deletions proto_vlan.h → vlan.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/*
* proto_vlan.h - VLAN proto helpers & declarations
* Subject to the GPL, version 2.
*/

#ifndef PROTO_VLAN_H
#define PROTO_VLAN_H
#ifndef VLAN_H
#define VLAN_H

#include <stdbool.h>
#include <inttypes.h>
Expand Down

0 comments on commit c5bd006

Please sign in to comment.