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/32fa39e15ce5
branches:  trunk
changeset: 960604:32fa39e15ce5
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 4ac9e3b1f956 -r 32fa39e15ce5 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