iplang_y.y (37074) | iplang_y.y (53024) |
---|---|
1%{ 2/* | 1%{ 2/* |
3 * Copyright (C) 1997 by Darren Reed. | 3 * Copyright (C) 1997-1998 by Darren Reed. |
4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and due credit is given 7 * to the original author and the contributors. 8 * | 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and due credit is given 7 * to the original author and the contributors. 8 * |
9 * $Id: iplang_y.y,v 2.0.2.18.2.7 1998/05/23 14:29:53 darrenr Exp $ | 9 * $Id: iplang_y.y,v 2.1 1999/08/04 17:30:53 darrenr Exp $ |
10 */ | 10 */ |
11 | 11 |
12#include <stdio.h> 13#include <string.h> 14#include <fcntl.h> 15#if !defined(__SVR4) && !defined(__svr4__) 16#include <strings.h> 17#else 18#include <sys/byteorder.h> 19#endif --- 1406 unchanged lines hidden (view full) --- 1426char **arg; 1427{ 1428 carp->arp_addr = getipv4addr(*arg); 1429 free(*arg); 1430 *arg = NULL; 1431} 1432 1433 | 12#include <stdio.h> 13#include <string.h> 14#include <fcntl.h> 15#if !defined(__SVR4) && !defined(__svr4__) 16#include <strings.h> 17#else 18#include <sys/byteorder.h> 19#endif --- 1406 unchanged lines hidden (view full) --- 1426char **arg; 1427{ 1428 carp->arp_addr = getipv4addr(*arg); 1429 free(*arg); 1430 *arg = NULL; 1431} 1432 1433 |
1434int arp_getipv4(ip, addr) 1435char *ip; 1436char *addr; 1437{ 1438 arp_t *a; 1439 1440 for (a = arplist; a; a = a->arp_next) 1441 if (!bcmp(ip, (char *)&a->arp_addr, 4)) { 1442 bcopy((char *)&a->arp_eaddr, addr, 6); 1443 return 0; 1444 } 1445 return -1; 1446} 1447 1448 |
|
1434void reset_send() 1435{ 1436 sending.snd_if = iflist; 1437 sending.snd_gw = defrouter; 1438} 1439 1440 1441void set_sendif(arg) --- 409 unchanged lines hidden --- | 1449void reset_send() 1450{ 1451 sending.snd_if = iflist; 1452 sending.snd_gw = defrouter; 1453} 1454 1455 1456void set_sendif(arg) --- 409 unchanged lines hidden --- |