Lines Matching defs:packet

21  * - Handling multi-packet known answers
23 * - Dynamic size of outgoing packet
121 /* Payload size allocated for each outgoing UDP packet */
194 /** Information about received packet */
199 /** If packet was received unicast */
201 /** Netif that received the packet */
205 /** Current parsing offset in packet */
209 /** Number of questions in packet,
210 * read from packet header */
214 /** Number of answers in packet,
216 * read from packet header */
222 /** Information about outgoing packet */
224 /** Netif to send the packet on */
228 /** Current write offset in packet */
243 /** Offsets for written domain names in packet.
246 /** If all answers in packet should set cache_flush bit */
283 /** Offset of start of variable answer in packet */
372 /* Make sure both jump bytes fit in the packet */
381 /* Dont return offset since new bytes were not read (jumped to somewhere in packet) */
413 * Read possibly compressed domain name from packet buffer
414 * @param p The packet
415 * @param offset start position of domain name in packet
779 * @param pbuf Pointer to pbuf with the partially constructed DNS packet
896 * reply with a unicast packet
951 * Write answer to reply packet.
1042 * Reads a domain, type and class from the packet
1043 * @param pkt The MDNS packet to read from. The parse_offset field will be
1075 * Read a question from the packet.
1077 * @param pkt The MDNS packet to read from. The questions_left field will be decremented
1110 * Read an answer from the packet
1112 * @param pkt The MDNS packet to read. The answers_left field will be decremented and
1272 * Setup outpacket as a reply to the incoming packet
1306 * Send the packet
1484 /* Shrink packet */
1496 /* Send created packet */
1497 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Sending packet, len=%d, unicast=%d\n", outpkt->write_offset, outpkt->unicast_reply));
1556 * Handle question MDNS packet
1559 * 3. Put chosen answers in new packet and send as reply
1584 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Failed to parse question, skipping query packet\n"));
1610 /* Add question to reply packet (legacy packet only has 1 question) */
1627 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Failed to parse answer, skipping query packet\n"));
1779 * Handle response MDNS packet
1794 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Failed to parse question, skipping response packet\n"));
1805 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Failed to parse answer, skipping response packet\n"));
1813 /*"Apparently conflicting Multicast DNS responses received *before* the first probe packet is sent MUST
1856 struct mdns_packet packet;
1863 LWIP_DEBUGF(MDNS_DEBUG, ("MDNS: Received IPv%d MDNS packet, len %d\n", IP_IS_V6(addr) ? 6 : 4, p->tot_len));
1881 memset(&packet, 0, sizeof(packet));
1882 SMEMCPY(&packet.source_addr, addr, sizeof(packet.source_addr));
1883 packet.source_port = port;
1884 packet.netif = recv_netif;
1885 packet.pbuf = p;
1886 packet.parse_offset = offset;
1887 packet.tx_id = lwip_ntohs(hdr.id);
1888 packet.questions = packet.questions_left = lwip_ntohs(hdr.numquestions);
1889 packet.answers = packet.answers_left = lwip_ntohs(hdr.numanswers) + lwip_ntohs(hdr.numauthrr) + lwip_ntohs(hdr.numextrarr);
1895 packet.recv_unicast = 1;
1902 packet.recv_unicast = 1;
1908 mdns_handle_response(&packet);
1910 mdns_handle_question(&packet);