aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/socket.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-26 10:09:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-26 10:09:34 +0100
commit385b4562e39e373761fd62b0990dce02ff96661f (patch)
tree5446c10cd8fbde102f59705a9c0419227707c520 /networking/udhcp/socket.c
parent968951fd0ced7d0d4b81c0ee4466eada93ae4128 (diff)
downloadbusybox-w32-385b4562e39e373761fd62b0990dce02ff96661f.tar.gz
busybox-w32-385b4562e39e373761fd62b0990dce02ff96661f.tar.bz2
busybox-w32-385b4562e39e373761fd62b0990dce02ff96661f.zip
udhcp: cosmetic cleanups; one case of s/full_read/xread/
function old new delta dumpleases_main 632 623 -9 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/socket.c')
-rw-r--r--networking/udhcp/socket.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/networking/udhcp/socket.c b/networking/udhcp/socket.c
index 469b36202..0ed7ad1c6 100644
--- a/networking/udhcp/socket.c
+++ b/networking/udhcp/socket.c
@@ -1,6 +1,6 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * socket.c -- DHCP server client/server socket creation 3 * DHCP server client/server socket creation
4 * 4 *
5 * udhcp client/server 5 * udhcp client/server
6 * Copyright (C) 1999 Matthew Ramsay <matthewr@moreton.com.au> 6 * Copyright (C) 1999 Matthew Ramsay <matthewr@moreton.com.au>
@@ -22,20 +22,18 @@
22 * along with this program; if not, write to the Free Software 22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */ 24 */
25
26#include <net/if.h> 25#include <net/if.h>
27#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION 26#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
28#include <netpacket/packet.h> 27# include <netpacket/packet.h>
29#include <net/ethernet.h> 28# include <net/ethernet.h>
30#else 29#else
31#include <asm/types.h> 30# include <asm/types.h>
32#include <linux/if_packet.h> 31# include <linux/if_packet.h>
33#include <linux/if_ether.h> 32# include <linux/if_ether.h>
34#endif 33#endif
35 34
36#include "common.h" 35#include "common.h"
37 36
38
39int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac) 37int FAST_FUNC udhcp_read_interface(const char *interface, int *ifindex, uint32_t *nip, uint8_t *mac)
40{ 38{
41 int fd; 39 int fd;