Skip to content

Commit

Permalink
Update output_json.c
Browse files Browse the repository at this point in the history
etherType in layer2 extension
  • Loading branch information
phaag authored Apr 1, 2024
1 parent 5a5f00b commit 2e13f89
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/output/output_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,10 @@ static void stringEXlayer2(FILE *stream, void *extensionRecord, const char *inde
"%s\"cust_vlanID\" : %u%s"
"%s\"post_cust_vlanID\" : %u%s"
"%s\"phys_ingress\" : \"%u\"%s"
"%s\"phys_egress\" : \"%u\"%s",
"%s\"phys_egress\" : \"%u\"%s"
"%s\"ethertype\" : %u%s",
indent, layer2->vlanID, fs, indent, layer2->postVlanID, fs, indent, layer2->customerVlanId, fs, indent, layer2->postCustomerVlanId, fs,
indent, layer2->ingress, fs, indent, layer2->egress, fs);
indent, layer2->ingress, fs, indent, layer2->egress, fs, indent, etherType->etherType, fs);

} // End of stringEXlayer2

Expand Down Expand Up @@ -659,13 +660,6 @@ static void stringEXnelXlatePort(FILE *stream, void *extensionRecord, const char

} // End of stringEXnelXlatePort

static void stringEXetherType(FILE *stream, void *extensionRecord, const char *indent, const char *fs) {
EXetherType_t *etherType = (EXetherType_t *)extensionRecord;
fprintf(stream,
"%s\"ethertype\" : %u%s",
indent, etherType->etherType, fs);

} // End of stringEXnelXlatePort

void json_prolog(void) {
recordCount = 0;
Expand Down

0 comments on commit 2e13f89

Please sign in to comment.