Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Increase sdl_data so that more then IFNAMSIZ bytes a...



details:   https://anonhg.NetBSD.org/src/rev/88b561bb7a68
branches:  trunk
changeset: 371990:88b561bb7a68
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Oct 24 07:45:44 2022 +0000

description:
Increase sdl_data so that more then IFNAMSIZ bytes are available.

 - Increase the size of dl_data[] from 12 to 24.
 - Same as OpenBSD.

diffstat:

 sys/net/if_dl.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r f9007911e750 -r 88b561bb7a68 sys/net/if_dl.h
--- a/sys/net/if_dl.h   Mon Oct 24 05:52:48 2022 +0000
+++ b/sys/net/if_dl.h   Mon Oct 24 07:45:44 2022 +0000
@@ -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 @@
        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
+                                 */
 };
 
 /*



Home | Main Index | Thread Index | Old Index