]> arthur.barton.de Git - netatalk.git/blob - libatalk/pap/pap_sendstatus.c
Removed duplicate -I cruft from automake files
[netatalk.git] / libatalk / pap / pap_sendstatus.c
1 #ifdef HAVE_CONFIG_H
2 #include "config.h"
3 #endif
4
5 int pap_sendstatus(PAP pap)
6 {
7   struct atp_block atpb; 
8   u_int8_t buf[PAP_HDRSIZ];
9   
10   buf[ 0 ] = 0;
11   buf[ 1 ] = PAP_SENDSTATUS;
12   buf[ 2 ] = buf[ 3 ] = 0;
13   atpb.atp_saddr =&pap->pap_sat;
14   atpb.atp_sreqdata = buf;
15   atpb.atp_sreqdlen = 4;        /* bytes in SendStatus request */
16   atpb.atp_sreqto = 2;          /* retry timer */
17   atpb.atp_sreqtries = 5;               /* retry count */
18   if ( atp_sreq( satp, &atpb, 1, 0 ) < 0 ) {
19     return -1;
20   }
21
22   return 0;
23 }