Be less aggressive about rebuilding sminmpec.c.

Instead of forcing developers to generate sminmpec.c (which will have
different results depending on the presence or absence of a working
Internet connection) add sminmpec.c back to the repository. I'll add
it to the weekly update-numbers script so that it will be updated at
the same time as manuf, services, enterprise-numbers, and usb.c.

Change the Autotools, CMake, and Nmake sminmpec.c target name to
"update-sminmpec".

Remove the mtime check from make-sminmpec.pl. Update enterprise-numbers
and sminmpec.c while we're here.

Tested with an in-tree Autotools build and an out-of-tree CMake build.

Change-Id: Iecc332ce2731e3e98ab0205a56c78807e599a026
Reviewed-on: https://code.wireshark.org/review/1516
Reviewed-by: Evan Huus <eapache@gmail.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Gerald Combs 2014-05-05 11:50:24 -07:00 committed by Alexis La Goutte
parent e5cfd9e13a
commit 3f247a5cee
8 changed files with 43952 additions and 43 deletions

1
.gitignore vendored
View File

@ -39,7 +39,6 @@ epan/packet-ncp2222.c
epan/register-cache.pkl
epan/register.c
epan/register_wslua.c
epan/sminmpec.c
epan/taps.txt
epan/taps_wslua.c
epan/uat_load.c

View File

