dhclient.c (147686) | dhclient.c (147689) |
---|---|
1/* $OpenBSD: dhclient.c,v 1.63 2005/02/06 17:10:13 krw Exp $ */ | 1/* $OpenBSD: dhclient.c,v 1.63 2005/02/06 17:10:13 krw Exp $ */ |
2/* $FreeBSD: head/sbin/dhclient/dhclient.c 147686 2005-06-30 05:32:42Z brooks $ */ | 2/* $FreeBSD: head/sbin/dhclient/dhclient.c 147689 2005-06-30 05:50:52Z brooks $ */ |
3 4/* 5 * Copyright 2004 Henning Brauer <henning@openbsd.org> 6 * Copyright (c) 1995, 1996, 1997, 1998, 1999 7 * The Internet Software Consortium. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 2212 unchanged lines hidden (view full) --- 2223 case DHO_SWAP_SERVER: 2224 case DHO_BROADCAST_ADDRESS: 2225 case DHO_NIS_SERVERS: 2226 case DHO_NTP_SERVERS: 2227 case DHO_NETBIOS_NAME_SERVERS: 2228 case DHO_NETBIOS_DD_SERVER: 2229 case DHO_FONT_SERVERS: 2230 case DHO_DHCP_SERVER_IDENTIFIER: | 3 4/* 5 * Copyright 2004 Henning Brauer <henning@openbsd.org> 6 * Copyright (c) 1995, 1996, 1997, 1998, 1999 7 * The Internet Software Consortium. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 2212 unchanged lines hidden (view full) --- 2223 case DHO_SWAP_SERVER: 2224 case DHO_BROADCAST_ADDRESS: 2225 case DHO_NIS_SERVERS: 2226 case DHO_NTP_SERVERS: 2227 case DHO_NETBIOS_NAME_SERVERS: 2228 case DHO_NETBIOS_DD_SERVER: 2229 case DHO_FONT_SERVERS: 2230 case DHO_DHCP_SERVER_IDENTIFIER: |
2231 case DHO_SMTP_SERVER: 2232 case DHO_POP_SERVER: 2233 case DHO_NNTP_SERVER: 2234 case DHO_WWW_SERVER: 2235 case DHO_FINGER_SERVER: 2236 case DHO_IRC_SERVER: |
|
2231 if (!ipv4addrs(opbuf)) { 2232 warning("Invalid IP address in option: %s", opbuf); 2233 return (0); 2234 } 2235 return (1) ; 2236 case DHO_HOST_NAME: 2237 case DHO_NIS_DOMAIN: 2238 if (!res_hnok(sbuf)) { --- 177 unchanged lines hidden --- | 2237 if (!ipv4addrs(opbuf)) { 2238 warning("Invalid IP address in option: %s", opbuf); 2239 return (0); 2240 } 2241 return (1) ; 2242 case DHO_HOST_NAME: 2243 case DHO_NIS_DOMAIN: 2244 if (!res_hnok(sbuf)) { --- 177 unchanged lines hidden --- |