Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4967
b: refs/heads/master
c: 7686ee1
h: refs/heads/master
i:
  4965: 8a31a42
  4963: f89b208
  4959: 96253e0
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jul 25, 2005
1 parent 4fd0b1a commit bda6e93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 48647feed9f7a2d839c6ada12147b341833646e8
refs/heads/master: 7686ee1ad976efeddf10583f013462c66408ae51
16 changes: 8 additions & 8 deletions trunk/net/sched/em_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,14 @@ META_COLLECTOR(int_maclen)
* Netfilter
**************************************************************************/

#ifdef CONFIG_NETFILTER
META_COLLECTOR(int_nfmark)
{
#ifdef CONFIG_NETFILTER
dst->value = skb->nfmark;
}
#else
dst->value = 0;
#endif
}

/**************************************************************************
* Traffic Control
Expand All @@ -229,15 +231,17 @@ META_COLLECTOR(int_tcindex)
* Routing
**************************************************************************/

#ifdef CONFIG_NET_CLS_ROUTE
META_COLLECTOR(int_rtclassid)
{
if (unlikely(skb->dst == NULL))
*err = -1;
else
#ifdef CONFIG_NET_CLS_ROUTE
dst->value = skb->dst->tclassid;
}
#else
dst->value = 0;
#endif
}

META_COLLECTOR(int_rtiif)
{
Expand Down Expand Up @@ -487,13 +491,9 @@ static struct meta_ops __meta_ops[TCF_META_TYPE_MAX+1][TCF_META_ID_MAX+1] = {
[META_ID(PKTLEN)] = META_FUNC(int_pktlen),
[META_ID(DATALEN)] = META_FUNC(int_datalen),
[META_ID(MACLEN)] = META_FUNC(int_maclen),
#ifdef CONFIG_NETFILTER
[META_ID(NFMARK)] = META_FUNC(int_nfmark),
#endif
[META_ID(TCINDEX)] = META_FUNC(int_tcindex),
#ifdef CONFIG_NET_CLS_ROUTE
[META_ID(RTCLASSID)] = META_FUNC(int_rtclassid),
#endif
[META_ID(RTIIF)] = META_FUNC(int_rtiif),
[META_ID(SK_FAMILY)] = META_FUNC(int_sk_family),
[META_ID(SK_STATE)] = META_FUNC(int_sk_state),
Expand Down

0 comments on commit bda6e93

Please sign in to comment.