/*
+ * $Id: atp.h,v 1.5 2009-10-13 22:55:37 didg Exp $
+ *
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
#ifndef _ATALK_ATP_H
#define _ATALK_ATP_H 1
+
+#ifndef NO_DDP
#include <sys/cdefs.h>
#include <sys/types.h>
struct atpbuf {
struct atpbuf *atpbuf_next; /* next buffer in chain */
- short atpbuf_dlen; /* data length <= ATP_BUFSIZ */
+ size_t atpbuf_dlen; /* data length <= ATP_BUFSIZ */
struct sockaddr_at atpbuf_addr; /* net address sent/recvd */
union {
char atpbuf_data[ ATP_BUFSIZ ]; /* the data */
#define ATP_TRESP (2<<6) /* Trans. RESPonse */
#define ATP_TREL (3<<6) /* Trans. RELease */
-extern ATP atp_open __P((u_int8_t,
- const struct at_addr *));
-extern int atp_close __P((ATP));
-extern int atp_sreq __P((ATP, struct atp_block *, int,
- u_int8_t));
-extern int atp_rresp __P((ATP, struct atp_block *));
-extern int atp_rsel __P((ATP, struct sockaddr_at *, int));
-extern int atp_rreq __P((ATP, struct atp_block *));
-extern int atp_sresp __P((ATP, struct atp_block *));
-
+extern ATP atp_open (u_int8_t,
+ const struct at_addr *);
+extern int atp_close (ATP);
+extern int atp_sreq (ATP, struct atp_block *, int,
+ u_int8_t);
+extern int atp_rresp (ATP, struct atp_block *);
+extern int atp_rsel (ATP, struct sockaddr_at *, int);
+extern int atp_rreq (ATP, struct atp_block *);
+extern int atp_sresp (ATP, struct atp_block *);
+
+#endif /* NO_DDP */
#endif