Thread (46 messages) 46 messages, 4 authors, 2010-02-02

RE: [PATCH net-next-2.6 02/13] net-caif: add CAIF header files

From: Sjur Brændeland <hidden>
Date: 2010-01-22 10:54:23

Hi Patrick.

Patrick McHardy wrote:
sjur.brandeland@stericsson.com wrote:
quoted
+/**
+ * enum ifla_caif
+ * When using RT Netlink to create, destroy or configure a CAIF IP
+interface, + * enum ifla_caif is used to specify the configuration
attributes. + * + * @IFLA_CAIF_IPV4_CONNID:  Connection ID for IPv4
PDP Context. + *			    The type of attribute is NLA_U32.
+ * @IFLA_CAIF_IPV6_CONNID:  Connection ID for IPv6 PDP Context.
+ *			    The type of attribute is NLA_U32.
+ * @IFLA_CAIF_LOOPBACK:	    If different from zero, device is doing
loopback + *			    The type of attribute is NLA_U8.
+ */
+enum ifla_caif {
+	IFLA_CAIF_IPV4_CONNID,
+	IFLA_CAIF_IPV6_CONNID,
+	IFLA_CAIF_LOOPBACK,
+	__IFLA_CAIF_MAX
+};
+#define	IFLA_CAIF_MAX (__IFLA_CAIF_MAX-1)
+
+#endif /*IF_CAIF_H_*/
You should add an IFLA_CAIF_UNSPEC at the beginning, some of the
nlattr helpers skip attributes with a value of zero. 
OK, thanks. I'll fix this in the next patch set.

BR/Sjur
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help