diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-27 19:37:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-27 19:37:36 +0000 |
commit | 48f909739abf1e5fbcb4b167437dae833ff44c54 (patch) | |
tree | 196e47d8ccee6683200166e6f8c3972d766f0c4a | |
parent | b3caf7619980bb3a9d3539cc086d1375a4cbc785 (diff) |
network byte order; reed
-rw-r--r-- | sbin/ipf/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipf/parse.c b/sbin/ipf/parse.c index da8817a4923..6a1bd342658 100644 --- a/sbin/ipf/parse.c +++ b/sbin/ipf/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.18 1998/01/26 04:13:38 dgregor Exp $ */ +/* $OpenBSD: parse.c,v 1.19 1998/02/27 19:37:35 deraadt Exp $ */ /* * Copyright (C) 1993-1997 by Darren Reed. * @@ -36,7 +36,7 @@ #if !defined(lint) static const char sccsid[] ="@(#)parse.c 1.44 6/5/96 (C) 1993-1996 Darren Reed"; -static const char rcsid[] = "@(#)$Id: parse.c,v 1.18 1998/01/26 04:13:38 dgregor Exp $"; +static const char rcsid[] = "@(#)$Id: parse.c,v 1.19 1998/02/27 19:37:35 deraadt Exp $"; #endif extern struct ipopt_names ionames[], secclass[]; @@ -622,7 +622,7 @@ int *resolved; fprintf(stderr, "can't resolve hostname: %s\n", host); return 0; } - return np->n_net; + return htonl(np->n_net); } return *(u_32_t *)hp->h_addr; } |