]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add some code to prevent linking in stuff we don't need (yuck).
authorTed Lemon <source@isc.org>
Thu, 5 Nov 1998 18:51:16 +0000 (18:51 +0000)
committerTed Lemon <source@isc.org>
Thu, 5 Nov 1998 18:51:16 +0000 (18:51 +0000)
relay/dhcrelay.c

index 80f382b40812496b3ea68e353a6072287f9071b5..e1ab0a176c2ed0fa1f321bf1ced9143d39f0857f 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcrelay.c,v 1.14 1998/06/25 18:37:45 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.15 1998/11/05 18:51:16 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -231,7 +231,7 @@ int main (argc, argv, envp)
        return 0;
 }
 
-void relay (ip, packbuf, length, from_port, from, hfrom)
+void relay (ip, packet, length, from_port, from, hfrom)
        struct interface_info *ip;
        struct dhcp_packet *packet;
        int length;
@@ -251,7 +251,7 @@ void relay (ip, packbuf, length, from_port, from, hfrom)
 
        /* If it's a bootreply, forward it to the client. */
        if (packet -> op == BOOTREPLY) {
-#ifndef USE_FALLBACK
+#ifdef USE_FALLBACK
                if (!(packet -> flags & htons (BOOTP_BROADCAST))) {
                        to.sin_addr = packet -> yiaddr;
                        to.sin_port = remote_port;
@@ -369,3 +369,9 @@ void dhcp (packet)
        struct packet *packet;
 {
 }
+
+struct subnet *find_subnet (addr)
+       struct iaddr addr;
+{
+       return (struct subnet *)0;
+}