• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/lwip2/src/core/ipv4/

Lines Matching refs:ipaddr

99   ip4_addr_t ipaddr;
134 static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr* hw_dst_addr);
173 mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr);
187 ip4_addr_set_zero(&arp_table[i].ipaddr);
230 etharp_request(arp_table[i].netif, &arp_table[i].ipaddr);
244 * If ipaddr is NULL, return a initialized new entry in state ETHARP_EMPTY.
250 * @param ipaddr IP address to find in ARP cache, or to add if not found.
258 etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif* netif)
296 if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr)
394 if (ipaddr != NULL) {
396 ip4_addr_copy(arp_table[i].ipaddr, *ipaddr);
412 * @param ipaddr IP address of the inserted ARP entry.
424 etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags)
429 ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
433 if (ip4_addr_isany(ipaddr) ||
434 ip4_addr_isbroadcast(ipaddr, netif) ||
435 ip4_addr_ismulticast(ipaddr)) {
440 i = etharp_find_entry(ipaddr, flags, netif);
463 mib2_add_arp_entry(netif, &arp_table[i].ipaddr);
500 * @param ipaddr IP address for the new static entry
505 etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr)
509 ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr),
513 netif = ip4_route(ipaddr);
518 return etharp_update_arp_entry(netif, ipaddr, ethaddr, ETHARP_FLAG_TRY_HARD | ETHARP_FLAG_STATIC_ENTRY);
524 * @param ipaddr IP address of the static entry to remove
530 etharp_remove_static_entry(const ip4_addr_t *ipaddr)
534 ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr)));
537 i = etharp_find_entry(ipaddr, ETHARP_FLAG_FIND_ONLY, NULL);
577 * @param ipaddr points to the (network order) IP address index
583 etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr,
593 i = etharp_find_entry(ipaddr, ETHARP_FLAG_FIND_ONLY, netif);
596 *ip_ret = &arp_table[i].ipaddr;
606 * @param ipaddr return value: IP address
612 etharp_get_entry(u8_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret)
614 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
619 *ipaddr = &arp_table[i].ipaddr;
756 if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) {
761 if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) {
782 * @param ipaddr The IP address of the packet destination.
789 etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr)
793 const ip4_addr_t *dst_addr = ipaddr;
797 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL);
803 if (ip4_addr_isbroadcast(ipaddr, netif)) {
807 } else if (ip4_addr_ismulticast(ipaddr)) {
812 mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f;
813 mcastaddr.addr[4] = ip4_addr3(ipaddr);
814 mcastaddr.addr[5] = ip4_addr4(ipaddr);
822 if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) &&
823 !ip4_addr_islinklocal(ipaddr)) {
836 dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr);
862 (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) {
879 (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) {
886 queue on destination Ethernet address belonging to ipaddr */
912 * @param netif The lwIP network interface on which ipaddr
914 * @param ipaddr The IP address to be resolved.
930 etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
938 if (ip4_addr_isbroadcast(ipaddr, netif) ||
939 ip4_addr_ismulticast(ipaddr) ||
940 ip4_addr_isany(ipaddr)) {
946 i = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif);
974 result = etharp_request(netif, ipaddr);
1170 * Send an ARP request packet asking for ipaddr to a specific eth address.
1175 * @param ipaddr the IP address for which to ask
1182 etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr* hw_dst_addr)
1186 ipaddr, ARP_REQUEST);
1190 * Send an ARP request packet asking for ipaddr.
1193 * @param ipaddr the IP address for which to ask
1199 etharp_request(struct netif *netif, const ip4_addr_t *ipaddr)
1202 return etharp_request_dst(netif, ipaddr, &ethbroadcast);