}
+/**
+ * Get next PID to use.
+ *
+ * @param c Connection.
+ * @param fwd Is query about FWD traffic?
+ *
+ * @return Last PID used + 1.
+ */
+unsigned int
+GMC_get_pid (struct MeshConnection *c, int fwd)
+{
+ struct MeshFlowControl *fc;
+
+ fc = fwd ? &c->fwd_fc : &c->bck_fc;
+
+ return fc->last_pid_sent + 1;
+}
+
+
/**
* Allow the connection to advertise a buffer of the given size.
*
unsigned int
GMC_get_qn (struct MeshConnection *c, int fwd);
+/**
+ * Get next PID to use.
+ *
+ * @param c Connection.
+ * @param fwd Is query about FWD traffic?
+ *
+ * @return Last PID used + 1.
+ */
+unsigned int
+GMC_get_pid (struct MeshConnection *c, int fwd);
+
/**
* Allow the connection to advertise a buffer of the given size.
*