tcpdump mailing list archives
Re: vlan handling
From: Shoham peller <shoham_peller () yahoo com>
Date: Fri, 4 Apr 2014 03:22:38 -0700 (PDT)
Hi, I'm having problems implementing it. The problem is the action precedence bison does. For example: "vlan or vlan" I've written code that makes the "or" keyword to restore the off_linktype so that the second "vlan" keyword uses off_linktype that is reseted. But the action precedence that bison does is: 1. Compute the left side of the or 2. Compute the right side of the or 3. "or" between them In 1 and 2, the off_linktype is incremented, which makes the right side "vlan" to use off_linktype that was already incremented. It's only in 3 that the off_linktype is restored to be the value before the 2 increments happened in 1 and 2. Can anyone suggest a solution to this problem? Thanks, Shoham _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Re: vlan handling Shoham peller (Apr 04)