Commit graph

6 commits

Author SHA1 Message Date
Paulo de Rezende Pinatti
10830203a0 Added ARP protocol to network stack and fixed bug in grub_netbuff_alloc function.
* include/grub/net/arp.h: added arp header, arp cache entry and related constants and functions
* net/arp.c: added functions arp_init_table, arp_find_entry, arp_resolve and arp_receive
* net/ethernet.c (send_ethernet_packet): replaced hardcoded hardware address by parameter target_addr
* net/ethernet.c (recv_ethernet_packet): added call to arp_receive when packet is of type 0x803 (ARP) and only return when packet is of type determined by parameter ethertype
* net/ip.c (send_ip_packet): added call to arp_resolve to determine hardware address of destination
* net/netbuff.c (grub_netbuff_alloc): fixed swapped parameters in call to grub_memalign
2010-08-13 14:42:16 -03:00
Manoel R. Abranches
11d1ea5df6 Use server and client IP from the bootp packet. 2010-07-29 17:52:54 -03:00
Manoel R. Abranches
3ec6213b17 Clean Debug messages 2010-06-29 06:50:15 -03:00
Manoel R. Abranches
60cdb895da Adaptation for the new protocols and interface structs.
implementation of receive in the protocols.
Also all unwanted packets are discarded.
2010-06-21 19:15:45 -03:00
Manoel R. Abranches
8d402bc9a8 small change in the interface structure. 2010-04-29 17:56:09 -03:00
Manoel R. Abranches
066528b4b1 Initial Implementation of TFTP protocol and new protocol structs. 2010-04-27 18:05:35 -03:00