000-debian_2.5.1-5.1.patch 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. --- a/src/mpoad/mpcd.8
  2. +++ b/src/mpoad/mpcd.8
  3. @@ -28,7 +28,7 @@ mpcd \- ATM MPOA (Multi\-Protocol Over A
  4. .B ]]
  5. .SH DESCRIPTION
  6. MPOA client
  7. -.SM(MPC) is responsible for creating and receiving
  8. +.SM (MPC) is responsible for creating and receiving
  9. internetwork layer shortcuts. Using these shortcuts MPCs forward
  10. unicast internetwork layer packets effectively over ATM without need
  11. for routing protocols.
  12. @@ -43,7 +43,7 @@ accepts shortcuts and packets arriving o
  13. shortcuts is done with the help of
  14. .SM MPOA
  15. server
  16. -.SM(MPS).
  17. +.SM (MPS).
  18. .PP
  19. Just as the Linux
  20. .SM LAN
  21. --- a/src/led/zeppelin.8
  22. +++ b/src/led/zeppelin.8
  23. @@ -99,7 +99,7 @@ Ring and ATM parts of the ELAN, so using
  24. recommended. Token Ring support has received less testing than its
  25. Ethernet counterpart.
  26. .SH FILES
  27. -.IP \fI/var/run/lec[interface number].pid\fP
  28. +.IP \fI/var/run/lec[interface\ number].pid\fP
  29. The file containing the process id of zeppelin.
  30. .SH BUGS
  31. John Bonham died 1980 and Led Zeppelin broke.
  32. --- a/src/sigd/atmsigd.conf.4
  33. +++ b/src/sigd/atmsigd.conf.4
  34. @@ -125,7 +125,7 @@ a comment. The `#' character cannot be e
  35. .P
  36. If an option is specified in \fBatmsigd.conf\fP and on the command
  37. line, the command line has priority.
  38. -.COMPATIBILITY
  39. +.SH COMPATIBILITY
  40. Certain options used by past versions of \fBatmsigd\fP but no longer documented
  41. on the man page are still recognized and supported, but they also yield a
  42. warning message. Future versions of \fBatmsigd\fP will not recognize those
  43. --- a/src/arpd/io.c
  44. +++ b/src/arpd/io.c
  45. @@ -277,7 +277,8 @@ static void accept_new(void)
  46. struct atm_qos qos;
  47. ENTRY *entry;
  48. VCC *vcc;
  49. - int fd,len,size,error;
  50. + int fd,error;
  51. + socklen_t len,size;
  52. len = sizeof(addr);
  53. if ((fd = accept(incoming,(struct sockaddr *) &addr,&len)) < 0) {
  54. @@ -614,7 +615,8 @@ int ip_itf_info(int number,uint32_t *ip,
  55. int get_local(int fd,struct sockaddr_atmsvc *addr)
  56. {
  57. - int length,result;
  58. + int result;
  59. + size_t length;
  60. length = sizeof(struct sockaddr_atmsvc);
  61. result = getsockname(fd,(struct sockaddr *) addr,&length);
  62. --- a/src/arpd/table.c
  63. +++ b/src/arpd/table.c
  64. @@ -101,7 +101,8 @@ static void dump_vcc(VCC *vcc)
  65. char addr_buf[MAX_ATM_ADDR_LEN+1];
  66. char qos_buf[MAX_ATM_QOS_LEN+1];
  67. struct atm_qos qos;
  68. - int size,sndbuf;
  69. + int sndbuf;
  70. + socklen_t size;
  71. size = sizeof(addr);
  72. if (getpeername(vcc->fd,(struct sockaddr *) &addr,&size) < 0) {
  73. --- a/src/ilmid/asn1/asn_int.c
  74. +++ b/src/ilmid/asn1/asn_int.c
  75. @@ -185,7 +185,7 @@ FILE* f _AND_
  76. AsnInt* v _AND_
  77. unsigned short int indent)
  78. {
  79. - fprintf(f,"%d", *v);
  80. + fprintf(f,"%ld", *v);
  81. }
  82. @@ -370,5 +370,5 @@ FILE* f _AND_
  83. UAsnInt* v _AND_
  84. unsigned short int indent)
  85. {
  86. - fprintf(f,"%u", *v);
  87. + fprintf(f,"%lu", *v);
  88. }
  89. --- a/src/ilmid/asn1/asn_oid.c
  90. +++ b/src/ilmid/asn1/asn_oid.c
  91. @@ -127,7 +127,7 @@ unsigned short int indent)
  92. if (firstArcNum > 2)
  93. firstArcNum = 2;
  94. - fprintf(f,"%u %u", firstArcNum, arcNum - (firstArcNum * 40));
  95. + fprintf(f,"%d %lu", firstArcNum, arcNum - (firstArcNum * 40));
  96. for (; i < v->octetLen ; )
  97. {
  98. @@ -136,7 +136,7 @@ unsigned short int indent)
  99. arcNum = (arcNum << 7) + (v->octs[i] & 0x7f);
  100. i++;
  101. - fprintf(f," %u", arcNum);
  102. + fprintf(f," %lu", arcNum);
  103. }
  104. fprintf(f,"}");
  105. --- a/src/lane/connect.c
  106. +++ b/src/lane/connect.c
  107. @@ -258,7 +258,8 @@ static int
  108. data_handler(const Event_t *event, void *funcdata)
  109. {
  110. Conn_t *tmp, *newconn;
  111. - int fd, nbytes;
  112. + int fd;
  113. + socklen_t nbytes;
  114. static char buffer[BUFSIZE];
  115. LaneControl_t *ctmp;
  116. struct sockaddr_atmsvc addr;
  117. --- a/src/lane/connect_bus.c
  118. +++ b/src/lane/connect_bus.c
  119. @@ -170,7 +170,8 @@ static int
  120. data_handler(const Event_t *event, void *funcdata)
  121. {
  122. Conn_t *tmp, *newconn;
  123. - int fd, nbytes;
  124. + int fd;
  125. + socklen_t nbytes;
  126. static char buffer[BUFSIZE];
  127. struct sockaddr_atmsvc addr;
  128. --- a/src/lane/lane_atm.c
  129. +++ b/src/lane/lane_atm.c
  130. @@ -138,7 +138,7 @@ atm_connect_back(const AtmAddr_t *our_ad
  131. struct atm_blli blli;
  132. struct atm_qos qos;
  133. int fd, ret;
  134. - int len = sizeof(address);
  135. + socklen_t len = sizeof(address);
  136. fd = socket(PF_ATMSVC, SOCK_DGRAM, 0);
  137. if (fd <0) {
  138. --- a/src/lane/lecs.c
  139. +++ b/src/lane/lecs.c
  140. @@ -119,7 +119,7 @@ int main(int argc, char **argv)
  141. int just_dump=0;
  142. fd_set fds;
  143. struct sockaddr_atmsvc client;
  144. - int len;
  145. + socklen_t len;
  146. unsigned char buffer[P_SIZE];
  147. while(i!=-1) {
  148. --- a/src/lib/ans.c
  149. +++ b/src/lib/ans.c
  150. @@ -41,7 +41,7 @@
  151. static int ans(const char *text,int wanted,void *result,int res_len)
  152. {
  153. unsigned char answer[MAX_ANSWER];
  154. - unsigned char name[MAX_NAME];
  155. + char name[MAX_NAME];
  156. unsigned char *pos,*data,*found;
  157. int answer_len,name_len,data_len,found_len;
  158. int questions,answers;
  159. --- a/src/lib/sdu2cell.c
  160. +++ b/src/lib/sdu2cell.c
  161. @@ -15,7 +15,8 @@ int sdu2cell(int s,int sizes,const int *
  162. {
  163. struct atm_qos qos;
  164. int trailer,total,cells;
  165. - int size,i;
  166. + int i;
  167. + socklen_t size;
  168. size = sizeof(qos);
  169. if (getsockopt(s,SOL_AAL,SO_ATMQOS,&qos,&size) < 0) return -1;
  170. --- a/src/lib/unix.c
  171. +++ b/src/lib/unix.c
  172. @@ -63,8 +63,8 @@ int un_attach(const char *path)
  173. int un_recv_connect(int s,void *buf,int size)
  174. {
  175. struct sockaddr_un addr;
  176. - int addr_size;
  177. int len;
  178. + socklen_t addr_size;
  179. addr_size = sizeof(addr);
  180. len = recvfrom(s,buf,size,0,(struct sockaddr *) &addr,&addr_size);
  181. --- a/src/maint/atmtcp.c
  182. +++ b/src/maint/atmtcp.c
  183. @@ -817,7 +817,8 @@ int main(int argc,char **argv)
  184. }
  185. else if (!strcmp(ARG,"listen") ||
  186. (do_background = !strcmp(ARG,"listen-bg"))) {
  187. - int fd,port,addr_len;
  188. + int fd,port;
  189. + socklen_t addr_len;
  190. int *fd2 = alloc_t(int);
  191. if ((fd = socket(PF_INET,SOCK_STREAM,0)) < 0) {
  192. --- a/src/maint/hediag.c
  193. +++ b/src/maint/hediag.c
  194. @@ -1,6 +1,7 @@
  195. #include <stdio.h>
  196. #include <stdlib.h>
  197. #include <unistd.h>
  198. +#include <string.h>
  199. #include <sys/ioctl.h>
  200. #include <sys/types.h>
  201. #include <sys/socket.h>
  202. --- a/src/mpoad/io.c
  203. +++ b/src/mpoad/io.c
  204. @@ -521,7 +521,8 @@ static int msg_from_mps(int slot)
  205. static int accept_conn(int slot)
  206. {
  207. struct sockaddr_atmsvc sa;
  208. - int i, new_fd, sa_len;
  209. + int i, new_fd;
  210. + socklen_t sa_len;
  211. sa_len = sizeof(sa);
  212. new_fd = accept(fds[slot].fd, (struct sockaddr *)&sa, &sa_len);
  213. --- a/src/sigd/io.c
  214. +++ b/src/sigd/io.c
  215. @@ -355,7 +355,7 @@ int get_pvc(int itf,int *vci)
  216. error = 0;
  217. if (bind(s,(struct sockaddr *) &addr,sizeof(addr)) < 0) error = errno;
  218. else {
  219. - int size;
  220. + socklen_t size;
  221. size = sizeof(addr);
  222. if (getsockname(s,(struct sockaddr *) &addr,&size) < 0)
  223. --- a/src/test/ttcp.c
  224. +++ b/src/test/ttcp.c
  225. @@ -92,7 +92,8 @@ struct sockaddr_in frominet;
  226. struct sockaddr_atmsvc satm;
  227. struct atm_qos qos;
  228. -int domain, fromlen;
  229. +int domain;
  230. +socklen_t fromlen;
  231. int fd; /* fd of network socket */
  232. int buflen = 8 * 1024; /* length of buffer */
  233. @@ -466,7 +467,7 @@ int no_check = 0;
  234. {
  235. struct sockaddr_atmsvc peer;
  236. - int peerlen = sizeof(peer);
  237. + socklen_t peerlen = sizeof(peer);
  238. if (getpeername(fd, (struct sockaddr *) &peer,
  239. &peerlen) < 0) {
  240. err("getpeername");
  241. @@ -498,7 +499,7 @@ int no_check = 0;
  242. /* set socket buffer size */
  243. #if defined(SO_SNDBUF) || defined(SO_RCVBUF)
  244. if (sockbufsize) {
  245. - int len;
  246. + socklen_t len;
  247. if (trans) {
  248. /* set send socket buffer if we are transmitting */
  249. @@ -663,7 +664,7 @@ int no_check = 0;
  250. exit(0);
  251. usage:
  252. - fprintf(stderr, Usage);
  253. + fprintf(stderr, "%s", Usage);
  254. exit(1);
  255. }
  256. --- a/src/arpd/arp.c
  257. +++ b/src/arpd/arp.c
  258. @@ -17,6 +17,7 @@
  259. #include <netinet/in.h> /* for ntohs, etc. */
  260. #define _LINUX_NETDEVICE_H /* very crude hack for glibc2 */
  261. #include <linux/types.h>
  262. +#include <linux/if.h>
  263. #include <linux/if_arp.h>
  264. #include <linux/if_ether.h>
  265. #include <atm.h>
  266. --- a/src/arpd/itf.c
  267. +++ b/src/arpd/itf.c
  268. @@ -14,6 +14,7 @@
  269. #include <sys/socket.h>
  270. #define _LINUX_NETDEVICE_H /* glibc2 */
  271. #include <linux/types.h>
  272. +#include <linux/if.h>
  273. #include <linux/if_arp.h>
  274. #include "atmd.h"
  275. --- a/src/maint/atmdump.c
  276. +++ b/src/maint/atmdump.c
  277. @@ -14,6 +14,7 @@
  278. #include <sys/types.h>
  279. #include <sys/time.h>
  280. #include <sys/socket.h>
  281. +#include <linux/sockios.h>
  282. #include <netinet/in.h> /* for htonl and ntohl */
  283. #include <atm.h>
  284. --- a/src/maint/saaldump.c
  285. +++ b/src/maint/saaldump.c
  286. @@ -15,6 +15,7 @@
  287. #include <sys/time.h>
  288. #include <sys/types.h>
  289. #include <sys/socket.h>
  290. +#include <linux/sockios.h>
  291. #include <atm.h>
  292. #include "pdu.h"