callbootd.c (29102) | callbootd.c (36917) |
---|---|
1/* 2 3This code is not copyright, and is placed in the public domain. Feel free to 4use and modify. Please send modifications and/or suggestions + bug fixes to 5 6 Klas Heggemann <klas@nada.kth.se> 7 8*/ 9 10#ifndef lint 11static const char rcsid[] = | 1/* 2 3This code is not copyright, and is placed in the public domain. Feel free to 4use and modify. Please send modifications and/or suggestions + bug fixes to 5 6 Klas Heggemann <klas@nada.kth.se> 7 8*/ 9 10#ifndef lint 11static const char rcsid[] = |
12 "$Id$"; | 12 "$Id: callbootd.c,v 1.6 1997/09/04 11:50:37 charnier Exp $"; |
13#endif /* not lint */ 14 15#include "bootparam_prot.h" 16#include <rpc/rpc.h> 17#include <sys/types.h> 18#include <sys/socket.h> | 13#endif /* not lint */ 14 15#include "bootparam_prot.h" 16#include <rpc/rpc.h> 17#include <sys/types.h> 18#include <sys/socket.h> |
19#include <netinet/in.h> 20#include <arpa/inet.h> |
|
19#include <err.h> 20#include <netdb.h> 21 22 23/* #define bp_address_u bp_address */ 24#include <stdio.h> 25#include <string.h> 26 --- 154 unchanged lines hidden (view full) --- 181 182int 183printgetfile(res) 184bp_getfile_res *res; 185{ 186 if (res) { 187 printf("server_name:\t%s\nserver_address:\t%s\npath:\t%s\n", 188 res->server_name, | 21#include <err.h> 22#include <netdb.h> 23 24 25/* #define bp_address_u bp_address */ 26#include <stdio.h> 27#include <string.h> 28 --- 154 unchanged lines hidden (view full) --- 183 184int 185printgetfile(res) 186bp_getfile_res *res; 187{ 188 if (res) { 189 printf("server_name:\t%s\nserver_address:\t%s\npath:\t%s\n", 190 res->server_name, |
189 inet_ntoa(res->server_address.bp_address_u.ip_addr), | 191 inet_ntoa(*(struct in_addr *)&res->server_address.bp_address_u.ip_addr), |
190 res->server_path); 191 return(0); 192 } else { 193 warnx("null answer!!!"); 194 return(1); 195 } 196 } | 192 res->server_path); 193 return(0); 194 } else { 195 warnx("null answer!!!"); 196 return(1); 197 } 198 } |