10 AC_CHECK_HEADERS(sys/sockio.h)
12 --- a/include/libnet/libnet-functions.h
13 +++ b/include/libnet/libnet-functions.h
15 * @param ptag protocol tag to modify an existing header, 0 to build a new one
16 * @return protocol tag value on success, -1 on error
20 libnet_getgre_length(u_int16_t fv);
27 EXTRA_DIST = Makefile.am.common
29 -bin_scripts = libnet-config
30 +bin_SCRIPTS = libnet-config
31 --- a/sample/Makefile.am
32 +++ b/sample/Makefile.am
34 ip_link_SOURCES = ip_link.c
35 sebek_SOURCES = sebek.c
37 -LDADD = $(top_srcdir)/src/libnet.a
38 +LDADD = $(top_srcdir)/src/libnet.la
39 --- a/src/libnet_checksum.c
40 +++ b/src/libnet_checksum.c
42 libnet_in_cksum(u_int16_t *addr, int len)
45 + u_int16_t last_byte;
56 - sum += *(u_int16_t *)addr;
57 + *(u_int8_t*)&last_byte = *(u_int8_t*)addr;
66 include $(top_srcdir)/Makefile.am.common
68 -lib_LIBRARIES = libnet.a
69 +lib_LTLIBRARIES = libnet.la
71 -libnet_a_SOURCES = libnet_asn1.c \
72 +libnet_la_SOURCES = libnet_asn1.c \
73 libnet_build_802.1q.c \
74 libnet_build_802.1x.c \
75 libnet_build_802.2.c \
80 -EXTRA_libnet_a_SOURCES = libnet_link_bpf.c \
81 - libnet_link_dlpi.c \
82 - libnet_link_linux.c \
84 - libnet_link_none.c \
86 - libnet_link_snit.c \
87 - libnet_link_snoop.c \
90 -libnet_a_LIBADD = @LIBOBJS@
91 +libnet_la_LIBADD = @LTLIBOBJS@
93 +# Here are a set of rules to help you update your library version
96 +# 1. If the library source code has changed at all since the last
97 +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
99 +# 2. If any interfaces have been added, removed, or changed since the
100 +# last update, increment CURRENT, and set REVISION to 0.
102 +# 3. If any interfaces have been added since the last public release,
103 +# then increment AGE.
105 +# 4. If any interfaces have been removed since the last public release,
106 +# then set AGE to 0.
107 +libnet_la_LDFLAGS = -version-info 4:0:3 # CURRENT[:REVISION[:AGE]]