patch-modules_ppp_c 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. --- ppp-2.4.5.orig/modules/ppp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/modules/ppp.c 2014-03-17 16:13:07.000000000 +0100
  3. @@ -254,43 +254,43 @@ static upperstr_t *minor_devs = NULL;
  4. static upperstr_t *ppas = NULL;
  5. #ifdef SVR4
  6. -static int pppopen __P((queue_t *, dev_t *, int, int, cred_t *));
  7. -static int pppclose __P((queue_t *, int, cred_t *));
  8. +static int pppopen (queue_t *, dev_t *, int, int, cred_t *);
  9. +static int pppclose (queue_t *, int, cred_t *);
  10. #else
  11. -static int pppopen __P((queue_t *, int, int, int));
  12. -static int pppclose __P((queue_t *, int));
  13. +static int pppopen (queue_t *, int, int, int);
  14. +static int pppclose (queue_t *, int);
  15. #endif /* SVR4 */
  16. -static int pppurput __P((queue_t *, mblk_t *));
  17. -static int pppuwput __P((queue_t *, mblk_t *));
  18. -static int pppursrv __P((queue_t *));
  19. -static int pppuwsrv __P((queue_t *));
  20. -static int ppplrput __P((queue_t *, mblk_t *));
  21. -static int ppplwput __P((queue_t *, mblk_t *));
  22. -static int ppplrsrv __P((queue_t *));
  23. -static int ppplwsrv __P((queue_t *));
  24. +static int pppurput (queue_t *, mblk_t *);
  25. +static int pppuwput (queue_t *, mblk_t *);
  26. +static int pppursrv (queue_t *);
  27. +static int pppuwsrv (queue_t *);
  28. +static int ppplrput (queue_t *, mblk_t *);
  29. +static int ppplwput (queue_t *, mblk_t *);
  30. +static int ppplrsrv (queue_t *);
  31. +static int ppplwsrv (queue_t *);
  32. #ifndef NO_DLPI
  33. -static void dlpi_request __P((queue_t *, mblk_t *, upperstr_t *));
  34. -static void dlpi_error __P((queue_t *, upperstr_t *, int, int, int));
  35. -static void dlpi_ok __P((queue_t *, int));
  36. +static void dlpi_request (queue_t *, mblk_t *, upperstr_t *);
  37. +static void dlpi_error (queue_t *, upperstr_t *, int, int, int);
  38. +static void dlpi_ok (queue_t *, int);
  39. #endif
  40. -static int send_data __P((mblk_t *, upperstr_t *));
  41. -static void new_ppa __P((queue_t *, mblk_t *));
  42. -static void attach_ppa __P((queue_t *, mblk_t *));
  43. -static void detach_ppa __P((queue_t *, mblk_t *));
  44. -static void detach_lower __P((queue_t *, mblk_t *));
  45. -static void debug_dump __P((queue_t *, mblk_t *));
  46. -static upperstr_t *find_dest __P((upperstr_t *, int));
  47. +static int send_data (mblk_t *, upperstr_t *);
  48. +static void new_ppa (queue_t *, mblk_t *);
  49. +static void attach_ppa (queue_t *, mblk_t *);
  50. +static void detach_ppa (queue_t *, mblk_t *);
  51. +static void detach_lower (queue_t *, mblk_t *);
  52. +static void debug_dump (queue_t *, mblk_t *);
  53. +static upperstr_t *find_dest (upperstr_t *, int);
  54. #if defined(SOL2)
  55. -static upperstr_t *find_promisc __P((upperstr_t *, int));
  56. -static mblk_t *prepend_ether __P((upperstr_t *, mblk_t *, int));
  57. -static mblk_t *prepend_udind __P((upperstr_t *, mblk_t *, int));
  58. -static void promisc_sendup __P((upperstr_t *, mblk_t *, int, int));
  59. +static upperstr_t *find_promisc (upperstr_t *, int);
  60. +static mblk_t *prepend_ether (upperstr_t *, mblk_t *, int);
  61. +static mblk_t *prepend_udind (upperstr_t *, mblk_t *, int);
  62. +static void promisc_sendup (upperstr_t *, mblk_t *, int, int);
  63. #endif /* defined(SOL2) */
  64. -static int putctl2 __P((queue_t *, int, int, int));
  65. -static int putctl4 __P((queue_t *, int, int, int));
  66. -static int pass_packet __P((upperstr_t *ppa, mblk_t *mp, int outbound));
  67. +static int putctl2 (queue_t *, int, int, int);
  68. +static int putctl4 (queue_t *, int, int, int);
  69. +static int pass_packet (upperstr_t *ppa, mblk_t *mp, int outbound);
  70. #ifdef FILTER_PACKETS
  71. -static int ip_hard_filter __P((upperstr_t *ppa, mblk_t *mp, int outbound));
  72. +static int ip_hard_filter (upperstr_t *ppa, mblk_t *mp, int outbound);
  73. #endif /* FILTER_PACKETS */
  74. #define PPP_ID 0xb1a6