Skip to content

Commit 0fcd397

Browse files
committed
net: Fix return Ethernet type by-value
1 parent 9fc73f9 commit 0fcd397

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/net/ethernet/header.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1515
// See the License for the specific language governing permissions and
1616
// limitations under the License.
17-
#pragma once
1817

18+
#pragma once
1919
#ifndef NET_ETHERNET_HEADER_HPP
2020
#define NET_ETHERNET_HEADER_HPP
2121

@@ -40,7 +40,7 @@ class Header {
4040
const MAC::Addr& src() const noexcept
4141
{ return src_; }
4242

43-
const Ethertype& type() const noexcept
43+
Ethertype type() const noexcept
4444
{ return type_; }
4545

4646
void set_dest(const MAC::Addr& dest)

0 commit comments

Comments
 (0)