let user to set VLAN

pull/162/head
Tomas Ladr 6 years ago
parent 18aa3faf20
commit 0b01f024e3

@ -201,7 +201,7 @@ prepareGooseBuffer(GoosePublisher self, CommParameters* parameters, const char*
int bufPos = 12;
#if 1
if (vlanId != 65535) {
/* Priority tag - IEEE 802.1Q */
self->buffer[bufPos++] = 0x81;
self->buffer[bufPos++] = 0x00;
@ -213,7 +213,7 @@ prepareGooseBuffer(GoosePublisher self, CommParameters* parameters, const char*
self->buffer[bufPos++] = tci1; /* Priority + VLAN-ID */
self->buffer[bufPos++] = tci2; /* VLAN-ID */
#endif
}
/* EtherType GOOSE */
self->buffer[bufPos++] = 0x88;

Loading…
Cancel
Save