Skip to content

Commit fbcf3ad

Browse files
committed
destination-mac minor changes
1 parent b1f99a9 commit fbcf3ad

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

code/bngblaster/src/bbl_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,7 @@ json_parse_stream(json_t *stream, bbl_stream_config_s *stream_config)
28692869
fprintf(stderr, "JSON config error: Invalid value for stream->destination-mac\n");
28702870
return false;
28712871
}
2872-
stream_config->destination_mac_set = true;
2872+
stream_config->destination_mac_overwrite = true;
28732873
}
28742874

28752875
/* Set DF bit for IPv4 traffic (default true) */

code/bngblaster/src/bbl_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ bbl_stream_build_network_packet(bbl_stream_s *stream)
838838
return false;
839839
}
840840

841-
if(config->destination_mac_set) {
841+
if(config->destination_mac_overwrite) {
842842
eth.dst = config->destination_mac;
843843
}
844844

code/bngblaster/src/bbl_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ typedef struct bbl_stream_config_
6060
uint32_t ipv4_destination_address; /* overwrite IPv4 destination address */
6161
ipv6addr_t ipv6_destination_address; /* overwrite IPv6 destination address */
6262
uint8_t destination_mac[ETH_ADDR_LEN]; /* overwrite destination MAC address */
63-
bool destination_mac_set;
63+
bool destination_mac_overwrite;
6464
char *network_interface;
6565
char *a10nsp_interface;
6666

docsrc/sources/configuration/streams.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
+--------------------------------+------------------------------------------------------------------+
9898
| **network-interface** | | Select the corresponding network interface for this stream. |
9999
+--------------------------------+------------------------------------------------------------------+
100-
| **destination-mac** | | Overwrite network interface MAC address. |
100+
| **destination-mac** | | Overwrite destination MAC address (downstream only). |
101101
+--------------------------------+------------------------------------------------------------------+
102102
| **network-ipv4-address** | | Overwrite network interface IPv4 address. |
103103
+--------------------------------+------------------------------------------------------------------+

0 commit comments

Comments
 (0)