cls_flow.c (f43dc23d5ea91fca257be02138a255f02d98e806) | cls_flow.c (c7066f70d9610df0b9406cc635fc09e86136e714) |
---|---|
1/* 2 * net/sched/cls_flow.c Generic flow classifier 3 * 4 * Copyright (c) 2007, 2008 Patrick McHardy <kaber@trash.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 262 unchanged lines hidden (view full) --- 271{ 272 return ntohs(CTTUPLE(skb, dst.u.all)); 273fallback: 274 return flow_get_proto_dst(skb); 275} 276 277static u32 flow_get_rtclassid(const struct sk_buff *skb) 278{ | 1/* 2 * net/sched/cls_flow.c Generic flow classifier 3 * 4 * Copyright (c) 2007, 2008 Patrick McHardy <kaber@trash.net> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 --- 262 unchanged lines hidden (view full) --- 271{ 272 return ntohs(CTTUPLE(skb, dst.u.all)); 273fallback: 274 return flow_get_proto_dst(skb); 275} 276 277static u32 flow_get_rtclassid(const struct sk_buff *skb) 278{ |
279#ifdef CONFIG_NET_CLS_ROUTE | 279#ifdef CONFIG_IP_ROUTE_CLASSID |
280 if (skb_dst(skb)) 281 return skb_dst(skb)->tclassid; 282#endif 283 return 0; 284} 285 286static u32 flow_get_skuid(const struct sk_buff *skb) 287{ --- 452 unchanged lines hidden --- | 280 if (skb_dst(skb)) 281 return skb_dst(skb)->tclassid; 282#endif 283 return 0; 284} 285 286static u32 flow_get_skuid(const struct sk_buff *skb) 287{ --- 452 unchanged lines hidden --- |