Searched refs:packetlen (Results 1 – 4 of 4) sorted by relevance
/external/iputils/ |
D | rdisc.c | 100 static int sendbcast(int s, char *packet, int packetlen); 101 static int sendmcast(int s, char *packet, int packetlen, struct sockaddr_in *); 102 static int sendbcastif(int s, char *packet, int packetlen, struct interface *ifp); 103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac… 544 int packetlen, i; in solicitor() local 554 packetlen = 8; in solicitor() 557 icp->checksum = in_cksum( (u_short *)icp, packetlen ); in solicitor() 560 i = sendbcast(s, (char *)outpack, packetlen); in solicitor() 562 i = sendmcast(s, (char *)outpack, packetlen, sin); in solicitor() 564 i = sendto( s, (char *)outpack, packetlen, 0, in solicitor() [all …]
|
/external/toybox/toys/pending/ |
D | tftp.c | 219 int packetlen, retry; in read_ack() local 242 packetlen = mkpkt_err(packet, TFTP_ER_UNKID, TFTP_ES_UNKID); in read_ack() 243 (void) write_server(sd, packet, packetlen, server); in read_ack() 252 packetlen = mkpkt_err(packet, TFTP_ER_ILLEGALOP, TFTP_ES_ILLEGALOP); in read_ack() 253 (void) write_server(sd, packet, packetlen, server); in read_ack() 388 int packetlen, sd, fd, retry = 0, ret, result = -1; in file_put() local 395 packetlen = mkpkt_request(packet, TFTP_OP_WRQ, TT.remote_file, 1); in file_put() 396 ret = write_server(sd, packet, packetlen, &server); in file_put() 397 if (ret != packetlen) goto errout_with_sd; in file_put() 405 packetlen = mkpkt_data(fd, offset, packet, blockno); in file_put() [all …]
|
/external/curl/lib/ |
D | mqtt.c | 144 const size_t packetlen = client_id_offset + MQTT_CLIENTID_LEN; in mqtt_connect() local 157 packet[1] = (packetlen - 2) & 0x7f; in mqtt_connect() 165 result = mqtt_send(conn, packet, packetlen); in mqtt_connect() 248 size_t packetlen; in mqtt_subscribe() local 258 packetlen = topiclen + 5; /* packetid + topic (has a two byte length field) in mqtt_subscribe() 260 n = mqtt_encode_len((char *)encodedsize, packetlen); in mqtt_subscribe() 261 packetlen += n + 1; /* add one for the control packet type byte */ in mqtt_subscribe() 263 packet = malloc(packetlen); in mqtt_subscribe() 278 result = mqtt_send(conn, (char *)packet, packetlen); in mqtt_subscribe()
|
/external/curl/tests/server/ |
D | mqttd.c | 342 static int encode_length(size_t packetlen, char *remlength) /* 4 bytes */ in encode_length() argument 348 encode = packetlen % 0x80; in encode_length() 349 packetlen /= 0x80; in encode_length() 350 if(packetlen) in encode_length() 359 } while(packetlen); in encode_length() 395 ssize_t packetlen; in publish() local 404 packetlen = remaininglength + encodedlen + 1; in publish() 405 packet = malloc(packetlen); in publish() 422 sendamount = packetlen; in publish() 432 if(rc == packetlen) in publish()
|