Commit Graph

  • f13baeb330 Added missing config.[ch] lines for FTP protocol Michael Brown 2007-06-28 18:49:57 +01:00
  • d465ae9785 Bugfix: iobuf->data always points to the start of the allocated portion, not to the bit we want to currently write to... Michael Brown 2007-06-28 18:38:50 +01:00
  • 5de837cc67 Mildly ugly hack to force correct linkage. Michael Brown 2007-06-28 18:06:25 +01:00
  • e4c9c91d6e Removed debugging statements that should not have been checked in. Michael Brown 2007-06-28 17:57:10 +01:00
  • 4b08f4cf0f Quick hack to get image booting working again Michael Brown 2007-06-28 17:55:29 +01:00
  • 7d6e4aab6f Use monojob and dhcp_configure_netdev(). Michael Brown 2007-06-28 15:22:20 +01:00
  • 1ec7bb789d Add dhcp_configure_netdev() Michael Brown 2007-06-28 15:18:26 +01:00
  • 6209d20779 Added monojob controller in lieu of a full working shell. Michael Brown 2007-06-28 14:53:12 +01:00
  • cf33b568dc Forgot to set initial session state. Now works! Michael Brown 2007-06-28 01:55:01 +01:00
  • 73fe1ba9dd Kill off job::start() (it was only ever added as part of an aborted attempt at triggering TCP-related protocols to start). Michael Brown 2007-06-28 01:09:45 +01:00
  • 07dc294de8 Update DHCP to use data-xfer interface (not yet tested). Michael Brown 2007-06-27 23:20:36 +01:00
  • f77815f2b1 Kill off hotplug.h and just make net devices normal reference-counted structures. Michael Brown 2007-06-27 14:48:31 +01:00
  • e381714c07 Partial migration of UDP to data-xfer interface. (Will not link at present; DHCP is broken). Michael Brown 2007-06-20 01:13:35 +01:00
  • 564ac70a42 Add iob_ensure_headroom() placeholder. Michael Brown 2007-06-20 01:12:21 +01:00
  • 4f309ff0c7 Treat URIs opened via xfer_open() and friends as relative to the current working URI. Michael Brown 2007-06-13 16:28:32 +01:00
  • 15dae1e042 Add concept of "current working URI". Michael Brown 2007-06-11 23:54:51 +01:00
  • 2d4c72b762 Remove unused headers. Michael Brown 2007-06-11 23:40:34 +01:00
  • e708137029 DNS code now records a whole struct sockaddr for the name server. Michael Brown 2007-06-11 23:36:50 +01:00
  • f87bc837f4 Updated DNS to use not-yet-implemented UDP data-xfer API. Michael Brown 2007-06-11 23:30:44 +01:00
  • a74ecf3057 Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-11 21:36:22 +01:00
  • 058b200529 Renamed _calloc() to zalloc(), ready to be used as a standalone function. Michael Brown 2007-06-11 21:36:10 +01:00
  • 01b4bde8a0 Updated TFTP and PXE UDP API code to use not-yet-implemented data-xfer UDP API. Michael Brown 2007-06-11 18:11:29 +01:00
  • 95adce0ce1 Add concept of transfer metadata, to be used by UDP in order to implement sendto()/recvfrom() equivalents. Michael Brown 2007-06-11 15:04:39 +01:00
  • 77e575235d Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-10 18:34:10 +01:00
  • 0316eaf85d Add missing call to free_iob(). Michael Brown 2007-06-10 18:33:42 +01:00
  • d4b1490f49 Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-10 00:31:31 +01:00
  • adf6c8e2a6 Add our own trivial version of stdarg.h. This makes our build entirely self-hosted (which avoids problems when building the same tree on multiple systems - e.g. when you have /home NFS-mounted). Michael Brown 2007-06-09 18:11:07 +01:00
  • 11ec23f454 Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-09 22:58:27 +01:00
  • f7b4b77c2e Ignore external directories (bochs, qemu) within contrib/bochs. Michael Brown 2007-06-09 22:58:04 +01:00
  • 0f8d7d705d Rename .cvsignore files to .gitignore Michael Brown 2007-06-09 22:57:00 +01:00
  • 6835755350 Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-09 22:26:50 +01:00
  • f97e642d17 Update email addresses in drivers Marty Connor 2007-06-09 15:23:17 -04:00
  • b256900d4f Scripts temporarily deregister themselves while executing. This allows us to avoid execution loops without having to hack around the image registration order. Michael Brown 2007-06-09 19:00:34 +01:00
  • 2c569fb240 Allow xfer_open() to take a struct uri as well as a URI string. Michael Brown 2007-06-09 18:20:08 +01:00
  • 1ae549b892 Add our own trivial version of stdarg.h. This makes our build entirely self-hosted (which avoids problems when building the same tree on multiple systems - e.g. when you have /home NFS-mounted). Michael Brown 2007-06-09 18:11:07 +01:00
  • 7c8cc3ef6c Use standard xfer_open() argument list for downloader instantiator Michael Brown 2007-06-09 17:42:46 +01:00
  • 08e286714f Add reference counting to register/unregister procedure. Michael Brown 2007-06-09 17:32:27 +01:00
  • 53bd022235 Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-08 16:41:54 +01:00
  • 6f0a6c09db Merge branch 'master' into mcb-tcp-xfer Michael Brown 2007-06-08 16:33:24 +01:00
  • 8c25ea0970 Updated email mdc's email address Marty Connor 2007-06-08 11:23:26 -04:00
  • ff84a66c35 Conflicts with native asn1.c Michael Brown 2007-06-08 12:37:35 +00:00
  • b7ccdb7948 Add a couple of tests for the URI parsing and resolving code. Michael Brown 2007-06-03 02:15:00 +00:00
  • 6a5cc3533f Added missing va_end() Michael Brown 2007-06-03 02:11:25 +00:00
  • a6f0a098da Add facility for resolving base+relative URIs (and paths). Michael Brown 2007-06-03 02:01:02 +00:00
  • 182e3ed61d Added dirname() Michael Brown 2007-06-03 01:51:10 +00:00
  • 816c8f3b89 Added [v]asprintf() Michael Brown 2007-06-03 01:50:03 +00:00
  • 335b99a39d Move [v]ssnprintf() from iscsi.c into vsprintf.c; we need them elsewhere as well. Michael Brown 2007-05-31 13:26:50 +00:00
  • 4ccd1e8198 Should call ftp_done() if constructor fails. Michael Brown 2007-05-29 15:37:30 +00:00
  • 735e07268e Update HTTP to use data-xfer interface. Michael Brown 2007-05-29 15:37:09 +00:00
  • 0dfd5b84fd Updated FTP to use data-xfer API. Michael Brown 2007-05-28 20:11:02 +00:00
  • a6a18ae9af Add xfer_[v]printf() functions. Michael Brown 2007-05-28 20:09:44 +00:00
  • 3acd51597a Add sanity check and extra debug message Michael Brown 2007-05-28 20:06:41 +00:00
  • 656485c1f1 Make URI structures reference-counted. Michael Brown 2007-05-28 17:35:15 +00:00
  • 63719deea9 Introduce name resolution interface and named socket opener. Michael Brown 2007-05-27 01:07:00 +00:00
  • bc694ec768 Move increment/decrement debug messages to DBG2 level Michael Brown 2007-05-27 01:04:52 +00:00
  • 1311b4194c Eliminate PF_INET; just use the AF_INET from the struct sockaddr instead. Michael Brown 2007-05-26 20:41:23 +00:00
  • a1210e4fca Eliminate PF_INET; just use the AF_INET from the struct sockaddr instead. Michael Brown 2007-05-26 20:41:23 +00:00
  • 070c55a838 Added EPIPE description. Michael Brown 2007-05-26 15:05:31 +00:00
  • b8618d76db Modify data-xfer semantics: it is no longer necessary to call one of request(), seek() or deliver_xxx() in order to start the data flow. Autonomous generators must be genuinely autonomous (having their own process), or otherwise arrange to be called. TCP does this by starting the retry timer immediately. Michael Brown 2007-05-26 15:04:36 +00:00
  • 10d0a1f8c7 Modify data-xfer semantics: it is no longer necessary to call one of request(), seek() or deliver_xxx() in order to start the data flow. Autonomous generators must be genuinely autonomous (having their own process), or otherwise arrange to be called. TCP does this by starting the retry timer immediately. Michael Brown 2007-05-26 15:04:36 +00:00
  • 3601103381 Modify process semantics; rescheduling is now automatic. Michael Brown 2007-05-26 15:00:56 +00:00
  • 6006bed530 Free I/O buffers when we are finished with them! Michael Brown 2007-05-25 16:01:31 +00:00
  • 1136c19fa4 Updated tcp.c to provide a standardised data transfer interface. Michael Brown 2007-05-25 15:58:42 +00:00
  • 54138f28f6 Use list_for_each_entry_safe() when flushing queue. Michael Brown 2007-05-19 22:05:16 +00:00
  • 5e25a89e74 Add local address to socket openers. Michael Brown 2007-05-19 20:14:18 +00:00
  • 776357214e Rename pkbpad.c to iobpad.c Michael Brown 2007-05-19 18:42:27 +00:00
  • 3e2c6b6736 pkbuff->iobuf changeover Michael Brown 2007-05-19 18:39:40 +00:00
  • 7c0a069f42 Add explicit "freeing" debug messages. Michael Brown 2007-05-18 15:42:02 +00:00
  • 7d2535779c Must request data before anything actually happens... Michael Brown 2007-05-18 15:36:11 +00:00
  • b63b14ff32 Add debugging Michael Brown 2007-05-18 15:26:44 +00:00
  • 68dd826b86 Add alloc_iob() and free_iob(). (Direct search-and-replace equivalents for alloc_pkb() and free_pkb(), which will be retired in due course). Michael Brown 2007-05-18 14:45:16 +00:00
  • 23008b9326 Updated to use POSIX-style file I/O layer. Michael Brown 2007-05-18 14:33:20 +00:00
  • 86a948ccbe Added POSIX-style blocking I/O calls, for use by PXE TFTP API. Michael Brown 2007-05-18 14:19:22 +00:00
  • 6b6fc1d5ea Allow construction of PXE status code from internal error number. Michael Brown 2007-05-18 14:17:35 +00:00
  • 59e738d756 Prefix all the open()-family routines with xfer_, to disambiguate them from the normal POSIX-style open() Michael Brown 2007-05-18 14:16:06 +00:00
  • b1755462ab Do not hold self-references. This then avoids the problem of having to ensure that we only drop our self-reference exactly once. Michael Brown 2007-05-15 16:53:46 +00:00
  • 5471bfbbbe Data-transfer interface should now be functionally complete. Michael Brown 2007-05-15 15:23:09 +00:00
  • 817a446cc6 Add always_inline attribute to force gcc to inline single-instruction functions. Michael Brown 2007-05-01 10:17:29 +00:00
  • 123a98db26 Added (non-functional) reference count to struct image Michael Brown 2007-05-01 00:11:34 +00:00
  • 53da1f1402 Initial sketch for a downloader object Michael Brown 2007-05-01 00:09:19 +00:00
  • e3dcb9a1ad Add start() event Michael Brown 2007-05-01 00:07:57 +00:00
  • a90a9adbd7 Clarify behaviour of plug() by using intf_put() and intf_get(). Michael Brown 2007-05-01 00:06:21 +00:00
  • 7ff81f6654 Document the fact that a zeroed-out refcounted object will behave in the most generally useful way. Michael Brown 2007-05-01 00:04:21 +00:00
  • 31f1bf4426 D'oh Michael Brown 2007-04-30 01:24:52 +00:00
  • 0898b0b3b1 Added plug_plug() Michael Brown 2007-04-30 01:23:01 +00:00
  • d40761d725 Add (and use) generic reference counter, to improve signal:noise ratio in code defining reference-counted objects. Michael Brown 2007-04-29 23:53:39 +00:00
  • 36bfb6edbb Skeleton job control interface Michael Brown 2007-04-29 02:08:39 +00:00
  • 280160139d Add seek() Michael Brown 2007-04-29 02:03:58 +00:00
  • ff1222a8d3 Preliminary support for opening data-transfer interfaces Michael Brown 2007-04-28 20:56:24 +00:00
  • 27b3bd10c9 Added PF_INET[6] and SOCK_{STREAM,DGRAM} definitions and debug functions. Michael Brown 2007-04-28 20:53:48 +00:00
  • 1c765b3988 Added deliver-as-iobuf/deliver-as-raw concepts. Michael Brown 2007-04-27 00:02:23 +00:00
  • 2575ddc889 Initial sketch for the generic data-transfer interface. Michael Brown 2007-04-26 22:44:52 +00:00
  • 95206577a7 Trivial ASN.1 decoding functions. Michael Brown 2007-04-21 18:53:26 +00:00
  • ed7dc02a95 hoffmeis: Preparations for syslog support (LOGSERVER in DHCP, linewise output buffering defintions and the like) Anselm Martin Hoffmeister 2007-04-09 18:01:43 +00:00
  • ff5aac826a hoffmeis: Fixing situation where absence of a newdata() handler for UDP connections might break things. Only-sending applications like syslog() do not need a newdata() handler, so added a check if that handler exists. Anselm Martin Hoffmeister 2007-04-09 17:34:10 +00:00
  • 0d9b3e2dd2 Add 32-bit support. Michael Brown 2007-03-22 16:18:46 +00:00
  • ff7d0af585 Provide a buffer in base memory for code to fill with generated DHCP data. Michael Brown 2007-03-22 16:18:07 +00:00
  • 160e66dbb9 Typo Michael Brown 2007-03-20 18:55:00 +00:00
  • 5578d3b2de Support 32-bit (linear) NBI images. We don't yet provide a bootp data block, so first32.c dies immediately. Michael Brown 2007-03-14 00:39:12 +00:00
  • 80cc27cbc4 Ported bnx2 driver from Etherboot 5.4. James Harper 2007-03-13 23:03:50 +00:00