]> arthur.barton.de Git - netatalk.git/blob - libatalk/pap/pap_tickle.c
Removed an unused file.
[netatalk.git] / libatalk / pap / pap_tickle.c
1 /*
2  * $Id: pap_tickle.c,v 1.4 2002-01-04 04:45:48 sibaz Exp $
3  *
4  * send a tickle
5  */
6
7 #ifdef HAVE_CONFIG_H
8 #include "config.h"
9 #endif /* HAVE_CONFIG_H */
10
11 void pap_tickle(PAP pap, const u_int8_t connid, struct sockaddr_at *sat)
12 {
13   struct atp_block atpb; 
14   u_int8_t buf[PAP_HDRSIZ];
15
16   buf[ 0 ] = connid;
17   buf[ 1 ] = PAP_TICKLE;
18   buf[ 2 ] = buf[ 3 ] = 0;
19
20   atpb.atp_saddr = sat;
21   atpb.atp_sreqdata = buf;
22   atpb.atp_sreqdlen = sizeof(buf);      /* bytes in Tickle request */
23   atpb.atp_sreqto = 0;          /* retry timer */
24   atpb.atp_sreqtries = 1;       /* retry count */
25   if ( atp_sreq( pap->pap_atp, &atpb, 0, 0 ) < 0 ) {
26     LOG(log_error, logtype_default, "atp_sreq: %m");
27   }
28 }