X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=lib%2Frstp-state-machines.c;h=9768e4636ec9bd611ef7f754dcd0bb2c2f09383a;hb=968eec593cc61690c9e0ed97450c4889258381af;hp=f55221f3f9ab0cc1a058bd9638593693356acda1;hpb=82eb5b0abaf0125898a89e032f27fdd08e03169b;p=cascardo%2Fovs.git diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c index f55221f3f..9768e4636 100644 --- a/lib/rstp-state-machines.c +++ b/lib/rstp-state-machines.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014 M3S, Srl - Italy + * Copyright (c) 2011-2015 M3S, Srl - Italy * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ * Authors: * Martino Fornasa * Daniele Venturino + * Carlo Andreotti * * References to IEEE 802.1D-2004 standard are enclosed in square brackets. * E.g. [17.3], [Table 17-1], etc. @@ -700,7 +701,7 @@ rstp_send_bpdu(struct rstp_port *p, const void *bpdu, size_t bpdu_size) dp_packet_set_l3(pkt, dp_packet_put(pkt, bpdu, bpdu_size)); /* 802.2 header. */ - memcpy(eth->eth_dst, eth_addr_stp, ETH_ADDR_LEN); + eth->eth_dst = eth_addr_stp; /* p->rstp->send_bpdu() must fill in source address. */ eth->eth_type = htons(dp_packet_size(pkt) - ETH_HEADER_LEN);