Skip to content

Commit

Permalink
vlan
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdavidgraham committed Aug 9, 2014
1 parent ba621b1 commit 5e5f65b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pixie-timer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef TIMER_H
#ifndef PIXIE_TIMER_H
#define PIXIE_TIMER_H
#include <stdint.h>

Expand Down
5 changes: 4 additions & 1 deletion src/rawsock-arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ arp_resolve_sync(struct Adapter *adapter,
/*
* Parse the response as an ARP packet
*/
proto_arp_parse(&response, px, 14, length);
if (adapter->is_vlan)
proto_arp_parse(&response, px, 16, length);
else
proto_arp_parse(&response, px, 14, length);

/* Is this an ARP packet? */
if (!response.is_valid) {
Expand Down

0 comments on commit 5e5f65b

Please sign in to comment.