100-subdirs.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. Index: linux-atm-2.4.1/configure.in
  2. ===================================================================
  3. --- linux-atm-2.4.1.orig/configure.in 2007-10-20 19:19:10.594232210 +0200
  4. +++ linux-atm-2.4.1/configure.in 2007-10-20 19:19:16.214552491 +0200
  5. @@ -153,26 +153,5 @@
  6. src/Makefile \
  7. src/include/Makefile \
  8. src/lib/Makefile \
  9. - src/test/Makefile \
  10. - src/debug/Makefile \
  11. - src/qgen/Makefile \
  12. - src/saal/Makefile \
  13. - src/sigd/Makefile \
  14. - src/maint/Makefile \
  15. - src/arpd/Makefile \
  16. - src/ilmid/Makefile \
  17. - src/ilmid/asn1/Makefile \
  18. - src/man/Makefile \
  19. - src/led/Makefile \
  20. - src/lane/Makefile \
  21. - src/mpoad/Makefile \
  22. - src/switch/Makefile \
  23. - src/switch/debug/Makefile \
  24. - src/switch/tcp/Makefile \
  25. - src/config/Makefile \
  26. - src/config/init-redhat/Makefile \
  27. - src/extra/Makefile \
  28. - src/extra/linux-atm.spec \
  29. - src/extra/ANS/Makefile
  30. )
  31. Index: linux-atm-2.4.1/src/Makefile.am
  32. ===================================================================
  33. --- linux-atm-2.4.1.orig/src/Makefile.am 2007-10-20 19:19:10.602232664 +0200
  34. +++ linux-atm-2.4.1/src/Makefile.am 2007-10-20 19:19:16.218552720 +0200
  35. @@ -1,3 +1,2 @@
  36. -SUBDIRS = include lib test debug qgen saal sigd maint arpd ilmid man led lane \
  37. - mpoad switch config extra
  38. +SUBDIRS = include lib
  39. Index: linux-atm-2.4.1/src/include/linux/atmbr2684.h
  40. ===================================================================
  41. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  42. +++ linux-atm-2.4.1/src/include/linux/atmbr2684.h 2007-10-20 19:19:16.230553402 +0200
  43. @@ -0,0 +1,117 @@
  44. +#ifndef _LINUX_ATMBR2684_H
  45. +#define _LINUX_ATMBR2684_H
  46. +
  47. +#include <linux/atm.h>
  48. +#include <linux/if.h> /* For IFNAMSIZ */
  49. +#include <linux/if_ether.h> /* ETH_P_* */
  50. +
  51. +/*
  52. + * Type of media we're bridging (ethernet, token ring, etc) Currently only
  53. + * ethernet is supported
  54. + */
  55. +#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
  56. +#define BR2684_MEDIA_802_4 (1) /* 802.4 */
  57. +#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
  58. +#define BR2684_MEDIA_FDDI (3)
  59. +#define BR2684_MEDIA_802_6 (4) /* 802.6 */
  60. +
  61. +/*
  62. + * Is there FCS inbound on this VC? This currently isn't supported.
  63. + */
  64. +#define BR2684_FCSIN_NO (0)
  65. +#define BR2684_FCSIN_IGNORE (1)
  66. +#define BR2684_FCSIN_VERIFY (2)
  67. +
  68. +/*
  69. + * Is there FCS outbound on this VC? This currently isn't supported.
  70. + */
  71. +#define BR2684_FCSOUT_NO (0)
  72. +#define BR2684_FCSOUT_SENDZERO (1)
  73. +#define BR2684_FCSOUT_GENERATE (2)
  74. +
  75. +/*
  76. + * Does this VC include LLC encapsulation?
  77. + */
  78. +#define BR2684_ENCAPS_VC (0) /* VC-mux */
  79. +#define BR2684_ENCAPS_LLC (1)
  80. +#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
  81. +
  82. +/*
  83. + * Is this VC bridged or routed?
  84. + */
  85. +
  86. +#define BR2684_PAYLOAD_ROUTED (0)
  87. +#define BR2684_PAYLOAD_BRIDGED (1)
  88. +
  89. +
  90. +/*
  91. + * This is for the ATM_NEWBACKENDIF call - these are like socket families:
  92. + * the first element of the structure is the backend number and the rest
  93. + * is per-backend specific
  94. + */
  95. +struct atm_newif_br2684 {
  96. + atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  97. + int media; /* BR2684_MEDIA_* */
  98. + char ifname[IFNAMSIZ];
  99. + int mtu;
  100. + int payload; /* bridged or routed */
  101. +};
  102. +
  103. +/*
  104. + * This structure is used to specify a br2684 interface - either by a
  105. + * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
  106. + */
  107. +#define BR2684_FIND_BYNOTHING (0)
  108. +#define BR2684_FIND_BYNUM (1)
  109. +#define BR2684_FIND_BYIFNAME (2)
  110. +struct br2684_if_spec {
  111. + int method; /* BR2684_FIND_* */
  112. + union {
  113. + char ifname[IFNAMSIZ];
  114. + int devnum;
  115. + } spec;
  116. +};
  117. +
  118. +/*
  119. + * This is for the ATM_SETBACKEND call - these are like socket families:
  120. + * the first element of the structure is the backend number and the rest
  121. + * is per-backend specific
  122. + */
  123. +struct atm_backend_br2684 {
  124. + atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  125. + struct br2684_if_spec ifspec;
  126. + int fcs_in; /* BR2684_FCSIN_* */
  127. + int fcs_out; /* BR2684_FCSOUT_* */
  128. + int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
  129. + int encaps; /* BR2684_ENCAPS_* */
  130. + int payload; /* BR2684_PAYLOAD_* */
  131. + int has_vpiid; /* 1: use vpn_id - Unsupported */
  132. + __u8 vpn_id[7];
  133. + int send_padding; /* unsupported */
  134. + int min_size; /* we will pad smaller packets than this */
  135. +};
  136. +
  137. +/*
  138. + * The BR2684_SETFILT ioctl is an experimental mechanism for folks
  139. + * terminating a large number of IP-only vcc's. When netfilter allows
  140. + * efficient per-if in/out filters, this support will be removed
  141. + */
  142. +struct br2684_filter {
  143. + __u32 prefix; /* network byte order */
  144. + __u32 netmask; /* 0 = disable filter */
  145. +};
  146. +
  147. +struct br2684_filter_set {
  148. + struct br2684_if_spec ifspec;
  149. + struct br2684_filter filter;
  150. +};
  151. +
  152. +enum br2684_payload {
  153. + p_routed = BR2684_PAYLOAD_ROUTED,
  154. + p_bridged = BR2684_PAYLOAD_BRIDGED,
  155. +};
  156. +
  157. +#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
  158. + struct br2684_filter_set)
  159. +
  160. +#endif /* _LINUX_ATMBR2684_H */