Skip to content

Commit

Permalink
fix blaster MPLS encap
Browse files Browse the repository at this point in the history
  • Loading branch information
GIC-de committed Sep 11, 2024
1 parent 7fdd208 commit 1aa3bf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/bngblaster/src/bbl_protocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -2315,6 +2315,7 @@ encode_ethernet(uint8_t *buf, uint16_t *len,
/* Add labels ... */
mpls = eth->mpls;
while(mpls) {
*(uint32_t*)buf = 0;
*(buf+2) = mpls->exp << 1;
*(buf+3) = mpls->ttl;
*(uint32_t*)buf |= htobe32(mpls->label << 12);
Expand Down

0 comments on commit 1aa3bf4

Please sign in to comment.