Deleted Added
full compact
dhclient.c (226345) dhclient.c (228259)
1/* $OpenBSD: dhclient.c,v 1.63 2005/02/06 17:10:13 krw Exp $ */
2
3/*
4 * Copyright 2004 Henning Brauer <henning@openbsd.org>
5 * Copyright (c) 1995, 1996, 1997, 1998, 1999
6 * The Internet Software Consortium. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 40 unchanged lines hidden (view full) ---

49 * was moved into a shell script so that as support for more operating
50 * systems is added, it will not be necessary to port and maintain
51 * system-specific configuration code to these operating systems - instead,
52 * the shell script can invoke the native tools to accomplish the same
53 * purpose.
54 */
55
56#include <sys/cdefs.h>
1/* $OpenBSD: dhclient.c,v 1.63 2005/02/06 17:10:13 krw Exp $ */
2
3/*
4 * Copyright 2004 Henning Brauer <henning@openbsd.org>
5 * Copyright (c) 1995, 1996, 1997, 1998, 1999
6 * The Internet Software Consortium. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 40 unchanged lines hidden (view full) ---

49 * was moved into a shell script so that as support for more operating
50 * systems is added, it will not be necessary to port and maintain
51 * system-specific configuration code to these operating systems - instead,
52 * the shell script can invoke the native tools to accomplish the same
53 * purpose.
54 */
55
56#include <sys/cdefs.h>
57__FBSDID("$FreeBSD: head/sbin/dhclient/dhclient.c 226345 2011-10-13 17:20:45Z des $");
57__FBSDID("$FreeBSD: head/sbin/dhclient/dhclient.c 228259 2011-12-04 14:44:31Z dumbbell $");
58
59#include "dhcpd.h"
60#include "privsep.h"
61
62#include <net80211/ieee80211_freebsd.h>
63
64#ifndef _PATH_VAREMPTY
65#define _PATH_VAREMPTY "/var/empty"

--- 2330 unchanged lines hidden (view full) ---

2396 if (!res_hnok(sbuf)) {
2397 warning("Bogus Host Name option %d: %s (%s)", option,
2398 sbuf, opbuf);
2399 l->options[option].len = 0;
2400 free(l->options[option].data);
2401 }
2402 return (1);
2403 case DHO_DOMAIN_NAME:
58
59#include "dhcpd.h"
60#include "privsep.h"
61
62#include <net80211/ieee80211_freebsd.h>
63
64#ifndef _PATH_VAREMPTY
65#define _PATH_VAREMPTY "/var/empty"

--- 2330 unchanged lines hidden (view full) ---

2396 if (!res_hnok(sbuf)) {
2397 warning("Bogus Host Name option %d: %s (%s)", option,
2398 sbuf, opbuf);
2399 l->options[option].len = 0;
2400 free(l->options[option].data);
2401 }
2402 return (1);
2403 case DHO_DOMAIN_NAME:
2404 case DHO_DOMAIN_SEARCH:
2404 if (!res_hnok(sbuf)) {
2405 if (!check_search(sbuf)) {
2406 warning("Bogus domain search list %d: %s (%s)",
2407 option, sbuf, opbuf);
2408 l->options[option].len = 0;
2409 free(l->options[option].data);
2410 }
2411 }

--- 287 unchanged lines hidden ---
2405 if (!res_hnok(sbuf)) {
2406 if (!check_search(sbuf)) {
2407 warning("Bogus domain search list %d: %s (%s)",
2408 option, sbuf, opbuf);
2409 l->options[option].len = 0;
2410 free(l->options[option].data);
2411 }
2412 }

--- 287 unchanged lines hidden ---