Same as ip4addr_ntoa, but reentrant since a user-supplied buffer is used.
Convert numeric IP address into decimal dotted ASCII representation. returns ptr to static buffer; not reentrant!
Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. Returns 1 if the address is valid, 0 if not. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.
Source based IPv4 routing must be fully implemented in LWIP_HOOK_IP4_ROUTE_SRC(). This function only provides the parameters.
Change IP address configuration for a network interface (including netmask and default gateway).
Sends an IP packet on a network interface. This function constructs the IP header and calculates the IP header checksum. If the source IP address is NULL, the IP address of the outgoing network interface is filled in as source address. If the destination IP address is LWIP_IP_HDRINCL, p is assumed to already include an IP header and p->payload points to it instead of the data.
Join a group on one network interface.
Leave a group on one network interface.
Add a network interface to the list of lwIP netifs.
Search for a group in the netif's igmp group list
Send an ARP request packet asking for ipaddr.
Add a new static entry to the ARP table. If an entry exists for the specified IP address, this entry is overwritten. If packets are queued for the specified IP address, they are sent out.
Send a raw ARP packet (opcode and all addresses can be modified)
Resolve and fill-in Ethernet address header for outgoing IP packet. For IP multicast and broadcast, corresponding Ethernet addresses are selected and the packet is transmitted on the link. For unicast addresses, the packet is submitted to etharp_query(). In case the IP address is outside the local network, the IP address of the gateway is used.
Finds the appropriate network interface for a given IP address. It searches the list of network interfaces linearly. A match is found if the masked IP address of the network interface equals the masked IP address given to the function.
Search the ARP table for a matching or new entry. If an IP address is given, return a pending or stable ARP entry that matches the address. If no match is found, create a new entry with this address set, but in state ETHARP_EMPTY. The caller must check and possibly change the state of the returned entry. If ipaddr is NULL, return a initialized new entry in state ETHARP_EMPTY. In all cases, attempt to create new entries from an empty entry. If no empty entries are available and ETHARP_FLAG_TRY_HARD flag is set, recycle old entries. Heuristic choose the least important entry for recycling.
Starts the DHCP server on the specified network interface
Same as ip_output_if() but with the possibility to include IP options: @ param ip_options pointer to the IP options, copied into the IP header @ param optlen length of ip_options
Same as ip_output_if_opt() but 'src' address is not replaced by netif address when it is 'any'.
Source based IPv4 routing hook function.
Send an ARP request for the given IP address and/or queue a packet. If the IP address was not yet in the cache, a pending ARP cache entry is added and an ARP request is sent for the given address. The packet is queued on this entry. If the IP address was already pending in the cache, a new ARP request is sent for the given address. The packet is queued on this entry. If the IP address was already stable in the cache, and a packet is given, it is directly sent and no ARP request is sent out. If the IP address was already stable in the cache, and no packet is given, an ARP request is sent out.
Join a group on one network interface.
Leave a group on one network interface.
Fragment an IP datagram if too large for the netif. Chop the datagram in MTU sized chunks and send them in order by pointing PBUF_REFs into p.
Send an ARP request packet asking for ipaddr to a specific eth address. Used to send unicast request to refresh the ARP table just before an entry times out
Search for a specific igmp group and create a new one if not found-
Gets DNS server associated with this DHCP server
Tries to find IP address corresponding to the supplied MAC
Same as ip_output_if() but 'src' address is not replaced by netif address when it is 'any'.
Called from ip_input() if a new IGMP packet is received.
Unregister a previously registered membership. This prevents dropping the membership on socket close. ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
Register a new IGMP membership. On socket close, the membership is dropped automatically. ATTENTION: this function is called from tcpip_thread (or under CORE_LOCK).
Dummy IPv4 output function for netifs not supporting IPv4
Update (or insert) a IP/MAC address pair in the ARP cache. If a pending entry is resolved, any queued packets will be sent at this point. @see pbuf_free()
Sends an IP packet on a network interface. This function constructs the IP header and calculates the IP header checksum. If the source IP address is NULL, the IP address of the outgoing network interface is filled in as source address.
FunctionName : dhcps_response_ip_set Description : set the ip address for sending to the DHCP client Parameters : m -- DHCP message info ip4_out -- ip address for sending Returns : none
Change the IP address of a network interface
Change the netmask of a network interface
Change the default gateway for a network interface
Simple interface to ip_output_if. It finds the outgoing network interface and calls upon ip_output_if to do the actual work.
Send an ARP request packet probing for an ipaddr. Used to send probe messages for address conflict detection.
Send an ARP request packet announcing an ipaddr. Used to send announce messages for address conflict detection.
Finds (stable) ethernet/IP address pair from ARP table using interface and IP address index.
Possibility to iterate over stable ARP table entries
Send a pbuf doing the necessary SLIP encapsulation Uses the serial layer's sio_send()