@ -1481,13 +1481,10 @@ set(WMEM_FILES
)
source_group(wmem FILES ${WMEM_FILES})
ADD_CUSTOM_COMMAND(
OUTPUT
sminmpec.c
ADD_CUSTOM_TARGET(
update-sminmpec ALL
COMMAND ${PERL_EXECUTABLE}
${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl
${CMAKE_CURRENT_SOURCE_DIR}/enterprise-numbers
sminmpec.c
DEPENDS
enterprise-numbers
${CMAKE_SOURCE_DIR}/tools/make-sminmpec.pl

View File

@ -128,8 +128,7 @@ DISTCLEANFILES = \
MAINTAINERCLEANFILES = \
$(LIBWIRESHARK_GENERATED_C_FILES) \
$(LIBWIRESHARK_GENERATED_HEADER_FILES) \
Makefile.in \
sminmpec.c
Makefile.in
#
# Add the object files for missing routines, if any.
@ -194,8 +193,8 @@ dtd_grammar.c : $(LEMON)/lemon$(EXEEXT) $(srcdir)/$(LEMON)/lempar.c $(srcdir)/dt
tvbtest.o exntest.o oids_test.o: exceptions.h
sminmpec.c: enterprise-numbers ../tools/make-sminmpec.pl
$(PERL) $(srcdir)/../tools/make-sminmpec.pl $(srcdir)/enterprise-numbers sminmpec.c
update-sminmpec:
$(PERL) $(srcdir)/../tools/make-sminmpec.pl
ps.c: print.ps $(top_srcdir)/tools/rdps.py
$(PYTHON) $(top_srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c

View File

@ -169,7 +169,7 @@ distclean-local: clean-local
$(NODIST_LIBWIRESHARK_GENERATED_HEADER_FILES) \
$(LIBWIRESHARK_GENERATED_C_FILES) \
$(LIBWIRESHARK_GENERATED_HEADER_FILES) \
dtd_grammar.out sminmpec.c
dtd_grammar.out
distclean: distclean-local
cd crypt
@ -383,8 +383,8 @@ asm_utils_win32_x86.obj: asm_utils_win32_x86.asm
$(NASM) -f $(WIRESHARK_TARGET_PLATFORM) -o $@ $?
!ENDIF
sminmpec.c: enterprise-numbers ..\tools\make-sminmpec.pl
$(PERL) ../tools/make-sminmpec.pl enterprise-numbers sminmpec.c
update-sminmpec:
$(PERL) ../tools/make-sminmpec.pl
RUNLEX=..\tools\runlex.sh

View File

@ -1,6 +1,6 @@
PRIVATE ENTERPRISE NUMBERS
(last updated 2014-04-25)
(last updated 2014-05-05)
SMI Network Management Private Enterprise Codes:
@ -7574,9 +7574,9 @@ Decimal
Francois Gauthie
metfgar&met.fr
1890
JBM Electronics
Kevin Morris
jbmelect&mo.net
Red Lion Controls (JBM Electronics)
Denis Aull
Engineering&RedLion.net
1891
OPTIM Systems, Inc.
Mr. Sunil Meht
@ -22130,9 +22130,9 @@ Decimal
Buyle You
ybl&cybertek.co.kr
5540
Aachen University of Technology (RWTH)
RWTH Aachen University
Guido Bunsen
Bunsen&rz.RWTH-Aachen.DE
Bunsen&itc.RWTH-Aachen.DE
5541
Paragea Communications, Inc
Laique Ahmed
@ -23722,9 +23722,9 @@ Decimal
Miran Bohak
miran.bohak&halcom.si
5940
JBM Electronics Co., Inc.
Art Surgant
asurgant&jbmelectronics.com
Red Lion Controls (JBM Electronics Co., Inc.)
Denis Aull
Engineering&RedLion.net
5941
Cosmocom Inc.
Rick Marlborough
@ -81715,9 +81715,9 @@ Nancy - FRANCE
Tilman Reiff
chinchilla&fursr.com
20540
SIXNET
Dave Ellis
dge&sixnetio.com
Red Lion Controls (SIXNET)
Denis Aull
Engineering&RedLion.net
20541
CITTIO, Inc.
Ross Fujii
@ -113104,9 +113104,9 @@ Decentralization / Helenic Public Administra
chandra nath
nath&01edge.com
28381
N-Tron Corp.
Warren Nicholson
warren.nicholson&n-tron.com
Red Lion Controls (N-Tron)
Denis Aull
Engineering&RedLion.net
28382
AirCell LLC
Brad Schnair
@ -118736,9 +118736,9 @@ Decentralization / Helenic Public Administra
Krzysztof Czajka
iptv&telmor.pl
29789
BlueTree Wireless Data, Inc.
Fadi Bachaalani
fbachaalani&bluetreewireless.com
Red Lion Controls (BlueTree Wireless Data, Inc.)
Denis Aull
Engineering&RedLion.net
29790
Yelp Inc.
Sean Plaice
@ -152034,8 +152034,8 @@ Decentralization / Helenic Public Administra
yedaoliang&163.com
38113
Red Lion Controls Inc.
Paul Marsh
paulm&redlion.net
Denis Aull
Engineering&RedLion.net
38114
Merseytravel
Mark Evans
@ -174100,6 +174100,210 @@ Decentralization / Helenic Public Administra
PSITEX, LLC
Jack D. Pond
jack.pond&psitex.com
43630
Duxoft, Inc.
Gennadiy Bezkorovayniy
gb&duxoft.com
43631
Heijmans N.V.
Edwin van de Burgt
eburgt2&heijmans.nl
43632
Celtex Works
Davey Robertson
d.robertson&celtexworks.com
43633
AIES Advanced Industrial Electronic Systems
Dariusz Makowski
dariusz.makowski&aies.pl
43634
Metrellis, Inc.
Walter Sujansky
wsujansky&sujansky.com
43635
Practice Velocity, LLC
Gregory J Wentz
gwentz&practicevelocity.com
43636
LES.NET
Leslie Bester
sales&les.net
43637
Zymer Inc.
Peter Yoo
pryoo&zymerinc.com
43638
ITS Korea
Sanghyun Lee
shleego&itskorea.kr
43639
Evoluta Interactive
Schalk Snyman
schalks&evoluta.biz
43640
through.other.eyes (Jonathan Platzer)
Jonathan Platzer
jonathan1996&gmx.at
43641
netplus.ch SA
Jean-Blaise Rey
jean-blaise.rey&netplus.pro
43642
Linde Engineering
Walter Werther
walter.werther&linde-le.com
43643
TEQ SA
Alessandro Prioglio
tech-admin&teq.ch
43644
Infra Services
Arjen Barnhard
pen.iana&infra-services.net
43645
FEIG ELECTRONIC GmbH
Sascha Brueck
sascha.brueck&feig.de
43646
Datatal AB
Thomas Persson
thomas&datatal.se
43647
Rimbach IT Systems UG
Rene M. Rimbach
info&rimbach-it-systems.de
43648
Naudit High Performance Computing and Networking S.L.
Eduardo Magaña
eduardo.magana&naudit.es
43649
Raritan Bay Medical Center
Susan Landow
slandow&rbmc.org
43650
United Health Services
Kevin Rymer
kevin_rymer&uhs.org
43651
INTTRA Inc
Michael Lunny
michael.lunny&inttra.com
43652
GoBICS
Rasmus Steinkamp
iana.pen.6kUL4EWH2w&gobics.de
43653
UNIVERSITAT OBERTA DE CATALUNYA
Carles Cortada i Hortalà
ccortada&uoc.edu
43654
marcsi.ch
Marc Siegenthaler
shin&marcsi.ch
43655
University Ecclesiastical Academy of Thessaloniki
Telemachos Stamkopoulos
telem&aeath.gr
43656
Consortium
Samsun Kang
sammy-kang&nate.com
43657
Kanton St.Gallen
Robert Schneider
Robert.Schneider&sg.ch
43658
Seacloud
Bong Dae Kim
bd.kim&sea-cloud.co.kr
43659
Hochschule für Technik und Wirtschaft des Saarlandes (htw saar)
Niclas Wolniak
niclas.wolniak&htwsaar.de
43660
Zadara Storage Ltd
Yair Hershko
yair&zadarastorage.com
43661
Columbus Business Solutions
Johnny Mejias
jmejias17&gmail.com
43662
Simpson Housing LLLP
Gene Pinson
gene.pinson&simpsonhousing.com
43663
eTouch Federal Systems
Benjamin Stassart
iana&etouchfederal.com
43664
Unzane
Gerald Turner
gturner&unzane.com
43665
rioxo GmbH
Rudolf Rohr
rudolf.rohr&rioxo.net
43666
Hackerspace Brussels
Frederic Pasteleurs
askarel&hackerspace.be
43667
Sunwire Inc
Jason Legault
support&sunwire.ca
43668
Andreas Kreisel
Andreas Kreisel
akreisel&duck-edv.de
43669
The Institute of Mathematical Sciences
B. Raveendra Reddy
ravi&imsc.res.in
43670
Epic Code Pty. Ltd.
Michael Slade
mslade&knobbits.org
43671
EMSEAS Teknik AB
Jonathan Petersson
jonathan.petersson&cxense.com
43672
INTELLECT MODULE
Ivan Fedotov
ivan&intellect-module.ru
43673
Federal State Unitary Enterprise CentrInform
Aleksey Gvozdev
a.gvozdev&center-inform.ru
43674
Robonect
Mikhail Sokolov
robot&robonect.com
43675
Accenture CAS GmbH
Carsten Mueller
carsten.mueller&accenture.com
43676
57North Hacklab
Iain Learmonth
irl&fsfe.org
43677
ICT Plus srl
Alessandro Barsotti
alessandro.barsotti&ictplus.it
43678
Michael Kramer
Michael Kramer
verwaltung&turkeyfish.de
43679
SETTE
Sotir Gramosli
sotir.gramosli&sette.com.mk
43680
Chorus Limited
David Vink
chorusopsnotify&chorus.co.nz
End of Document

43707
epan/sminmpec.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
use File::Spec;
@ -48,12 +49,6 @@ if($in =~ m/^http:/i) {
my $request = HTTP::Request->new(GET => $in);
if (-f "enterprise-numbers") {
my $mtime;
(undef,undef,undef,undef,undef,undef,undef,undef,undef,$mtime,undef,undef,undef) = stat("enterprise-numbers");
$request->if_modified_since( $mtime );
}
my $result = $agent->request($request);
if ($result->code eq 200) {
@ -127,11 +122,14 @@ print OUT <<"_SMINMPEC";
/*
* THIS FILE IS AUTOGENERATED, DO NOT EDIT
* generated from http://www.iana.org/assignments/enterprise-numbers
* run "tools/make-sminmspec <infile> <outfile>" to regenerate
* run "tools/make-sminmpec.pl <infile> <outfile>" to regenerate
*
* Note: "Gaps" in the iana enterprise-numbers list have been "filled in"
* with "(Unknown)" as the name so that direct (indexed) access
* to the list is possible.
* Note 1: "Gaps" in the iana enterprise-numbers list have been "filled in"
* with "(Unknown)" as the name so that direct (indexed) access to
* the list is possible.
*
* Note 2: We should probably parse "enterprise-numbers" at program start
* instead of generating this file.
*/
#include "config.h"

View File

@ -112,6 +112,11 @@ header="""/* usb.c
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
* XXX We should probably parse a USB ID file at program start instead
* of generating this file.
*/
#include "config.h"
#include <epan/packet.h>
"""