Module Name: src
Committed By: msaitoh
Date: Mon Oct 24 07:45:44 UTC 2022
Modified Files:
src/sys/net: if_dl.h
Log Message:
Increase sdl_data so that more then IFNAMSIZ bytes are available.
- Increase the size of dl_data[] from 12 to 24.
- Same as OpenBSD.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/net/if_dl.h
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_dl.h
diff -u src/sys/net/if_dl.h:1.28 src/sys/net/if_dl.h:1.29
--- src/sys/net/if_dl.h:1.28 Tue Apr 30 20:55:41 2019
+++ src/sys/net/if_dl.h Mon Oct 24 07:45:44 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: if_dl.h,v 1.28 2019/04/30 20:55:41 kre Exp $ */
+/* $NetBSD: if_dl.h,v 1.29 2022/10/24 07:45:44 msaitoh Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -68,11 +68,11 @@ struct dl_addr {
uint8_t dl_nlen; /* interface name length, no trailing 0 reqd. */
uint8_t dl_alen; /* link level address length */
uint8_t dl_slen; /* link layer selector length */
- /*
- * minimum work area, can be larger; contains both if name
- * and ll address
- */
- char dl_data[12];
+ char dl_data[24]; /*
+ * minimum work area, can be larger; contains
+ * both if name and ll address; big enough for
+ * IFNAMSIZ plus 8byte ll addr
+ */
};
/*