mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
ipfw: fix order of memcpy arguments.
This fixes `ipfw table N lookup addr` command for MAC tables. (cherry picked from commit e012d79c9c732a6aef21066feba2e5e48833cca4)
This commit is contained in:
parent
b5eb77a6ad
commit
bc7c938f18
1 changed files with 1 additions and 1 deletions
|
|
@ -4306,7 +4306,7 @@ ta_find_mac_radix_tentry(void *ta_state, struct table_info *ti,
|
|||
if (tent->subtype == AF_LINK) {
|
||||
struct sa_mac sa;
|
||||
KEY_LEN(sa) = KEY_LEN_MAC;
|
||||
memcpy(tent->k.mac, sa.mac_addr.octet, ETHER_ADDR_LEN);
|
||||
memcpy(sa.mac_addr.octet, tent->k.mac, ETHER_ADDR_LEN);
|
||||
rnh = (struct radix_node_head *)ti->state;
|
||||
e = rnh->rnh_matchaddr(&sa, &rnh->rh);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue