source: libpacketdump/Makefile.am @ bf1029a

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since bf1029a was 8b49230, checked in by Shane Alcock <salcock@…>, 8 years ago

Fixed problems with decoding RadioTap? headers with libpacketdump on big endian
hosts

  • Moved byteswapX functions to a separate source file so that libpacketdump can also link against them.
  • bswap_* macros have been moved into lt_bswap.h so they can be used without having to include the entire libtrace_int.h header
  • Fixed endianness issues with the "fields" inside the RadioTap? header.
  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[61ecfb6]1lib_LTLIBRARIES = libpacketdump.la
[7ecfe7f]2include_HEADERS = libpacketdump.h
[61ecfb6]3
[7ecfe7f]4plugindir = $(libdir)/libpacketdump
[77509e9]5
[7ecfe7f]6BIN_PROTOCOLS=
7TXT_PROTOCOLS=
[77509e9]8
[7ecfe7f]9# Link layers supported
[9e528f6]10# Legacy
11BIN_PROTOCOLS+=link_0.la
12
13# HDLC_POS
[ac7037b]14BIN_PROTOCOLS+=link_1.la
[9e528f6]15
16# Ethernet
17BIN_PROTOCOLS+=link_2.la
18
19# ATM
20TXT_PROTOCOLS+=link_3.protocol
21
22# 802.11
23BIN_PROTOCOLS+=link_4.la
24
25# NONE
26#
27
28# Linux SLL
[bed8c66]29#TXT_PROTOCOLS+=link_6.protocol
30BIN_PROTOCOLS+=link_6.la
[9e528f6]31
32# PFLog
33#       
34
35# Obsolete legacy
36#               
37
38# Obsolete Legacy ATM
39#                               
40
[dbdc23f]41# PoS
[ac7037b]42BIN_PROTOCOLS+=link_9.la
[dbdc23f]43
[9e528f6]44# Obsolete Legacy Ethernet
45BIN_PROTOCOLS+=link_10.la       
46
[dbdc23f]47# 802.11 Prism
[9e528f6]48BIN_PROTOCOLS+=link_11.la       
49
[dbdc23f]50# 13: AAL5
[9e528f6]51#                       
[dbdc23f]52# 14: Duck
53#
[003cb8a]54
[dbdc23f]55# 15: Radiotap
[1dc7df3]56BIN_PROTOCOLS+=link_15.la
57
[dbdc23f]58# 16: LLC/SNAP
59#
60# 17: PPP
61TXT_PROTOCOLS+=link_17.protocol
62
[7ecfe7f]63# Decoders for various ethertypes (in decimal)
[9e528f6]64# IPv4
[6ebfd24]65BIN_PROTOCOLS+=eth_0.la
[9e528f6]66BIN_PROTOCOLS+=eth_2048.la
67# ARP
68BIN_PROTOCOLS+=eth_2054.la     
[4e4a77f]69# VLAN (802.1Q)
70BIN_PROTOCOLS+=eth_33024.la
[09ebdb4]71# MPLS
72BIN_PROTOCOLS+=eth_34887.la
[0c47bf4]73# pppoe
74BIN_PROTOCOLS+=eth_34916.la
[6758276]75# 802.1x
76BIN_PROTOCOLS+=eth_34958.la
[61ecfb6]77
[176646e]78# IPv6
79BIN_PROTOCOLS+=eth_34525.la
80
[7ecfe7f]81# IP Protocol decoders
[29b93a5]82# IPv6 Hop by Hop Options Header
83BIN_PROTOCOLS+=ip_0.la
[9e528f6]84# ICMP
85BIN_PROTOCOLS+=ip_1.la
86# TCP
87BIN_PROTOCOLS+=ip_6.la
88# UDP
89BIN_PROTOCOLS+=ip_17.la
90# DCCP
91BIN_PROTOCOLS+=ip_33.la
[29b93a5]92# IPv6 Routing Header
93BIN_PROTOCOLS+=ip_43.la
[e845da6]94# IPv6 Fragment Header
95BIN_PROTOCOLS+=ip_44.la
[9b06a91]96# GRE
97BIN_PROTOCOLS+=ip_47.la
[9e528f6]98# ICMP6
99TXT_PROTOCOLS+=ip_58.protocol
[29b93a5]100# IPv6 Destination Options Header
101BIN_PROTOCOLS+=ip_60.la
[e224862]102# OSPF
103BIN_PROTOCOLS+=ip_89.la
[9e528f6]104# SCTP
105BIN_PROTOCOLS+=ip_132.la       
[61ecfb6]106
[7ecfe7f]107# TCP protocol decoders
108# (tcp_*.la)
[61ecfb6]109
[7ecfe7f]110# UDP protocol decoders
111# (udp_*.la)
[61ecfb6]112
[e224862]113# OSPF decoders
114BIN_PROTOCOLS+=ospf2_1.la
115BIN_PROTOCOLS+=ospf2_4.la
116BIN_PROTOCOLS+=ospf2_5.la
117
118# Start numbering OSPF LSA types from 1000
119BIN_PROTOCOLS+=ospf2_1000.la
120BIN_PROTOCOLS+=ospf2_1001.la
121BIN_PROTOCOLS+=ospf2_1002.la
122BIN_PROTOCOLS+=ospf2_1003.la
123BIN_PROTOCOLS+=ospf2_1004.la
124BIN_PROTOCOLS+=ospf2_1005.la
125
[7ecfe7f]126# I shouldn't need to do this
[12369cf]127modflags=-module -avoid-version -shared
128link_0_la_LDFLAGS=$(modflags)
129link_1_la_LDFLAGS=$(modflags)
130link_2_la_LDFLAGS=$(modflags)
131link_4_la_LDFLAGS=$(modflags)
132link_6_la_LDFLAGS=$(modflags)
133link_9_la_LDFLAGS=$(modflags)
134link_10_la_LDFLAGS=$(modflags)
135link_11_la_LDFLAGS=$(modflags)
136link_15_la_LDFLAGS=$(modflags)
137eth_0_la_LDFLAGS=$(modflags)
138eth_2048_la_LDFLAGS=$(modflags)
139eth_2054_la_LDFLAGS=$(modflags)
140eth_33024_la_LDFLAGS=$(modflags)
141eth_34887_la_LDFLAGS=$(modflags)
142eth_34916_la_LDFLAGS=$(modflags)
143eth_34958_la_LDFLAGS=$(modflags)
144eth_34525_la_LDFLAGS=$(modflags)
145
146ip_0_la_LDFLAGS=$(modflags)
147ip_1_la_LDFLAGS=$(modflags)
148ip_6_la_LDFLAGS=$(modflags)
149ip_17_la_LDFLAGS=$(modflags)
150ip_33_la_LDFLAGS=$(modflags)
151ip_43_la_LDFLAGS=$(modflags)
152ip_44_la_LDFLAGS=$(modflags)
153ip_47_la_LDFLAGS=$(modflags)
154ip_60_la_LDFLAGS=$(modflags)
155ip_89_la_LDFLAGS=$(modflags)
156ip_132_la_LDFLAGS=$(modflags)
157
158ospf2_1_la_LDFLAGS=$(modflags)
159ospf2_4_la_LDFLAGS=$(modflags)
160ospf2_5_la_LDFLAGS=$(modflags)
161ospf2_1000_la_LDFLAGS=$(modflags)
162ospf2_1001_la_LDFLAGS=$(modflags)
163ospf2_1002_la_LDFLAGS=$(modflags)
164ospf2_1003_la_LDFLAGS=$(modflags)
165ospf2_1004_la_LDFLAGS=$(modflags)
166ospf2_1005_la_LDFLAGS=$(modflags)
[176646e]167
[8b49230]168libpacketdump_la_SOURCES = libpacketdump.cc ../lib/byteswap.c \
[4f666aa]169                        lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h
[61ecfb6]170
[7ecfe7f]171plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
[1034a10]172dist_plugin_DATA = $(TXT_PROTOCOLS)
[7ecfe7f]173
[b3edbe9]174INCLUDES= @ADD_INCLS@ -I../lib -I../libwandio
[bf0f554]175
176# NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled
177# which on non x86_32 platforms means that they cannot be linked into
178# a shared library.
[9589941]179libpacketdump_la_LIBADD = @LIBPKTDUMP_LIBS@
[7ecfe7f]180libpacketdump_la_LDFLAGS=\
181        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
[4a4cc39]182        @ADD_LDFLAGS@
[61ecfb6]183
[7ecfe7f]184AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(INCLUDES)
[4f666aa]185BUILT_SOURCES=parser.h
186AM_YFLAGS=-d
187EXTRA_DIST=lexer.l parser.y
[dbdc23f]188
189install-exec-hook:
[fabd05a]190        $(AM_V_GEN)mkdir -p $(DESTDIR)$(plugindir)
191        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
192        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
[0316f8b]193        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_34525.so ip_41.so
[12369cf]194
195install-data-hook:
[b471b67]196        rm -f $(DESTDIR)$(plugindir)/*.la
Note: See TracBrowser for help on using the repository browser.