]> arthur.barton.de Git - netatalk.git/blob - libatalk/pap/pap_sendstatus.c
Major automake/autoconf commit. Not working yet.
[netatalk.git] / libatalk / pap / pap_sendstatus.c
1
2
3 int pap_sendstatus(PAP pap)
4 {
5   struct atp_block atpb; 
6   u_int8_t buf[PAP_HDRSIZ];
7   
8   buf[ 0 ] = 0;
9   buf[ 1 ] = PAP_SENDSTATUS;
10   buf[ 2 ] = buf[ 3 ] = 0;
11   atpb.atp_saddr =&pap->pap_sat;
12   atpb.atp_sreqdata = buf;
13   atpb.atp_sreqdlen = 4;        /* bytes in SendStatus request */
14   atpb.atp_sreqto = 2;          /* retry timer */
15   atpb.atp_sreqtries = 5;               /* retry count */
16   if ( atp_sreq( satp, &atpb, 1, 0 ) < 0 ) {
17     return -1;
18   }
19
20   return 0;
21 }