Skip to content

Commit

Permalink
MAC address getVendorName (OUI Lookup) functionality (#904)
Browse files Browse the repository at this point in the history
* backup

* add masked values

* minor update

* add space

* update

* backup

* fix

* reorder files

* add windows

* update

* change hardcoded to runtime

* remove unnecessary changes

* update

* make typos happy

* Create .gitattributes

* Update .gitattributes

* remove dat

* rename files

* indent to tabs

* :/

* remove attributes

* add database file again

* unnecessary change

* check

* check

* fixed now?

* check big endian

* update

* update

* no need endianness cleanup code

* minor update

* minor update

* fix doxy error

* format

* set default path

* wip

* update python script

* remove old dat file

* fix pre-commit

* fix codespell

* minor fix

* pre-commit should fixed now

* minor fix

* fix eof

* fix vendor names for masked macs

* add json

* compile for linux

* update functions for json

* fix test path

* fix utf8 characters

* add comment

* fix masked mac

* fix pre-commit

* fix vs

* minor fixes

* change test oui's with less advertising brands

* object type already checked

* very minor change for ignore

* update for cmake

* add shebang header

* update database to latest

* fix pre-commit

* support both json and compile time constant

* remove whitespace

* rename folder

* exclude from checks

* minor update

* Refactor the python script which creates the OUI dataset

* remove unnecessary things

* removed functions from tests

* add tag

* fix pre-commit

* remove old python

---------

Co-authored-by: seladb <pcapplusplus@gmail.com>
  • Loading branch information
egecetin and seladb committed Feb 15, 2023
1 parent 142e3de commit 0124e33
Show file tree
Hide file tree
Showing 15 changed files with 142,031 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[codespell]
skip = *.dat,typos-config.toml,.git,./ci,./Dist,./mk,./Tests/ExamplesTest/expected_output,./Tests/ExamplesTest/pcap_examples,./Tests/Packet++Test/PacketExamples,./Tests/Pcap++Test/PcapExamples
skip = *.dat,typos-config.toml,.git,./ci,./Dist,./mk,./Tests/ExamplesTest/expected_output,./Tests/ExamplesTest/pcap_examples,./Tests/Packet++Test/PacketExamples,./Tests/Pcap++Test/PcapExamples,./3rdParty/json,./3rdParty/OUIDataset/PCPP_OUIDataset.json
ignore-words = codespell-ignore-list.txt
count =
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#pcap and pcapng files
*.pcap
*.pcapng
*.pcapng.zst
*.pcapng.zstd
*.cap

Expand All @@ -36,6 +37,7 @@ build/

#auto generated files
setup_dpdk_settings.dat
3rdParty/OUIDataset/manuf.dat

#curl text
Tests/Pcap++Test/cUrl/curl_output.txt
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ repos:
rev: v2.2.2
hooks:
- id: codespell
pass_filenames: false
- repo: https://github.com/crate-ci/typos
rev: v1.13.7
hooks:
- id: typos
args: ['--config=typos-config.toml']
pass_filenames: false
3 changes: 2 additions & 1 deletion 3rdParty/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ set(CMAKE_CXX_CLANG_TIDY "")

add_subdirectory(EndianPortable)
add_subdirectory(Getopt-for-Visual-Studio)
add_subdirectory(LightPcapNg)
add_subdirectory(hash-library)
add_subdirectory(json)
add_subdirectory(LightPcapNg)
add_subdirectory(MemPlumber/MemPlumber)

if(PCAPPP_INSTALL)
Expand Down

0 comments on commit 0124e33

Please sign in to comment.