OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ipt_sysrq/compile-fix-2.6.21.patch
  5. # Copyright (C) 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./src/ipt_SYSRQ-module.c.orig 2007-07-20 14:38:27.000000000 +0300
  17. +++ ./src/ipt_SYSRQ-module.c 2007-07-20 14:51:09.000000000 +0300
  18. @@ -38,12 +38,7 @@
  19. if( (c=rsysrq_extract((struct rsysrq_s*)buf,passwd,now.tv_sec,tolerance))==0 )
  20. return(0);
  21. -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
  22. - handle_sysrq(c, NULL, NULL, NULL );
  23. -#else
  24. - handle_sysrq(c, NULL, NULL );
  25. -#endif
  26. -
  27. + handle_sysrq(c, NULL);
  28. return(1);
  29. }
  30. @@ -53,8 +48,7 @@
  31. unsigned int hooknum,
  32. const struct net_device *in,
  33. const struct net_device *out,
  34. - const void *targinfo,
  35. - void *userinfo)
  36. + const void *targinfo)
  37. #else
  38. static unsigned int
  39. target(struct sk_buff **pskb,
  40. @@ -107,8 +101,9 @@
  41. return 1;
  42. }
  43. -static struct ipt_target ipt_sysrq_reg = {
  44. +static struct xt_target ipt_sysrq_reg = {
  45. .name = "SYSRQ",
  46. + .family = AF_INET,
  47. .target = target,
  48. .checkentry = checkentry,
  49. .me = THIS_MODULE,
  50. @@ -120,7 +115,7 @@
  51. static int __init init(void)
  52. {
  53. - if (ipt_register_target(&ipt_sysrq_reg))
  54. + if (xt_register_target(&ipt_sysrq_reg))
  55. return -EINVAL;
  56. return 0;
  57. @@ -128,7 +123,7 @@
  58. static void __exit fini(void)
  59. {
  60. - ipt_unregister_target(&ipt_sysrq_reg);
  61. + xt_unregister_target(&ipt_sysrq_reg);
  62. }
  63. module_init(init);