Lines Matching full:packet

6  * to a physical address when sending a packet, and the second part answers
110 /** Pointer to a single pending outgoing packet on this ARP entry. */
181 /* and empty packet queue */ in etharp_free_entry()
184 …LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t… in etharp_free_entry()
230 /* Reset state to stable, so that the next transmitted packet will in etharp_tmr()
379 …E, ("etharp_find_entry: selecting oldest pending entry %"U16_F", freeing packet queue %p\n", (u16_… in etharp_find_entry()
405 * Send an IP packet on the network using netif->linkoutput
408 * @params netif the lwIP network interface on which to send the packet
409 * @params p the packet to send, p->payload pointing to the (uninitialized) ethernet header
412 * @return ERR_OK if the packet was sent, any other err_t on failure
424 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_send_ip: sending packet %p\n", (void *)p)); in etharp_send_ip()
425 /* send the packet */ in etharp_send_ip()
499 /* get the packet pointer */
508 /* send the queued IP packet */
510 /* free the queued IP packet */
624 * Updates the ARP table using the given IP packet.
626 * Uses the incoming IP packet's source address to update the
628 * or free the packet. This function must be called before the
629 * packet p is passed to the IP layer.
631 * @param netif The lwIP network interface on which the IP packet pbuf arrived.
632 * @param p The IP packet that arrived on netif.
647 incoming IP packet comes from a host on the local network. */
679 * @param netif The lwIP network interface on which the ARP packet pbuf arrived.
681 * @param p The ARP packet that arrived on netif. Is freed by this function.
705 ("etharp_arp_input: packet dropped, too short (%"S16_F"/%"S16_F")\n", p->tot_len,
721 /* RFC 826 "Packet Reception": */
727 …("etharp_arp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_…
752 /* ARP packet directed to us? */
770 * and possiby send out an IP packet that was queued on it. */
834 /* free ARP packet */
861 * Resolve and fill-in Ethernet address header for outgoing IP packet.
864 * are selected and the packet is transmitted on the link.
866 * For unicast addresses, the packet is submitted to etharp_query(). In
870 * @param netif The lwIP network interface which the IP packet will be sent on.
871 * @param q The pbuf(s) containing the IP packet to be sent.
872 * @param ipaddr The IP address of the packet destination.
926 /* According to RFC 3297, chapter 2.6.2 (Forwarding Rules), a packet with
928 on the same physical link. The host MUST NOT send the packet to any
978 /* send packet directly on the link */
983 * Send an ARP request for the given IP address and/or queue a packet.
986 * is added and an ARP request is sent for the given address. The packet
990 * is sent for the given address. The packet is queued on this entry.
992 * If the IP address was already stable in the cache, and a packet is
995 * If the IP address was already stable in the cache, and no packet is
1004 * @note q must only be ONE packet, not a packet queue!
1009 * to query for address or queue the packet.
1010 * - ERR_MEM Could not queue packet due to memory shortage.
1030 /* find entry in ARP cache, ask to create entry if queueing packet */
1037 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n"));
1060 since this failure could be temporary, and the next packet calling
1068 /* packet given? */
1074 /* send the packet */
1078 /* entry is still pending, queue the given packet 'q' */
1086 LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
1094 /* copy the whole packet into new pbufs */
1107 /* packet could be taken over? */
1109 /* queue packet ... */
1129 …LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"S16_F"\…
1134 …BUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)…
1138 /* always queue one packet per ARP request only, freeing a previously queued packet */
1140 …LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: dropped previously queued packet %p for…
1145 …LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"S16_F"\…
1149 …BUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)…
1157 * Send a raw ARP packet (opcode and all addresses can be modified)
1159 * @param netif the lwip network interface on which to send the ARP packet
1166 * @param opcode the type of the ARP packet
1167 * @return ERR_OK if the ARP packet has been sent
1168 * ERR_MEM if the ARP packet couldn't be allocated
1191 /* allocate a pbuf for the outgoing ARP request packet */
1205 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n"));
1241 /* free ARP query packet */
1250 * Send an ARP request packet asking for ipaddr.
1255 * ERR_MEM if the ARP packet couldn't be allocated
1273 * @param p the recevied packet, p->payload pointing to the ethernet header
1274 * @param netif the network interface on which the packet was received
1286 /* a packet with only an ethernet header (or less) is not valid for us */
1292 /* points to packet payload, which starts with an Ethernet header */
1307 /* a packet with only an ethernet/vlan header (or less) is not valid for us */
1318 /* silently ignore this packet: not for our VLAN */
1333 /* this might be a multicast or broadcast packet */
1348 /* IP packet? */
1359 LWIP_ASSERT("Can't move over header in packet", 0);