100-wl_config.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --- a/include/linux/netdevice.h
  2. +++ b/include/linux/netdevice.h
  3. @@ -445,16 +445,12 @@ struct net_device
  4. /* bridge stuff */
  5. struct net_bridge_port *br_port;
  6. -#ifdef CONFIG_NET_FASTROUTE
  7. #define NETDEV_FASTROUTE_HMASK 0xF
  8. /* Semi-private data. Keep it at the end of device struct. */
  9. rwlock_t fastpath_lock;
  10. struct dst_entry *fastpath[NETDEV_FASTROUTE_HMASK+1];
  11. -#endif
  12. -#ifdef CONFIG_NET_DIVERT
  13. /* this will get initialized at each interface type init routine */
  14. struct divert_blk *divert;
  15. -#endif /* CONFIG_NET_DIVERT */
  16. };
  17. /* 2.6 compatibility */
  18. --- a/include/linux/skbuff.h
  19. +++ b/include/linux/skbuff.h
  20. @@ -83,7 +83,6 @@
  21. #define NET_CALLER(arg) __builtin_return_address(0)
  22. #endif
  23. -#ifdef CONFIG_NETFILTER
  24. struct nf_conntrack {
  25. atomic_t use;
  26. void (*destroy)(struct nf_conntrack *);
  27. @@ -92,7 +91,6 @@ struct nf_conntrack {
  28. struct nf_ct_info {
  29. struct nf_conntrack *master;
  30. };
  31. -#endif
  32. #if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
  33. struct nf_info;
  34. #endif
  35. @@ -201,7 +199,6 @@ struct sk_buff {
  36. unsigned char *end; /* End pointer */
  37. void (*destructor)(struct sk_buff *); /* Destruct function */
  38. -#ifdef CONFIG_NETFILTER
  39. /* Can be used for communication between hooks. */
  40. unsigned long nfmark;
  41. /* Cache info */
  42. @@ -211,7 +208,6 @@ struct sk_buff {
  43. #ifdef CONFIG_NETFILTER_DEBUG
  44. unsigned int nf_debug;
  45. #endif
  46. -#endif /*CONFIG_NETFILTER*/
  47. #if defined(CONFIG_HIPPI)
  48. union{
  49. @@ -219,12 +215,8 @@ struct sk_buff {
  50. } private;
  51. #endif
  52. -#ifdef CONFIG_NET_SCHED
  53. __u32 tc_index; /* traffic control index */
  54. -#endif
  55. -#if defined(CONFIG_IMQ) || defined(CONFIG_IMQ_MODULE)
  56. struct nf_info *nf_info;
  57. -#endif
  58. };
  59. #ifdef __KERNEL__