+int nl_sock_fd(const struct nl_sock *);
+
+uint32_t nl_sock_pid(const struct nl_sock *);
+
+/* Batching transactions. */
+struct nl_transaction {
+ /* Filled in by client. */
+ struct ofpbuf *request; /* Request to send. */
+
+ /* The client must initialize 'reply' to one of:
+ *
+ * - NULL, if it does not care to examine the reply.
+ *
+ * - Otherwise, to an ofpbuf with a memory allocation of at least
+ * NLMSG_HDRLEN bytes.
+ */
+ struct ofpbuf *reply; /* Reply (empty if reply was an error code). */
+ int error; /* Positive errno value, 0 if no error. */
+};
+
+void nl_sock_transact_multiple(struct nl_sock *,
+ struct nl_transaction **, size_t n);
+
+/* Transactions without an allocated socket. */
+int nl_transact(int protocol, const struct ofpbuf *request,
+ struct ofpbuf **replyp);
+void nl_transact_multiple(int protocol, struct nl_transaction **, size_t n);