summaryrefslogtreecommitdiff
path: root/common/raw.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1997-02-18 14:32:51 +0000
committerTed Lemon <source@isc.org>1997-02-18 14:32:51 +0000
commita60076f94d2add3af9000aa3be378c1a680b6092 (patch)
treee3d3c4a246c34a9f041342c8c3cad2d0498d47cf /common/raw.c
parentf71f026a5bf50255f64fc0db6ce72e06db29019f (diff)
downloadisc-dhcp-a60076f94d2add3af9000aa3be378c1a680b6092.tar.gz
Use local_port and remote_port instead of server_port and server_port + 1
Diffstat (limited to 'common/raw.c')
-rw-r--r--common/raw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/raw.c b/common/raw.c
index b49d4d94..148408e0 100644
--- a/common/raw.c
+++ b/common/raw.c
@@ -54,7 +54,7 @@
#ifndef lint
static char copyright[] =
-"$Id: raw.c,v 1.8 1996/09/04 07:06:39 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: raw.c,v 1.9 1997/02/18 14:32:51 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -74,13 +74,13 @@ void if_register_send (info, interface)
/* Set up the address we're going to connect to. */
name.sin_family = AF_INET;
- name.sin_port = server_port;
+ name.sin_port = local_port;
name.sin_addr.s_addr = htonl (INADDR_BROADCAST);
memset (name.sin_zero, 0, sizeof (name.sin_zero));
/* List addresses on which we're listening. */
note ("Sending on %s, port %d",
- piaddr (info -> address), htons (server_port));
+ piaddr (info -> address), htons (local_port));
if ((sock = socket (AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0)
error ("Can't create dhcp socket: %m");