summaryrefslogtreecommitdiffstats
path: root/src/util
Commit message (Collapse)AuthorAgeFilesLines
* [util] Avoid calling fclose(NULL) in zbin.cEygene Ryabinkin2008-09-041-1/+2
| | | | | | | | Must check that argument to a fclose() is not NULL -- we can get to the 'err' label when file was not opened. fclose(NULL) is known to produce core dump on some platforms and we don't want zbin to fail so loudly. Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
* [util] Fix interpretation of short jumps in Option::ROMMichael Brown2008-08-271-1/+3
| | | | | | Option::ROM was assuming that ROM images using a short jump instruction for the init entry point would have a zero byte at offset 5; this is not necessarily true.
* [util] Allow Option::ROM to understand and modify initialisation entry pointMichael Brown2008-08-153-7/+66
| | | | | | | | | | | | | | Add support for manipulating the jump instruction that forms the option ROM initialisation entry point, so that mergerom.pl can treat it just like other entry points. Add support for merging the initialisation entry point (and IBM BOFM table) to mergerom.pl; this is another slightly icky but unfortunately necessary GPL vs. NDA workaround. When mergerom.pl replaces an entry point in the original ROM, it now fills in the corresponding entry point in the merged ROM with the original value; this allows (for example) a merged initialisation entry point to do some processing and then jump back to the original entry point.
* [util] Add mergerom.plMichael Brown2008-07-311-0/+80
| | | | | | | | | | | | | | This utility is required as a workaround for legal restrictions on including GPL and non-GPL code within the same expansion ROM image. While this is not encouraged, we are prepared to accept that concatenation of ROM images and updating of the ROM header data structures can be classed as "mere aggregation" within the terms of the GPL. If in any doubt, assume that you cannot include GPL and non-GPL code within the same expansion ROM image. Contact the Etherboot team for clarification on your specific circumstances.
* [util] Add Option::ROM library and rewrite disrom.pl to use it.Michael Brown2008-07-312-100/+520
| | | | | The Option::ROM module provides an easy way to read and edit fields within option ROM headers.
* [util] config-local.h to avoid accidental commitsStefan Hajnoczi2008-06-051-10/+27
| | | | | | | | | | | | | | | | | | | | During development it is often handy to change the config.h options from their defaults, for example to enable debugging features. To prevent accidental commits of debugging config.h changes, mdc suggested having a config-local.h that is excluded from source control. This file acts as a temporary config.h and can override any of the defaults. This commit is an attempt to implement the config-local.h feature. The config.h file now has the following as its last line: /* @TRYSOURCE config-local.h */ The @TRYSOURCE directive causes config-local.h to be included at that point in the file. If config-local.h does not exist, no error will be printed and parsing will continue as normal. Therefore, mkconfig.pl is "trying" to "source" config-local.h.
* [Makefile] Use bin/VVVVDDDD.rom instead of bin/pci_VVVV_DDDD.romMichael Brown2008-03-061-1/+1
| | | | | | | | The generate-by-PCI-device-ID rules (bin/pci_VVVV_DDDD.rom) are generally used for building actual ROM images to be burned, and the burning utilities generally run under some DOS variant. Change the filename from pci_VVVV_DDDD.rom to VVVVDDDD.rom so that it is compatible with the DOS 8.3-character filename limit.
* Add bin/pci_VVVV_DDDD target to allow building ROM images withoutMichael Brown2007-11-191-4/+5
| | | | needing to know the gPXE internal ROM name.
* Produce no output unless -v is specified or an error occurs.Michael Brown2007-07-171-2/+2
|
* Restore the "shared symbol found only in a single object should beMichael Brown2007-07-171-2/+9
| | | | treated as being provided by that object" code.
* Added symbols that the DBG() macros will use.Michael Brown2007-07-171-0/+12
|
* Use objdump -t for symcheck; it allows us to take the symbol sectionMichael Brown2007-07-171-36/+60
| | | | into account (and so remove the false positives due to .tbl.* symbols).
* Compressed ROM images now work.Michael Brown2007-07-162-0/+326
|
* Added nrv2b binary to ignore listMichael Brown2007-07-151-0/+1
|
* Rename .lilo extension to .lkrn and updated dependenciesMarty Connor2007-07-063-51/+11Star
|
* Rename .cvsignore files to .gitignoreMichael Brown2007-06-091-0/+0
|
* Obsolete for some time now.Michael Brown2006-12-201-751/+0Star
|
* Always update the PnP checksum, even if the ident string is not being set.Michael Brown2006-08-241-4/+6
|
* Quick utility to pad floppy disk images for vmware/qemuMichael Brown2006-08-231-0/+12
|
* - modified length of password string to match visible field lengthDan Lynch2006-06-281-3/+3
| | | | - value of n passed to wgetnstr should now be equivalent to output from strlen (i.e. length excluding NUL-terminating character)
* - first check-in for mucurses_test.cDan Lynch2006-06-272-2/+71
| | | | - added mucurses_test.c build targets
* Use byte 6 for the checksum, rather than byte 5. (Byte 5 may be part ofMichael Brown2006-06-061-10/+6Star
| | | | the jmp instruction).
* Added netmask and gateway global options.Michael Brown2006-04-051-8/+218
| | | | Added iSCSI testing.
* Make pcap_inject non-static, so that its prototype doesn't conflict withMichael Brown2006-04-051-1/+1
| | | | the real pcap_inject in the case where we do have it.
* Allow specifying the local IP address via --from.Michael Brown2006-03-241-1/+14
|
* Put in a substitute pcap_inject() function, since earlier versions ofMichael Brown2006-03-241-0/+32
| | | | | | libpcap are lacking the function. For now, we always use the substitute version, since there's no easy way to determine whether or not we need it.
* Moved "hello world" protocol implementation out of prototester.c and intoMichael Brown2006-03-231-103/+1Star
| | | | the first standalong uIP-based protocol module.
* Pick up the gPXE include files when building prototester.Michael Brown2006-03-231-1/+1
|
* Moved uIP wrapper out of prototester.c and into proto/tcp.c.Michael Brown2006-03-231-135/+4Star
|
* Add Makefile for hijack and prototester utilities.Michael Brown2006-03-232-0/+18
|
* Can now also print data sent by the remote side.Michael Brown2006-03-231-13/+34
|
* Now capable of sending "Hello world!" via TCP.Michael Brown2006-03-231-49/+212
|
* Added basic http-specific option parsingMichael Brown2006-03-221-5/+84
|
* Started adding structure to allow for separate protocol tests, withMichael Brown2006-03-221-97/+257
| | | | | | | individual options. Created the embryonic beginnings of a cleanly separated driver and protocol stack API.
* Skeleton version: contains device driver (connecting to network viaMichael Brown2006-03-221-0/+338
| | | | | | | | hijack daemon) and a functional but very ugly and very primitive wrapper around uIP. This passes proof-of-concept testing; it successfully initiates a TCP connection and responds to pings.
* Terminate cleanly on SIGINT or SIGHUPMichael Brown2006-03-211-11/+41
|
* Use libpcap API to send/receive packets.Michael Brown2006-03-211-17/+114
| | | | | | | Include automatic filtering (based on source MAC address of first transmitted packet). Proven to successfully elicit a ping response from a remote host.
* Basic structure in place: can daemonise, listen on a Unix domainMichael Brown2006-03-211-0/+469
| | | | | socket, accept new connections, open a network interface using libpcap and forward (all) traffic.
* Synced across updates from Etherboot 5.4 treeMichael Brown2005-05-191-13/+15
|
* Allow read-only symbols to be largeMichael Brown2005-05-031-2/+3
|
* Reduce large symbol warning threshold, now that most of the reallyMichael Brown2005-05-031-1/+1
| | | | large symbols have been fixed.
* Report on misuses of shared symbols, and excessively large static symbols.Michael Brown2005-05-021-9/+55
|
* Tweaked to read more information (including symbol size) from blib.aMichael Brown2005-05-021-13/+45
|
* Special handling for symbols of the form "xxx_end", to make table endMichael Brown2005-04-271-4/+8
| | | | markers appear before the symbols that immediately follow the table.
* Linker no longer provides start and end symbols for each table; theseMichael Brown2005-04-271-5/+1Star
| | | | markers are now static labels within the objects that refer to them.
* Use symbol size as a third index, mainly so that zero-length symbolsMichael Brown2005-04-271-7/+9
| | | | | (e.g. section start indicators) show up before the symbols they're indicating the start of.
* First versionMichael Brown2005-04-271-0/+34
|
* Fixed to properly catch multiply defined symbols.Michael Brown2005-04-231-1/+1
|
* First working versionMichael Brown2005-04-231-0/+73
|
* Avoid deleting .cvsignoreMichael Brown2005-04-171-2/+2
|