source: libpacketdump/Makefile.am @ 7af80ba

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 7af80ba was 66ad025, checked in by Shane Alcock <salcock@…>, 11 years ago
  • Fixed bug where libpacketdump doesn't skip past IP options correctly before parsing the next header
  • Added a trace_hexdump_packet() which will dump the entire packet as hex, which can be useful for debugging libpacketdump
  • Use results of trace_get_capture_length() as the length when dumping packets, to avoid issues with an upcoming change
  • Property mode set to 100644
File size: 2.9 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# Decoders for various ethertypes (in decimal)
64# IPv4
65BIN_PROTOCOLS+=eth_0.la
66BIN_PROTOCOLS+=eth_2048.la
67# ARP
68BIN_PROTOCOLS+=eth_2054.la     
69# VLAN (802.1Q)
70BIN_PROTOCOLS+=eth_33024.la
71# MPLS
72BIN_PROTOCOLS+=eth_34887.la
73# pppoe
74BIN_PROTOCOLS+=eth_34916.la
75# 802.1x
76BIN_PROTOCOLS+=eth_34958.la
77
78# IP Protocol decoders
79# ICMP
80BIN_PROTOCOLS+=ip_1.la
81# TCP
82BIN_PROTOCOLS+=ip_6.la
83# UDP
84BIN_PROTOCOLS+=ip_17.la
85# DCCP
86BIN_PROTOCOLS+=ip_33.la
87# IPv6
88TXT_PROTOCOLS+=ip_41.protocol
89# GRE
90BIN_PROTOCOLS+=ip_47.la
91# ICMP6
92TXT_PROTOCOLS+=ip_58.protocol
93# SCTP
94BIN_PROTOCOLS+=ip_132.la       
95
96# TCP protocol decoders
97# (tcp_*.la)
98
99# UDP protocol decoders
100# (udp_*.la)
101
102# I shouldn't need to do this
103link_0_la_LDFLAGS=-module
104link_1_la_LDFLAGS=-module
105link_2_la_LDFLAGS=-module
106link_4_la_LDFLAGS=-module
107link_6_la_LDFLAGS=-module
108link_9_la_LDFLAGS=-module
109link_10_la_LDFLAGS=-module
110link_11_la_LDFLAGS=-module
111link_15_la_LDFLAGS=-module
112eth_0_la_LDFLAGS=-module
113eth_2048_la_LDFLAGS=-module
114eth_2054_la_LDFLAGS=-module
115eth_33024_la_LDFLAGS=-module
116eth_34887_la_LDFLAGS=-module
117eth_34916_la_LDFLAGS=-module
118eth_34958_la_LDFLAGS=-module
119
120ip_1_la_LDFLAGS=-module
121ip_6_la_LDFLAGS=-module
122ip_17_la_LDFLAGS=-module
123ip_33_la_LDFLAGS=-module
124ip_47_la_LDFLAGS=-module
125ip_132_la_LDFLAGS=-module
126
127libpacketdump_la_SOURCES = libpacketdump.cc \
128                        lexer.l parser.y bitbuffer.c bitbuffer.h grammar.h
129
130plugin_LTLIBRARIES = $(BIN_PROTOCOLS)
131dist_plugin_DATA = $(TXT_PROTOCOLS)
132
133INCLUDES= @ADD_INCLS@ -I../lib
134
135# NOTE: You CANNOT add @LEXLIBS@ here, as they are statically compiled
136# which on non x86_32 platforms means that they cannot be linked into
137# a shared library.
138libpacketdump_la_LIBADD = @ADD_LIBS@
139libpacketdump_la_LDFLAGS=\
140        -version-info @LIBTRACE_MAJOR@:@LIBTRACE_MINOR@:@LIBTRACE_MID@ \
141        @ADD_LDFLAGS@
142
143AM_CXXFLAGS=-g -Wall -DDIRNAME=\"$(plugindir)\" $(INCLUDES)
144BUILT_SOURCES=parser.h
145AM_YFLAGS=-d
146EXTRA_DIST=lexer.l parser.y
147
148install-exec-hook:
149        $(AM_V_GEN)mkdir -p $(DESTDIR)$(plugindir)
150        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so ppp_33.so
151        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f eth_2048.so link_5.so
152        $(AM_V_GEN)cd $(DESTDIR)$(plugindir) && $(LN_S) -f ip_41.protocol eth_34525.protocol
Note: See TracBrowser for help on using the repository browser.