[syslinux:lwip] core: pxe: Add a netconn socket to the pxe private inode

syslinux-bot for Eric W. Biederman ebiederm at xmission.com
Fri Apr 22 20:05:56 PDT 2011


Commit-ID:  e0428a557da2ec94363dd5f8be842df198c656c3
Gitweb:     http://syslinux.zytor.com/commit/e0428a557da2ec94363dd5f8be842df198c656c3
Author:     Eric W. Biederman <ebiederm at xmission.com>
AuthorDate: Sun, 10 Apr 2011 05:31:38 -0700
Committer:  Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:41:00 -0700

core: pxe: Add a netconn socket to the pxe private inode

Now that we are using lwip, all implementations of transfer
protocols will need a netconn, so add it to the pxe inode.

Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>


---
 core/fs/pxe/pxe.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/core/fs/pxe/pxe.h b/core/fs/pxe/pxe.h
index 45e5008..274f1c9 100644
--- a/core/fs/pxe/pxe.h
+++ b/core/fs/pxe/pxe.h
@@ -149,10 +149,12 @@ struct bootp_t {
     uint8_t  options[1260]; /* Vendor options */
 } __attribute__ ((packed));
 
+struct netconn;
 /*
  * Our inode private information -- this includes the packet buffer!
  */
 struct pxe_pvt_inode {
+    struct netconn *conn;      /* lwip network connection */
     uint16_t tftp_localport;   /* Local port number  (0=not in us)*/
     uint16_t tftp_remoteport;  /* Remote port number */
     uint32_t tftp_remoteip;    /* Remote IP address */



More information about the Syslinux-commits mailing list