diff options
author | julian <julian@FreeBSD.org> | 2004-06-25 19:22:05 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2004-06-25 19:22:05 +0000 |
commit | dfb6d511956c2a209c86265e60dde6f108cf61b3 (patch) | |
tree | e6486f45de5c63b28a090942d8f046694d0329cb /sys/netgraph/ng_ksocket.h | |
parent | d754d951b906e8d0c99ea9917952cdfb8c5c9378 (diff) | |
download | FreeBSD-src-dfb6d511956c2a209c86265e60dde6f108cf61b3.zip FreeBSD-src-dfb6d511956c2a209c86265e60dde6f108cf61b3.tar.gz |
Convert Netgraph to use mbuf tags to pass its meta information around.
Thanks to Sam for importing tags in a way that allowed this to be done.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
Also allow the sr and ar drivers to create netgraph versions of their modules.
Document the change to the ksocket node.
Diffstat (limited to 'sys/netgraph/ng_ksocket.h')
-rw-r--r-- | sys/netgraph/ng_ksocket.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netgraph/ng_ksocket.h b/sys/netgraph/ng_ksocket.h index cad5164..d9d1932 100644 --- a/sys/netgraph/ng_ksocket.h +++ b/sys/netgraph/ng_ksocket.h @@ -94,7 +94,13 @@ enum { NGM_KSOCKET_GETOPT, }; -/* Meta information ID's */ -#define NG_KSOCKET_META_SOCKADDR 1 /* data is struct sockaddr */ +/* Structure for sockaddr tag */ +struct sa_tag { + struct m_tag tag; + struct sockaddr sa; +}; + +/* Tag information ID's */ +#define NG_KSOCKET_TAG_SOCKADDR 1 /* data is struct sockaddr */ #endif /* _NETGRAPH_NG_KSOCKET_H_ */ |