1/* 2 * $Id: atp_internals.h,v 1.4 2009-10-13 22:55:37 didg Exp $ 3 * 4 * Copyright (c) 1990,1991 Regents of The University of Michigan. 5 * All Rights Reserved. 6 * 7 * Permission to use, copy, modify, and distribute this software and 8 * its documentation for any purpose and without fee is hereby granted, 9 * provided that the above copyright notice appears in all copies and 10 * that both that copyright notice and this permission notice appear 11 * in supporting documentation, and that the name of The University 12 * of Michigan not be used in advertising or publicity pertaining to 13 * distribution of the software without specific, written prior 14 * permission. This software is supplied as is without expressed or 15 * implied warranties of any kind. 16 * 17 * Research Systems Unix Group 18 * The University of Michigan 19 * c/o Mike Clark 20 * 535 W. William Street 21 * Ann Arbor, Michigan 22 * +1-313-763-0525 23 * netatalk@itd.umich.edu 24 */ 25 26#ifndef ATP_INTERNALS_H 27#define ATP_INTERNALS_H 1 28 29#include <sys/types.h> 30#include <sys/cdefs.h> 31#include <netatalk/at.h> 32#include <netatalk/endian.h> 33#include <atalk/atp.h> 34 35/* 36 * masks for matching incoming packets 37 */ 38#define ATP_FUNCANY ATP_TREQ | ATP_TRESP | ATP_TREL 39#define ATP_TIDANY 0xffff 40 41/* in atp_bufs.c */ 42extern struct atpbuf *atp_alloc_buf (void); 43extern void atp_print_bufuse (ATP, char *); 44extern int atp_free_buf (struct atpbuf *); 45 46/* in atp_packet.c */ 47extern int at_addr_eq (struct sockaddr_at *, 48 struct sockaddr_at *); 49extern void atp_build_req_packet (struct atpbuf *, u_int16_t, 50 u_int8_t, struct atp_block *); 51extern void atp_build_resp_packet (struct atpbuf *, u_int16_t, 52 u_int8_t, struct atp_block *, 53 u_int8_t); 54extern int atp_recv_atp (ATP, struct sockaddr_at *, 55 u_int8_t *, u_int16_t, char *, 56 int); 57#ifdef EBUG 58extern void atp_print_addr (char *, struct sockaddr_at *); 59#endif /* EBUG */ 60 61#endif /* ATP_INTERNALS_H */ 62