Lines Matching refs:inf

124 send_fragmented (struct grub_net_network_level_interface * inf,
134 fraglen = (inf->card->mtu - sizeof (struct iphdr)) & ~7;
166 iph->src = inf->address.addr.ipv4;
179 err = send_ethernet_packet (inf, nb2, ll_target_addr,
188 grub_net_send_ip4_packet (struct grub_net_network_level_interface *inf,
198 if (nb->tail - nb->data + sizeof (struct iphdr) > inf->card->mtu)
199 return send_fragmented (inf, target, nb, proto, *ll_target_addr);
211 iph->src = inf->address.addr.ipv4;
217 return send_ethernet_packet (inf, nb, *ll_target_addr,
231 struct grub_net_network_level_interface *inf = NULL;
241 FOR_NET_NETWORK_LEVEL_INTERFACES (inf)
242 if (inf->card == card
243 && inf->address.addr.type == GRUB_NET_NETWORK_LEVEL_PROTOCOL_DHCP_RECV
244 && grub_net_hwaddr_cmp (&inf->hwaddress, hwaddress) == 0)
270 grub_net_process_dhcp (nb, inf->card);
279 FOR_NET_NETWORK_LEVEL_INTERFACES (inf)
281 if (inf->card == card
282 && grub_net_addr_cmp (&inf->address.addr, dest) == 0
283 && grub_net_hwaddr_cmp (&inf->hwaddress, hwaddress) == 0)
286 if (inf->card == card
287 && inf->address.addr.type == GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV6
291 | (inf->address.addr.ipv6[1]
296 && hwaddress->mac[3] == ((grub_be_to_cpu64 (inf->address.addr.ipv6[1])
298 && hwaddress->mac[4] == ((grub_be_to_cpu64 (inf->address.addr.ipv6[1])
300 && hwaddress->mac[5] == ((grub_be_to_cpu64 (inf->address.addr.ipv6[1])
308 if (!inf && !(dest->type == GRUB_NET_NETWORK_LEVEL_PROTOCOL_IPV6
317 inf = NULL;
322 return grub_net_recv_udp_packet (nb, inf, source);
324 return grub_net_recv_tcp_packet (nb, inf, source);
326 return grub_net_recv_icmp_packet (nb, inf, source_hwaddress, source);
328 return grub_net_recv_icmp6_packet (nb, card, inf, source_hwaddress,
583 grub_net_send_ip6_packet (struct grub_net_network_level_interface *inf,
593 if (nb->tail - nb->data + sizeof (struct iphdr) > inf->card->mtu)
603 grub_memcpy (&iph->src, inf->address.addr.ipv6, sizeof (iph->src));
606 return send_ethernet_packet (inf, nb, *ll_target_addr,
611 grub_net_send_ip_packet (struct grub_net_network_level_interface *inf,
620 return grub_net_send_ip4_packet (inf, target, ll_target_addr, nb, proto);
622 return grub_net_send_ip6_packet (inf, target, ll_target_addr, nb, proto);