source: libpacketdump/Makefile.am @ a82a9e8

cachetimestampsdevelopetsiliverc-4.0.4ringdecrementfixringperformance
Last change on this file since a82a9e8 was a82a9e8, checked in by Shane Alcock <salcock@…>, 3 years ago

Fix bad link ID for ETSI headers in libpacketdump.

The recent merge with the ERF provenance support had bumped ETSI
from linktype 21 to linktype 22, causing libpacketdump decoding
to fail because there was no module for linktype 22.

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