aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/packet.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/packet.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/packet.c')
-rw-r--r--networking/udhcp/packet.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
index ecdbec7f3..1bfe12041 100644
--- a/networking/udhcp/packet.c
+++ b/networking/udhcp/packet.c
@@ -1,18 +1,19 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * packet.c -- packet ops 3 * Packet ops
4 *
4 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001 5 * Rewrite by Russ Dill <Russ.Dill@asu.edu> July 2001
5 * 6 *
6 * Licensed under GPLv2, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2, see file LICENSE in this tarball for details.
7 */ 8 */
8#include <netinet/in.h> 9#include <netinet/in.h>
9#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION 10#if (defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) || defined _NEWLIB_VERSION
10#include <netpacket/packet.h> 11# include <netpacket/packet.h>
11#include <net/ethernet.h> 12# include <net/ethernet.h>
12#else 13#else
13#include <asm/types.h> 14# include <asm/types.h>
14#include <linux/if_packet.h> 15# include <linux/if_packet.h>
15#include <linux/if_ether.h> 16# include <linux/if_ether.h>
16#endif 17#endif
17 18
18#include "common.h" 19#include "common.h"