Commit d7ff0574 authored by Leigh Stoller's avatar Leigh Stoller

Change hardwired "boss.emulab.net" to define passed in from makefile.

parent bf862935
......@@ -20,7 +20,7 @@ DESTDIR=
CFLAGS= -g -O2 -DLOG_DROPS
capture: capture.c capdecls.h
cc $(CFLAGS) -DUSESOCKETS -o capture $<
cc $(CFLAGS) -DUSESOCKETS -DBOSSNODE='"$(BOSSNODE)"' -o capture $<
capture-tty: capture.c capdecls.h
cc $(CFLAGS) -o capture-tty $<
......
......@@ -9,7 +9,6 @@
* (c) Copyright 1992, 2000, University of Utah, all rights reserved.
*/
#define BOSSNODE "boss.emulab.net"
#define SERVERPORT 855
#define DEVPATH "/dev"
#define TIPPATH "/dev/tip"
......
......@@ -96,10 +96,10 @@ char *Ttyname;
char *Ptyname;
char *Devname;
char *Machine;
char *Bossnode = BOSSNODE;
int logfd, runfd, devfd, ptyfd;
int hwflow = 0, speed = B9600, debug = 0, runfile = 0;
#ifdef USESOCKETS
char *Bossnode = BOSSNODE;
int sockfd, tipactive, portnum;
struct sockaddr_in tipclient;
secretkey_t secretkey;
......@@ -125,10 +125,11 @@ main(argc, argv)
while ((op = getopt(argc, argv, "rds:Hb:it")) != EOF)
switch (op) {
#ifdef USESOCKETS
case 'b':
Bossnode = optarg;
break;
#endif
case 'H':
++hwflow;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment