tcpip.c (8768) | tcpip.c (8770) |
---|---|
1/* | 1/* |
2 * $Id: tcpip.c,v 1.16 1995/05/26 08:58:35 jkh Exp $ | 2 * $Id: tcpip.c,v 1.17 1995/05/26 19:28:06 jkh Exp $ |
3 * 4 * Copyright (c) 1995 5 * Gary J Palmer. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 200 unchanged lines hidden (view full) --- 211 draw_box(ds_win, TCP_DIALOG_Y + 9, TCP_DIALOG_X + 8, TCP_DIALOG_HEIGHT - 13, TCP_DIALOG_WIDTH - 17, 212 dialog_attr, border_attr); 213 wattrset(ds_win, dialog_attr); 214 mvwaddstr(ds_win, TCP_DIALOG_Y + 9, TCP_DIALOG_X + 16, " Per Interface Configuration "); 215 216 /* Initialise vars from previous device values */ 217 if (devp->private) { 218 DevInfo *di = (DevInfo *)devp->private; | 3 * 4 * Copyright (c) 1995 5 * Gary J Palmer. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: 10 * 1. Redistributions of source code must retain the above copyright --- 200 unchanged lines hidden (view full) --- 211 draw_box(ds_win, TCP_DIALOG_Y + 9, TCP_DIALOG_X + 8, TCP_DIALOG_HEIGHT - 13, TCP_DIALOG_WIDTH - 17, 212 dialog_attr, border_attr); 213 wattrset(ds_win, dialog_attr); 214 mvwaddstr(ds_win, TCP_DIALOG_Y + 9, TCP_DIALOG_X + 16, " Per Interface Configuration "); 215 216 /* Initialise vars from previous device values */ 217 if (devp->private) { 218 DevInfo *di = (DevInfo *)devp->private; |
219 | |
220 221 strcpy(ipaddr, di->ipaddr); 222 strcpy(netmask, di->netmask); 223 strcpy(extras, di->extras); 224 } 225 else 226 ipaddr[0] = netmask[0] = extras[0] = '\0'; 227 --- 151 unchanged lines hidden (view full) --- 379 display_helpfile(); 380 381 /* They tried some key combination we don't support - tell them! */ 382 default: 383 beep(); 384 } 385 386 /* BODGE ALERT! */ | 219 220 strcpy(ipaddr, di->ipaddr); 221 strcpy(netmask, di->netmask); 222 strcpy(extras, di->extras); 223 } 224 else 225 ipaddr[0] = netmask[0] = extras[0] = '\0'; 226 --- 151 unchanged lines hidden (view full) --- 378 display_helpfile(); 379 380 /* They tried some key combination we don't support - tell them! */ 381 default: 382 beep(); 383 } 384 385 /* BODGE ALERT! */ |
387 if ((tmp = index(hostname, '.')) != NULL) { | 386 if (((tmp = index(hostname, '.')) != NULL) && (strlen(domainname)==0)) { |
388 strncpy(domainname, tmp + 1, strlen(tmp + 1)); 389 domainname[strlen(tmp+1)] = '\0'; 390 RefreshStringObj(layout[1].obj); 391 } 392 } 393 394 /* Clear this crap off the screen */ 395 dialog_clear(); --- 123 unchanged lines hidden --- | 387 strncpy(domainname, tmp + 1, strlen(tmp + 1)); 388 domainname[strlen(tmp+1)] = '\0'; 389 RefreshStringObj(layout[1].obj); 390 } 391 } 392 393 /* Clear this crap off the screen */ 394 dialog_clear(); --- 123 unchanged lines hidden --- |