Refactor xfrmcontroller with std vector iovec

Bug: 64727038
Test: runtest -x tests/netd_integration_test.cpp
Change-Id: Ib7aad44483f4a249b2358d94e3639b19e48c2e8d
diff --git a/server/XfrmController.h b/server/XfrmController.h
index 904ae88..fdad82f 100644
--- a/server/XfrmController.h
+++ b/server/XfrmController.h
@@ -57,8 +57,10 @@
 
     virtual ~XfrmSocket() { close(); }
 
+    // Sends the netlink message contained in iovecs. This populates iovecs[0] with
+    // a valid netlink message header.
     virtual int sendMessage(uint16_t nlMsgType, uint16_t nlMsgFlags, uint16_t nlMsgSeqNum,
-                            iovec* iov, int iovLen) const = 0;
+                            std::vector<iovec>* iovecs) const = 0;
 
 protected:
     int mSock;