Source-Changes-HG archive

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

[src/trunk]: src/sys/net Add a list of names



details:   https://anonhg.NetBSD.org/src/rev/2cff1d89ef5e
branches:  trunk
changeset: 953865:2cff1d89ef5e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 22 18:40:18 2021 +0000

description:
Add a list of names

diffstat:

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

diffs (26 lines):

diff -r 1788b6200cdb -r 2cff1d89ef5e sys/net/route.h
--- a/sys/net/route.h   Mon Mar 22 16:51:24 2021 +0000
+++ b/sys/net/route.h   Mon Mar 22 18:40:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.127 2020/03/09 21:20:55 roy Exp $  */
+/*     $NetBSD: route.h,v 1.128 2021/03/22 18:40:18 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -266,6 +266,16 @@
 #define RTM_DELADDR    0x17    /* address being removed from iface */
 #define RTM_CHGADDR    0x18    /* address properties changed */
 
+#ifdef RTM_NAMES
+static const char *rtm_names[] = {
+    "*none*", "add", "delete", "change", "get",
+    "losing", "redirect", "miss", "lock", "oldadd",
+    "olddel", "*resolve*", "onewaddr", "odeladdr", "ooifinfo",
+    "oifinfo", "ifannounce", "ieee80211", "setgate", "llinfo_upd",
+    "ifinfo", "ochgaddr",  "newaddr", "deladdr", "chgaddr",
+};
+#endif
+
 /*
  * setsockopt defines used for the filtering.
  */



Home | Main Index | Thread Index | Old Index