diff options
author | archie <archie@FreeBSD.org> | 2001-11-28 19:39:58 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2001-11-28 19:39:58 +0000 |
commit | 5ede7a3e25680029d8ae5518ff9a6f1a1542a512 (patch) | |
tree | 0a894e57a068629aae32b884b5997e7017796cb9 /sys/netgraph/ng_ksocket.h | |
parent | 131d4937c052fb318f46eb59e2116c99268f455a (diff) | |
download | FreeBSD-src-5ede7a3e25680029d8ae5518ff9a6f1a1542a512.zip FreeBSD-src-5ede7a3e25680029d8ae5518ff9a6f1a1542a512.tar.gz |
When a socket is not connected, allow the peer "struct sockaddr"
to be included in the meta information that is associated with
incoming and outgoing packets.
Reviewed by: julian
MFC after: 1 week
Diffstat (limited to 'sys/netgraph/ng_ksocket.h')
-rw-r--r-- | sys/netgraph/ng_ksocket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ksocket.h b/sys/netgraph/ng_ksocket.h index efb65aa..6caf752 100644 --- a/sys/netgraph/ng_ksocket.h +++ b/sys/netgraph/ng_ksocket.h @@ -98,4 +98,7 @@ enum { NGM_KSOCKET_GETOPT, }; +/* Meta information ID's */ +#define NG_KSOCKET_META_SOCKADDR 1 /* data is struct sockaddr */ + #endif /* _NETGRAPH_KSOCKET_H_ */ |