Source-Changes-HG archive

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

[src/bouyer-socketcan]: src/sys/sys Add PACKET_TAG_SO tag type, so store a po...



details:   https://anonhg.NetBSD.org/src/rev/c5876f0347ec
branches:  bouyer-socketcan
changeset: 820807:c5876f0347ec
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Jan 16 18:02:00 2017 +0000

description:
Add PACKET_TAG_SO tag type, so store a pointer the sender struct socket.

diffstat:

 sys/sys/mbuf.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r a7579fd671ef -r c5876f0347ec sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Sun Jan 15 21:01:34 2017 +0000
+++ b/sys/sys/mbuf.h    Mon Jan 16 18:02:00 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mbuf.h,v 1.167 2016/10/04 14:13:21 christos Exp $      */
+/*     $NetBSD: mbuf.h,v 1.167.2.1 2017/01/16 18:02:00 bouyer Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -897,6 +897,7 @@
 #define PACKET_TAG_VLAN                                1  /* VLAN ID */
 #define PACKET_TAG_ENCAP                       2  /* encapsulation data */
 #define PACKET_TAG_ESP                         3  /* ESP information */
+#define PACKET_TAG_SO                          4  /* sending socket pointer */
 #define PACKET_TAG_PF                          11 /* packet filter */
 #define PACKET_TAG_ALTQ_QID                    12 /* ALTQ queue id */
 



Home | Main Index | Thread Index | Old Index