summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOctavian Purdila <opurdila@ixiacom.com>2009-12-26 11:51:00 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-26 20:40:34 -0800
commite5cd6fe391aa8c93560bb7ffdfe334cf4d0a02e4 (patch)
tree018cf6c943ba0292c33118920a356a0b0a31e00d /include
parentbf9ae5386bca8836c16e69ab8fdbe46767d7452a (diff)
downloadblackbird-op-linux-e5cd6fe391aa8c93560bb7ffdfe334cf4d0a02e4.tar.gz
blackbird-op-linux-e5cd6fe391aa8c93560bb7ffdfe334cf4d0a02e4.zip
llc: add support for LLC_OPT_PKTINFO
Signed-off-by: Octavian Purdila <opurdila@ixiacom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/llc.h7
-rw-r--r--include/net/llc_conn.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/llc.h b/include/linux/llc.h
index 7733585603f1..ad7074ba81af 100644
--- a/include/linux/llc.h
+++ b/include/linux/llc.h
@@ -36,6 +36,7 @@ enum llc_sockopts {
LLC_OPT_BUSY_TMR_EXP, /* busy state expire time (secs). */
LLC_OPT_TX_WIN, /* tx window size. */
LLC_OPT_RX_WIN, /* rx window size. */
+ LLC_OPT_PKTINFO, /* ancillary packet information. */
LLC_OPT_MAX
};
@@ -70,6 +71,12 @@ enum llc_sockopts {
#define LLC_SAP_RM 0xD4 /* Resource Management */
#define LLC_SAP_GLOBAL 0xFF /* Global SAP. */
+struct llc_pktinfo {
+ int lpi_ifindex;
+ unsigned char lpi_sap;
+ unsigned char lpi_mac[IFHWADDRLEN];
+};
+
#ifdef __KERNEL__
#define LLC_SAP_DYN_START 0xC0
#define LLC_SAP_DYN_STOP 0xDE
diff --git a/include/net/llc_conn.h b/include/net/llc_conn.h
index e2374e34989f..fe982fd94c4a 100644
--- a/include/net/llc_conn.h
+++ b/include/net/llc_conn.h
@@ -76,6 +76,7 @@ struct llc_sock {
u32 rx_pdu_hdr; /* used for saving header of last pdu
received and caused sending FRMR.
Used for resending FRMR */
+ u32 cmsg_flags;
};
static inline struct llc_sock *llc_sk(const struct sock *sk)
OpenPOWER on IntegriCloud