Definition of a (hopefully) generic stream API
[people/xl0/gpxe.git] / src / proto / slam.c
index 50745ae..171b6d2 100644 (file)
@@ -314,7 +314,7 @@ static unsigned char *reinit_slam_state(
                return 0;
        }
        bitmap_len   = (state.total_packets + 1 + 7)/8;
-       state.image  = phys_to_virt ( state.buffer->start );
+       state.image  = phys_to_virt ( state.buffer->addr );
        /* We don't use the buffer routines properly yet; fake it */
        state.buffer->fill = total_bytes;
        state.bitmap = state.image + total_bytes;
@@ -534,7 +534,7 @@ static int url_slam ( char *url __unused, struct sockaddr_in *server,
        return proto_slam(&info);
 }
 
-static struct protocol slam_protocol __protocol = {
+struct protocol slam_protocol __protocol = {
        .name = "x-slam",
        .default_port = SLAM_PORT,
        .load = url_slam,