Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79311
b: refs/heads/master
c: 57d3ae8
h: refs/heads/master
i:
  79309: baeea87
  79307: e96a98c
  79303: bd78d8d
  79295: c42b278
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent d25c75c commit d69e2a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9dfebcc6479c55c001e4bb5fe7cc16b6799c43a7
refs/heads/master: 57d3ae847d4403c5e4a35ae5f38665fff1a94c02
6 changes: 3 additions & 3 deletions trunk/include/linux/if_vlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ static inline struct sk_buff *__vlan_put_tag(struct sk_buff *skb, unsigned short
memmove(skb->data, skb->data + VLAN_HLEN, 2 * VLAN_ETH_ALEN);

/* first, the ethernet type */
veth->h_vlan_proto = __constant_htons(ETH_P_8021Q);
veth->h_vlan_proto = htons(ETH_P_8021Q);

/* now, the tag */
veth->h_vlan_TCI = htons(tag);

skb->protocol = __constant_htons(ETH_P_8021Q);
skb->protocol = htons(ETH_P_8021Q);
skb->mac_header -= VLAN_HLEN;
skb->network_header -= VLAN_HLEN;

Expand Down Expand Up @@ -331,7 +331,7 @@ static inline int __vlan_get_tag(struct sk_buff *skb, unsigned short *tag)
{
struct vlan_ethhdr *veth = (struct vlan_ethhdr *)skb->data;

if (veth->h_vlan_proto != __constant_htons(ETH_P_8021Q)) {
if (veth->h_vlan_proto != htons(ETH_P_8021Q)) {
return -EINVAL;
}

Expand Down

0 comments on commit d69e2a1

Please sign in to comment.