diff options
| author | Michael Brown | 2005-05-02 01:57:09 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-05-02 01:57:09 +0200 |
| commit | f14af3d95c618fe3b57e38fa005a9d85d9ccaa81 (patch) | |
| tree | f0cc27c56756dfd008f01e31396af238b9911c6e /src/proto/tftm.c | |
| parent | Made parse_url do more of the processing, to avoid duplicating parts of (diff) | |
| download | ipxe-f14af3d95c618fe3b57e38fa005a9d85d9ccaa81.tar.gz ipxe-f14af3d95c618fe3b57e38fa005a9d85d9ccaa81.tar.xz ipxe-f14af3d95c618fe3b57e38fa005a9d85d9ccaa81.zip | |
Protocol structure can now specify the default port.
Diffstat (limited to 'src/proto/tftm.c')
| -rw-r--r-- | src/proto/tftm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proto/tftm.c b/src/proto/tftm.c index 396be4229..b96736a16 100644 --- a/src/proto/tftm.c +++ b/src/proto/tftm.c @@ -391,8 +391,6 @@ static int url_tftm ( char *url __unused, /* Set the defaults */ info.server = *server; - if ( ! info.server.sin_port ) - info.server.sin_port = TFTM_PORT; info.local.sin_addr.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr; info.local.sin_port = TFTM_PORT; /* Does not matter. */ info.multicast = info.local; @@ -482,5 +480,7 @@ static int opt_get_multicast(struct tftp_t *tr, unsigned short *len, } static struct protocol tftm_protocol __protocol = { - "x-tftm", url_tftm + .name = "x-tftm", + .default_port = TFTM_PORT, + .load = url_tftm, }; |
