gen.hosts.c
881 Bytes
/*
* Copyright (C) 1996-1998 by the Board of Trustees
* of Leland Stanford Junior University.
*
* This file is part of the SimOS distribution.
* See LICENSE file for terms of the license.
*
*/
#include <stdio.h>
static char* people[] = { "roy", "", "ben", "", "emmett", "steve","dan",
"scott", "john", "robert", "", "radhika",
"ed", "mendel", "", "timmy" };
#define PERIOD 8
#define MAX 128
main(int argc, char *argv[])
{
int count = 0;
while( count < MAX ) {
if( *people[count/PERIOD] )
printf("36.132.0.%d %s-%d\n",
count, people[count/PERIOD], count%PERIOD );
printf("36.132.0.%d simos-%d\n", count, count );
count++;
}
printf("36.22.0.195\tmorse\n");
printf("36.8.0.58\tsim\n");
printf("36.222.0.13\ttinderbox\n");
printf("36.222.0.12\tpowderkeg\n");
}