OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / Libnet / doc / Ancillary / README.legacy-applications
1 ===============================================================================
2     LIBNET 1.0 (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
3                                http://www.packetfactory.net/libnet
4 ===============================================================================
5
6
7     All legacy applications written on top of libnet that have NOT been
8     modified to make use of the libnet-config script will fail.  This is
9     because as of version 0.99e libnet needs to have an endian-ness defined
10     (handled by the script).  You'll know you have this problem if you see an
11     error like:
12
13 /usr/include/libnet.h:89: #error "byte order has not been specified, you'll
14 need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN.  See the
15 documentation regarding the libnet-config script."
16
17     To remedy this, add to your Makefile something like:
18
19 DEFINES     =  `libnet-config --defines` <OTHER_DEFINES_HERE...>
20
21     Or, if you're compiling at the command line, simply do something like:
22
23 host:~> gcc -Wall `libnet-config --defines` foo.c `libnet-config --libs`
24
25     For more information on the libnet-config script, see README.libnet-config.
26
27     Furthermore, as of 1.0, no legacy naming nomenclature will be supported.
28
29 EOF