mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
#include <arpa/inet.h> for inet_* definitions.
This commit is contained in:
parent
9ec49abd00
commit
ca979f0fa6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36917
@ -9,7 +9,7 @@ use and modify. Please send modifications and/or suggestions + bug fixes to
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: main.c,v 1.7 1997/09/04 11:49:28 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <ctype.h>
|
||||
@ -26,11 +26,13 @@ static const char rcsid[] =
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include "bootparam_prot.h"
|
||||
|
||||
int debug = 0;
|
||||
int dolog = 0;
|
||||
unsigned long route_addr = -1, inet_addr();
|
||||
unsigned long route_addr = -1;
|
||||
struct sockaddr_in my_addr;
|
||||
char *bootpfile = "/etc/bootparams";
|
||||
|
||||
|
@ -9,13 +9,15 @@ use and modify. Please send modifications and/or suggestions + bug fixes to
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: callbootd.c,v 1.6 1997/09/04 11:50:37 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "bootparam_prot.h"
|
||||
#include <rpc/rpc.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <err.h>
|
||||
#include <netdb.h>
|
||||
|
||||
@ -186,7 +188,7 @@ bp_getfile_res *res;
|
||||
if (res) {
|
||||
printf("server_name:\t%s\nserver_address:\t%s\npath:\t%s\n",
|
||||
res->server_name,
|
||||
inet_ntoa(res->server_address.bp_address_u.ip_addr),
|
||||
inet_ntoa(*(struct in_addr *)&res->server_address.bp_address_u.ip_addr),
|
||||
res->server_path);
|
||||
return(0);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user