1
0

patch-solaris_ppp_c 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. --- ppp-2.4.5.orig/solaris/ppp.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/solaris/ppp.c 2014-03-17 16:13:16.000000000 +0100
  3. @@ -254,45 +254,45 @@ 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 int send_data (mblk_t *, upperstr_t *);
  44. +static void new_ppa (queue_t *, mblk_t *);
  45. +static void attach_ppa (queue_t *, mblk_t *);
  46. #ifndef NO_DLPI
  47. -static void detach_ppa __P((queue_t *, mblk_t *));
  48. +static void detach_ppa (queue_t *, mblk_t *);
  49. #endif
  50. -static void detach_lower __P((queue_t *, mblk_t *));
  51. -static void debug_dump __P((queue_t *, mblk_t *));
  52. -static upperstr_t *find_dest __P((upperstr_t *, int));
  53. +static void detach_lower (queue_t *, mblk_t *);
  54. +static void debug_dump (queue_t *, mblk_t *);
  55. +static upperstr_t *find_dest (upperstr_t *, int);
  56. #if defined(SOL2)
  57. -static upperstr_t *find_promisc __P((upperstr_t *, int));
  58. -static mblk_t *prepend_ether __P((upperstr_t *, mblk_t *, int));
  59. -static mblk_t *prepend_udind __P((upperstr_t *, mblk_t *, int));
  60. -static void promisc_sendup __P((upperstr_t *, mblk_t *, int, int));
  61. +static upperstr_t *find_promisc (upperstr_t *, int);
  62. +static mblk_t *prepend_ether (upperstr_t *, mblk_t *, int);
  63. +static mblk_t *prepend_udind (upperstr_t *, mblk_t *, int);
  64. +static void promisc_sendup (upperstr_t *, mblk_t *, int, int);
  65. #endif /* defined(SOL2) */
  66. -static int putctl2 __P((queue_t *, int, int, int));
  67. -static int putctl4 __P((queue_t *, int, int, int));
  68. -static int pass_packet __P((upperstr_t *ppa, mblk_t *mp, int outbound));
  69. +static int putctl2 (queue_t *, int, int, int);
  70. +static int putctl4 (queue_t *, int, int, int);
  71. +static int pass_packet (upperstr_t *ppa, mblk_t *mp, int outbound);
  72. #ifdef FILTER_PACKETS
  73. -static int ip_hard_filter __P((upperstr_t *ppa, mblk_t *mp, int outbound));
  74. +static int ip_hard_filter (upperstr_t *ppa, mblk_t *mp, int outbound);
  75. #endif /* FILTER_PACKETS */
  76. #define PPP_ID 0xb1a6