RTP add vlan set.

Change-Id: Ia0b72f2d21759b932f5737e694a5badcc0e9cffc
diff --git a/mbtk/libmbtk_lib/rtp/mbtk_rtp.c b/mbtk/libmbtk_lib/rtp/mbtk_rtp.c
index 961b9c5..58d1077 100755
--- a/mbtk/libmbtk_lib/rtp/mbtk_rtp.c
+++ b/mbtk/libmbtk_lib/rtp/mbtk_rtp.c
@@ -192,6 +192,36 @@
     }
 }
 
+int mbtk_rtp_vlan_set(const char *vlan)
+{
+    if(rtp_cli_fd < 0) {
+        LOGW("RTP client not inited.");
+        return -1;
+    }
+
+    if(str_empty(vlan)) {
+        LOGE("vlan is empty.");
+        return -1;
+    }
+
+    char cmd[100] = {0};
+    char rsp[100] = {0};
+    snprintf(cmd, sizeof(cmd), "vlan %s", vlan); // vlan <dev>
+    char *result = rtp_cmd_exec(cmd, rsp, sizeof(rsp));
+    if(!result) {
+        return -1;
+    }
+
+    // vlan:<err>
+    if(strcmp(result, "vlan:0") == 0) {
+        return 0;
+    } else {
+        LOGE("CMD exec error:%s", result);
+        return -1;
+    }
+}
+
+
 int mbtk_rtp_server_port_set(int port)
 {
     if(rtp_cli_fd < 0) {