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/slam.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/slam.c')
| -rw-r--r-- | src/proto/slam.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proto/slam.c b/src/proto/slam.c index 4ea296b8e..09d53172c 100644 --- a/src/proto/slam.c +++ b/src/proto/slam.c @@ -516,8 +516,6 @@ static int url_slam ( char *url __unused, struct slam_info info; /* Set the defaults */ info.server = *server; - if ( ! info.server.sin_port ) - info.server.sin_port = SLAM_PORT; info.multicast.sin_addr.s_addr = htonl(SLAM_MULTICAST_IP); info.multicast.sin_port = SLAM_MULTICAST_PORT; info.local.sin_addr.s_addr = arptable[ARP_CLIENT].ipaddr.s_addr; @@ -532,5 +530,7 @@ static int url_slam ( char *url __unused, } static struct protocol slam_protocol __protocol = { - "x-slam", url_slam + .name = "x-slam", + .default_port = SLAM_PORT, + .load = url_slam, }; |
