Home
last modified time | relevance | path

Searched full:packet (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/ipv6/
H A Dicmp6.c79 * @param p the mld packet, p->payload pointing to the icmpv6 header
80 * @param inp the netif on which this packet was received
120 case ICMP6_TYPE_PTB: /* Packet too big */ in icmp6_input()
210 * Send an icmpv6 'destination unreachable' packet.
212 * This function must be used only in direct response to a packet that is being
215 * @param p the input packet for which the 'unreachable' should be sent,
226 * Send an icmpv6 'packet too big' packet.
228 * This function must be used only in direct response to a packet that is being
231 * @param p the input packet for which the 'packet too big' should be sent,
242 * Send an icmpv6 'time exceeded' packet.
[all …]
H A Dip6.c115 * to multiple netifs, so find one that can actually send a packet. */ in ip6_route()
276 * @param netif the netif on which to send a packet
357 * Forwards an IPv6 packet. It finds an appropriate route for the
358 * packet, decrements the HL value of the packet, and outputs
359 * the packet on the appropriate interface.
361 * @param p the packet to forward (p->payload points to IP header)
362 * @param iphdr the IPv6 header of the input packet
363 * @param inp the netif on which this packet was received
379 /* Find network interface where to forward this IP packet to. */ in ip6_forward()
409 … LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: not forwarding packet beyond its source address zone.\n")); in ip6_forward()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/ipv4/
H A Dip.c97 * The interface that provided the packet for the current callback
103 * Header of the input packet currently being processed.
111 /** The IP header ID of the next outgoing IP packet */
140 /* return netif on which to forward IP packet */ in ip_route()
161 * @param p the packet to forward
193 * Forwards an IP packet. It finds an appropriate route for the
194 * packet, decrements the TTL value of the packet, adjusts the
195 * checksum and outputs the packet on the appropriate interface.
197 * @param p the packet to forward (p->payload points to IP header)
198 * @param iphdr the IP header of the input packet
[all …]
H A Dicmp.c56 * used to modify and send a response packet (and to 1 if this is not the case,
62 /* The amount of data from the original packet to return in a dest-unreachable */
73 * @param p the icmp echo request packet, p->payload pointing to the ip header
74 * @param inp the netif on which this packet was received
155 /* allocate new packet buffer with space for link headers */ in icmp_input()
163 /* copy the whole packet including ip header */ in icmp_input()
218 LWIP_ASSERT("Can't move over header in packet", 0); in icmp_input()
221 /* send an ICMP packet, src addr is the dest addr of the curren packet */ in icmp_input()
252 * Send an icmp 'destination unreachable' packet, called from ip_input() if
256 * @param p the input packet for which the 'unreachable' should be sent,
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/ipv6/
H A Dip6.c201 * @param netif the netif on which to send a packet
280 * Forwards an IPv6 packet. It finds an appropriate route for the
281 * packet, decrements the HL value of the packet, and outputs
282 * the packet on the appropriate interface.
284 * @param p the packet to forward (p->payload points to IP header)
285 * @param iphdr the IPv6 header of the input packet
286 * @param inp the netif on which this packet was received
302 /* Find network interface where to forward this IP packet to. */ in ip6_forward()
358 …LWIP_DEBUGF(IP6_DEBUG, ("ip6_forward: forwarding packet to %"X16_F":%"X16_F":%"X16_F":%"X16_F":%"X… in ip6_forward()
378 * an IPv6 packet is received. The function does the basic checks of the
[all …]
H A Dicmp6.c77 * @param p the mld packet, p->payload pointing to the icmpv6 header
78 * @param inp the netif on which this packet was received
118 case ICMP6_TYPE_PTB: /* Packet too big */ in icmp6_input()
210 * Send an icmpv6 'destination unreachable' packet.
212 * @param p the input packet for which the 'unreachable' should be sent,
223 * Send an icmpv6 'packet too big' packet.
225 * @param p the input packet for which the 'packet too big' should be sent,
236 * Send an icmpv6 'time exceeded' packet.
238 * @param p the input packet for which the 'unreachable' should be sent,
249 * Send an icmpv6 'parameter problem' packet.
[all …]
H A Dethip6.c60 * Resolve and fill-in Ethernet address header for outgoing IPv6 packet.
63 * are selected and the packet is transmitted on the link.
66 * send the the packet right away, or queue the packet for later itself, unless
71 * @param netif The lwIP network interface which the IP packet will be sent on.
72 * @param q The pbuf(s) containing the IP packet to be sent.
73 * @param ip6addr The IP address of the packet destination.
102 /* Ask ND6 what to do with the packet. */ in ethip6_output()
108 /* If no hardware address is returned, nd6 has queued the packet for later. */ in ethip6_output()
113 /* Send out the packet using the returned hardware address. */ in ethip6_output()
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/ipv4/
H A Dip4.c106 /** The IP header ID of the next outgoing IP packet */
175 /* return netif on which to forward IP packet */ in ip4_route()
180 /* return netif on which to forward IP packet */ in ip4_route()
235 * @param p the packet to forward
272 * Forwards an IP packet. It finds an appropriate route for the
273 * packet, decrements the TTL value of the packet, adjusts the
274 * checksum and outputs the packet on the appropriate interface.
276 * @param p the packet to forward (p->payload points to IP header)
277 * @param iphdr the IP header of the input packet
278 * @param inp the netif on which this packet was received
[all …]
H A Detharp.c6 * to a physical address when sending a packet, and the second part answers
95 /** Pointer to a single pending outgoing packet on this ARP entry. */
172 /* and empty packet queue */ in etharp_free_entry()
175 …LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t… in etharp_free_entry()
223 /* Reset state to stable, so that the next transmitted packet will in etharp_tmr()
375 …G_TRACE, ("etharp_find_entry: selecting oldest pending entry %d, freeing packet queue %p\n", (int)… in etharp_find_entry()
476 /* get the packet pointer */
485 /* send the queued IP packet */
487 /* free the queued IP packet */
635 * @param p The ARP packet that arrived on netif. Is freed by this function.
[all …]
H A Dicmp.c59 * used to modify and send a response packet (and to 1 if this is not the case,
65 /* The amount of data from the original packet to return in a dest-unreachable */
76 * @param p the icmp echo request packet, p->payload pointing to the icmp header
77 * @param inp the netif on which this packet was received
167 /* allocate new packet buffer with space for link headers */ in icmp_input()
186 /* copy the rest of the packet without ip header */ in icmp_input()
209 LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet")); in icmp_input()
249 /* send an ICMP packet */ in icmp_input()
299 * Send an icmp 'destination unreachable' packet, called from ip_input() if
303 * @param p the input packet for which the 'unreachable' should be sent,
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/
H A Detharp.c6 * 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
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/ipv4/
H A Dip4.c106 /** The IP header ID of the next outgoing IP packet */
169 /* return netif on which to forward IP packet */ in ip4_route()
174 /* return netif on which to forward IP packet */ in ip4_route()
228 * @param p the packet to forward
259 * Forwards an IP packet. It finds an appropriate route for the
260 * packet, decrements the TTL value of the packet, adjusts the
261 * checksum and outputs the packet on the appropriate interface.
263 * @param p the packet to forward (p->payload points to IP header)
264 * @param iphdr the IP header of the input packet
265 * @param inp the netif on which this packet was received
[all …]
H A Detharp.c6 * to a physical address when sending a packet, and the second part answers
96 /** Pointer to a single pending outgoing packet on this ARP entry. */
174 /* and empty packet queue */ in etharp_free_entry()
177 …LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t… in etharp_free_entry()
225 /* Reset state to stable, so that the next transmitted packet will in etharp_tmr()
377 …E, ("etharp_find_entry: selecting oldest pending entry %"U16_F", freeing packet queue %p\n", (u16_… in etharp_find_entry()
478 /* get the packet pointer */
487 /* send the queued IP packet */
489 /* free the queued IP packet */
635 * @param p The ARP packet that arrived on netif. Is freed by this function.
[all …]
H A Dicmp.c59 * used to modify and send a response packet (and to 1 if this is not the case,
65 /* The amount of data from the original packet to return in a dest-unreachable */
76 * @param p the icmp echo request packet, p->payload pointing to the icmp header
77 * @param inp the netif on which this packet was received
160 /* allocate new packet buffer with space for link headers */ in icmp_input()
179 /* copy the rest of the packet without ip header */ in icmp_input()
202 LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet")); in icmp_input()
242 /* send an ICMP packet */ in icmp_input()
292 * Send an icmp 'destination unreachable' packet, called from ip_input() if
296 * @param p the input packet for which the 'unreachable' should be sent,
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/netif/ppp/
H A Dvj.h38 * Compressed packet format:
40 * The first octet contains the packet type (top 3 bits), TCP
44 * the compressed packet. The next two octets are the TCP checksum
59 * ack is more than 65535, an uncompressed packet is sent.)
63 * Packet types (must not conflict with IP protocol version)
65 * The top nibble of the first octet is the packet type. There are
67 * control flags set); uncompressed TCP (a normal IP/TCP packet but
69 * this type of packet syncs the sender & receiver); and compressed
74 * three bits are actual packet type. For backward compatibility
77 * means "IP packet".
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/netif/ppp/
H A Dvj.h42 * Compressed packet format:
44 * The first octet contains the packet type (top 3 bits), TCP
48 * the compressed packet. The next two octets are the TCP checksum
63 * ack is more than 65535, an uncompressed packet is sent.)
67 * Packet types (must not conflict with IP protocol version)
69 * The top nibble of the first octet is the packet type. There are
71 * control flags set); uncompressed TCP (a normal IP/TCP packet but
73 * this type of packet syncs the sender & receiver); and compressed
78 * three bits are actual packet type. For backward compatibility
81 * means "IP packet".
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/
H A Dvj.h35 * Compressed packet format:
37 * The first octet contains the packet type (top 3 bits), TCP
41 * the compressed packet. The next two octets are the TCP checksum
56 * ack is more than 65535, an uncompressed packet is sent.)
60 * Packet types (must not conflict with IP protocol version)
62 * The top nibble of the first octet is the packet type. There are
64 * control flags set); uncompressed TCP (a normal IP/TCP packet but
66 * this type of packet syncs the sender & receiver); and compressed
71 * three bits are actual packet type. For backward compatibility
74 * means "IP packet".
[all …]
/nrf52832-nimble/rt-thread/components/net/uip/uip/
H A Duip-fw.c41 * \defgroup uipfw uIP packet forwarding
48 * uIP packet forwarding.
51 * This file implements a number of simple functions which do packet
124 * Pointer to the TCP/IP headers of the packet in the uip_buf buffer.
129 * Pointer to the ICMP/IP headers of the packet in the uip_buf buffer.
134 * Certain fields of an IP packet that are used for identifying
166 * A cache of packet header fields which are used for
173 * The time that a packet cache is active.
179 * Initialize the uIP packet forwarding module.
217 * This function replaces the packet in the uip_buf buffer with the
[all …]
H A Duip_arp.c171 /* Check if the source IP address of the incoming packet matches in uip_arp_update()
224 * packet has been received. The function will check if the address is
228 * This function expects an IP packet with a prepended Ethernet header
229 * in the uip_buf[] buffer, and the length of the packet in the global
240 incoming IP packet comes from a host on the local network. */
259 * packet has been received. The function will act differently
260 * depending on the ARP packet type: if it is a reply for a request
262 * the values from the ARP reply. If the incoming ARP packet is an ARP
263 * request for our IP address, an ARP reply packet is created and put
267 * indicates whether the device driver should send out a packet or
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/include/os/
H A Dos_mbuf.h41 * and the amount of "user" data in a non-packet header mbuf. The total pool
61 * A packet header structure that preceeds the mbuf packet headers.
65 * Overall length of the packet.
89 * Length of packet header
127 * Checks whether a given mbuf is a packet header mbuf
134 /** Get a packet header pointer given an mbuf pointer */
138 /** Given a mbuf packet header pointer, return a pointer to the mbuf */
144 * packet header.
201 * Works on both packet header, and regular mbufs, as it accounts
202 * for the additional space allocated to the packet header.
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/npl/dummy/src/
H A Dhci_dummy.c30 /* HCI packet types */
85 * Called by NimBLE host to allocate buffer for HCI Command packet.
86 * Called by HCI transport to allocate buffer for HCI Event packet.
117 * Called by NimBLE host to free buffer allocated for HCI Event packet.
118 * Called by HCI transport to free buffer allocated for HCI Command packet.
138 /* Called by NimBLE host to send HCI Command packet over HCI transport */
145 * TODO Send HCI Command packet somewhere. in ble_hci_trans_hs_cmd_tx()
146 * Buffer pointed by 'cmd' contains complete HCI Command packet as defined in ble_hci_trans_hs_cmd_tx()
155 /* Called by NimBLE host to send HCI ACL Data packet over HCI transport */
162 * TODO Send HCI ACL Data packet somewhere. in ble_hci_trans_hs_acl_tx()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/
H A Dethernet.c73 * @param p the received packet, p->payload pointing to the ethernet header
74 * @param netif the network interface on which the packet was received
92 /* a packet with only an ethernet header (or less) is not valid for us */
103 /* points to packet payload, which starts with an Ethernet header */
119 /* a packet with only an ethernet/vlan header (or less) is not valid for us */
133 /* silently ignore this packet: not for our VLAN */
147 /* this might be a multicast or broadcast packet */
172 /* IP packet? */
180 ("ethernet_input: IPv4 packet dropped, too short (%"U16_F"/%"U16_F")\n",
182 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("Can't move over header in packet"));
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/
H A Dethernet.c73 * @param p the received packet, p->payload pointing to the ethernet header
74 * @param netif the network interface on which the packet was received
90 /* a packet with only an ethernet header (or less) is not valid for us */
97 /* points to packet payload, which starts with an Ethernet header */
112 /* a packet with only an ethernet/vlan header (or less) is not valid for us */
126 /* silently ignore this packet: not for our VLAN */
141 /* this might be a multicast or broadcast packet */
166 /* IP packet? */
174 ("ethernet_input: IPv4 packet dropped, too short (%"S16_F"/%"S16_F")\n",
176 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("Can't move over header in packet"));
[all …]
/nrf52832-nimble/packages/NimBLE-latest/nimble/host/src/
H A Dble_l2cap.c164 * Transmits a packet over an L2CAP channel. This function only consumes the
196 /* Copy the data from the incoming fragment into the packet in progress. */ in ble_l2cap_append_rx()
205 * mbuf to the end of the packet. in ble_l2cap_append_rx()
219 /* First fragment in packet. */ in ble_l2cap_rx_payload()
222 /* Continuation of packet in progress. */ in ble_l2cap_rx_payload()
226 /* Determine if packet is fully reassembled. */ in ble_l2cap_rx_payload()
278 * @param out_rx_cb If a full L2CAP packet has been received, a
282 * @param out_rx_buf If a full L2CAP packet has been received, this
283 * will point to the entire L2CAP packet. To
284 * process the packet, pass this buffer to the
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Draw.c59 * Determine if in incoming IP packet is covered by a RAW PCB
68 * @return - 1 if the packet has been eaten by a RAW PCB receive
70 * packet any longer, and MAY NOT call pbuf_free().
71 * @return - 0 if packet is not eaten (pbuf is still referenced by the
90 /* loop through all raw pcbs until the packet is eaten by one */ in raw_input()
91 /* this allows multiple pcbs to match against the packet by design */ in raw_input()
103 /* the receive callback function did not eat the packet? */ in raw_input()
105 /* receive function ate the packet */ in raw_input()
119 /* drop the packet */ in raw_input()
174 * - eat the packet by calling pbuf_free() and returning non-zero. The
[all …]

12345678910>>...17