]> arthur.barton.de Git - netatalk.git/blob - libatalk/pap/pap_tickle.c
massive commenting/autoconf changes
[netatalk.git] / libatalk / pap / pap_tickle.c
1 /*
2  * $Id: pap_tickle.c,v 1.3 2001-06-29 14:14:47 rufustfirefly 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     syslog(LOG_ERR, "atp_sreq: %m");
27   }
28 }