Merge branch 'release-1.1'
This commit is contained in:
commit
a13d81e9c0
@ -7,8 +7,11 @@ WORKDIR /usr/src/app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN apk update
|
# remove development dependencies
|
||||||
RUN apk add tcpdump
|
RUN npm prune --production
|
||||||
|
|
||||||
|
# Install required apk-packages & delete cache
|
||||||
|
RUN apk update && apk add tcpdump && rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY ./src/ .
|
COPY ./src/ .
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
const PacketType = {
|
const PacketType = {
|
||||||
Beacon: 'Beacon',
|
Beacon: "Beacon",
|
||||||
ProbeRequest: 'ProbeRequest',
|
ProbeRequest: "ProbeRequest",
|
||||||
ProbeResponse: 'ProbeResponse',
|
ProbeResponse: "ProbeResponse",
|
||||||
Data: 'Data',
|
Data: "Data",
|
||||||
RequestToSend: 'RequestToSend',
|
RequestToSend: "RequestToSend",
|
||||||
ClearToSend: 'ClearToSend',
|
ClearToSend: "ClearToSend",
|
||||||
Acknowledgment: 'Acknowledgment',
|
Acknowledgment: "Acknowledgment",
|
||||||
BlockAcknowledgment: 'BlockAcknowledgment',
|
BlockAcknowledgment: "BlockAcknowledgment",
|
||||||
NoData: 'NoData',
|
NoData: "NoData",
|
||||||
Authentication: 'Authentication',
|
Authentication: "Authentication",
|
||||||
AssociationRequest: 'AssociationRequest',
|
AssociationRequest: "AssociationRequest",
|
||||||
AssociationResponse: 'AssociationResponse',
|
AssociationResponse: "AssociationResponse",
|
||||||
Disassociation: 'Disassociation',
|
Disassociation: "Disassociation",
|
||||||
Handshake: 'Handshake',
|
Handshake: "Handshake",
|
||||||
Unknown: 'Unknown'
|
Unknown: "Unknown"
|
||||||
}
|
};
|
||||||
|
|
||||||
const FlagType = {
|
const FlagType = {
|
||||||
MoreFragments: "MoreFragments",
|
MoreFragments: "MoreFragments",
|
||||||
@ -23,7 +23,7 @@ const FlagType = {
|
|||||||
MoreData: "MoreData",
|
MoreData: "MoreData",
|
||||||
Protected: "Protected",
|
Protected: "Protected",
|
||||||
Order: "Order"
|
Order: "Order"
|
||||||
}
|
};
|
||||||
|
|
||||||
class Packet{
|
class Packet{
|
||||||
timestampMicros;
|
timestampMicros;
|
||||||
@ -58,9 +58,9 @@ class ProbeRequestPacket extends PacketWithSSID{}
|
|||||||
class ProbeResponsePacket extends PacketWithSSID{}
|
class ProbeResponsePacket extends PacketWithSSID{}
|
||||||
|
|
||||||
const AuthenticationType = {
|
const AuthenticationType = {
|
||||||
OpenSystem_1: 'OpenSystem_1',
|
OpenSystem_1: "OpenSystem_1",
|
||||||
OpenSystem_2: 'OpenSystem_2',
|
OpenSystem_2: "OpenSystem_2",
|
||||||
Unknown: 'Unknown',
|
Unknown: "Unknown",
|
||||||
}
|
}
|
||||||
class AuthenticationPacket extends Packet{
|
class AuthenticationPacket extends Packet{
|
||||||
authenticationType;
|
authenticationType;
|
||||||
@ -77,10 +77,10 @@ class DisassociationPacket extends Packet{
|
|||||||
|
|
||||||
|
|
||||||
const HandshakeStage = {
|
const HandshakeStage = {
|
||||||
1: '1',
|
1: "1",
|
||||||
2: '2',
|
2: "2",
|
||||||
3: '3',
|
3: "3",
|
||||||
4: '4'
|
4: "4"
|
||||||
}
|
}
|
||||||
class HandshakePacket extends Packet{
|
class HandshakePacket extends Packet{
|
||||||
handshakeStage;
|
handshakeStage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user