This repository has development and master branches. If you want to use the code, please use the master branch.
As long as the repository is not paused, it will be continuously maintained and developed. Please use it with confidence.
IP address and MAC address ownership query
- Support for IP address ownership query
- Support for MAC address vendor query
- Provides database interface methods without restricting the usage language
To compile our examples, you need the XEngine environment, version V8.x or above. You can refer to its README document for installing XEngine.
GITEE: https://gitee.com/xyry/libxengine
GITHUB: https://github.com/libxengine/xengine
Clone the repository:
git clone https://gitee.com/xyry/libxengine.git
or
git clone https://github.com/libxengine/xengine.git
For Windows, execute the XEngine_WINEnv.bat
script.
For Linux, execute: sudo ./XEngine_LINEnv.sh -i 3
For macOS, execute: ./XEngine_LINEnv.sh -i 3
You can directly use Visual Studio (VS).
Execute the following commands in the XEngine_Source
directory:
make
to compile
make FLAGS=InstallAll
to install the library
make FLAGS=CleanAll
to clean the compilation
Please refer to the data source.
XENGINE_PROTOCOLHDR
header + XENGINE_MACADDRINFO
array
The standard protocol header sets the type, count, and payload size of the data source, followed by multiple XENGINE_MACADDRINFO
data structures. Each structure stores MAC address information as follows:
XCHAR
is one byte. MAX_PATH
is 260 bytes.
XCHAR tszVendorName[MAX_PATH];
// VendorXCHAR tszMACPrefix[64];
// MAC addressXCHAR tszUPTime[16];
// Update timeXCHAR tszBlockType[8];
// Typebool bPrivate;
// Whether it is private
- Switch to the MASTER branch
- Download the code
- Compile
- Install
- Run
XEngine_Docment
Document directory structureXEngine_Release
Installation directory structureXEngine_Source
Source code directory structureXEngine_APPClient
Client demo code
We hope everyone can contribute more code.
- Fork this repository
- Create a new
Feat_xxx
branch - Submit your code
- Create a Pull Request
If you find this software helpful, please give us a STAR.
If you have any questions or find bugs and have suggestions, you can submit them in the issues section.
@ip2region
@MACLookup