Commit Graph
41 Commits
Author SHA1 Message Date
Manoel R. Abranches 48ac061ab6 Prevent "incompatible license" error. 2011-05-12 15:40:54 -03:00
Manoel R. Abranches d8123bfb54 Correct some compile erros. 2011-05-12 13:20:43 -03:00
Manoel Rebelo Abranches 8db3b0eca9 Remove unused file 2011-05-10 14:08:18 -03:00
Manoel Rebelo Abranches 31b5172bbd Implement close in TFTP 2011-05-10 14:07:54 -03:00
Manoel Rebelo Abranches 0696f08f92 Prevente error in broken cards by limiting data size. 2011-05-10 14:07:20 -03:00
Manoel Rebelo Abranches 36e2782dba Only setup network in the card we booted from. 2011-05-10 09:55:20 -03:00
Manoel Rebelo Abranches 70c52f3e24 Remove cards with no associated driver. 2011-05-10 09:54:32 -03:00
Manoel Rebelo Abranches 0f231af8ae Implement timeout when receiving packets. 2011-05-10 09:50:18 -03:00
Manoel Rebelo Abranches a5184d629a Prevente a bootp packet to be sent on open. 2011-05-10 09:45:57 -03:00
Manoel Rebelo Abranches 4d6374ba78 Implement file close in network tranference.
Stop receiving packets from card on error.
2011-05-10 09:32:38 -03:00
Manoel Rebelo Abranches 1893017d44 Mark file as not easily seekable on net open. 2011-05-10 09:30:26 -03:00
Manoel Rebelo Abranches 4f7386025b Correct expected argument numbers in del addr command. 2011-05-10 09:28:45 -03:00
Manoel Rebelo Abranches c5934345be Free memory when removing packet. 2011-05-06 14:03:51 -03:00
Manoel Rebelo Abranches 90eb90e24c Merge mainline. 2011-05-05 12:12:22 -03:00
Manoel Rebelo Abranches 25f1579b43 Adapt protocols to new network struct. 2011-04-01 05:42:34 -03:00
Manoel Rebelo Abranches 09375846b9 Add mtu to ieee1275 driver data. 2011-04-01 05:41:37 -03:00
Manoel Rebelo Abranches 457d1104f6 Add ofnet.h to Makefile.am 2011-04-01 05:40:44 -03:00
Manoel Rebelo Abranches 59b361a2df Use bootp packet to set prefix and card address. 2011-04-01 05:39:06 -03:00
Manoel Rebelo Abranches 6d5c2ed68a Use nb in all function declarations for consistency. 2011-04-01 05:27:06 -03:00
Manoel Rebelo Abranches 6ccb7a35e6 Remove unused file. 2011-04-01 05:26:27 -03:00
Manoel Rebelo Abranches fbdee79b17 Add generic functions to read and seek in network file. Allocate socket with network and adress information. 2011-04-01 05:22:41 -03:00
Manoel Rebelo Abranches d5e0a358f1 Correctly match network. 2011-04-01 05:14:16 -03:00
Manoel Rebelo Abranches 6dc14451f4 Iterate sockets to see if we expect this packet. Let the App layer to remove its own header. Add packet to socket list if it contains data. Undesired packets are freed. 2011-04-01 05:12:44 -03:00
Manoel Rebelo Abranches 50ee5d686d Merge mainline. 2011-04-01 04:45:37 -03:00
Manoel Rebelo Abranches 9c4cf53bfe 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
* include/grub/elfload.h (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * kern/elf.c (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * grub-core/loader/powerpc/ieee1275/linux.c:
        (grub_linux_claimmap_iterate): New function. Uses the "available"property
        in the "memory" node for memory allocation for kernel in the PowerPC loader.
        (grub_linux_load32): Correctly find linux entry point offset.
        (grub_linux_load64): Likewise.
2010-11-08 11:14:54 -02:00
Manoel R. Abranches 87fdc7e8d2 Create Open firmware pseudo driver.
Change ofnet.c to disknet.c and remove almost all ieee1275 specific code.
Create grub_net_malloc to handle iee1275 memory issues in a temporary solution.
2010-09-15 13:23:23 -03:00
Manoel R. Abranches 9a9cee4e43 Use the correct address types in net.c.
implement ntoa ipv4 function.
2010-09-15 13:00:51 -03:00
Manoel R. Abranches 7c978f0690 Implement the size field. 2010-07-29 18:17:01 -03:00
Manoel R. Abranches 17ef14c916 Process errot packets in TFTP reply. 2010-07-29 18:13:00 -03:00
Manoel R. Abranches f89661762a Only open the card in netboot. 2010-07-29 18:07:09 -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 1edb7287ff Parse ipv6 header on incoming packets. 2010-06-23 14:49:46 -03:00
Manoel R. Abranches bf6d9eeb53 Abort transference when getting file size. 2010-06-23 14:47:55 -03:00
Manoel R. Abranches 8c599704a7 Network code specific for ieee1275 machines.
Used to parse BOOTP packet from the server and use write/read on the network card.
May be removed later.
2010-06-21 19:20:55 -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 c3639ae731 File manipulation. Based in OF implementation.
For debug porpouse and will be changed later.
2010-06-21 19:13:26 -03:00
Manoel R. Abranches d17a9fea4a Add interface struct for communication between protocols and protocols stack.
Changed the protocols structs to use one struct for each layer.
2010-06-21 19:05:14 -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
Manoel Rebelo Abranches d1484a422e 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
* term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
	backspace keys.
2010-02-20 11:23:13 +01:00