Module Name: src Committed By: mlelstv Date: Sat Sep 28 09:01:37 UTC 2024
Modified Files: src/sys/net: if_ethersubr.c Log Message: comment, whitespace. To generate a diff of this commit: cvs rdiff -u -r1.327 -r1.328 src/sys/net/if_ethersubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_ethersubr.c diff -u src/sys/net/if_ethersubr.c:1.327 src/sys/net/if_ethersubr.c:1.328 --- src/sys/net/if_ethersubr.c:1.327 Fri Jul 5 04:31:53 2024 +++ src/sys/net/if_ethersubr.c Sat Sep 28 09:01:37 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ethersubr.c,v 1.327 2024/07/05 04:31:53 rin Exp $ */ +/* $NetBSD: if_ethersubr.c,v 1.328 2024/09/28 09:01:37 mlelstv Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.327 2024/07/05 04:31:53 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.328 2024/09/28 09:01:37 mlelstv Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -423,7 +423,8 @@ ether_output(struct ifnet * const ifp0, #if NCARP > 0 if (ifp0 != ifp && ifp0->if_type == IFT_CARP) { - memcpy(eh->ether_shost, CLLADDR(ifp0->if_sadl), + /* update with virtual MAC */ + memcpy(eh->ether_shost, CLLADDR(ifp0->if_sadl), sizeof(eh->ether_shost)); } #endif