OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <errno.h> |
5 #include <fcntl.h> | 6 #include <fcntl.h> |
6 #include <linux/if_tun.h> | 7 #include <linux/if_tun.h> |
7 #include <linux/types.h> | 8 #include <linux/types.h> |
8 #include <math.h> | 9 #include <math.h> |
9 #include <net/if.h> | 10 #include <net/if.h> |
10 #include <netinet/in.h> | 11 #include <netinet/in.h> |
11 #include <stdio.h> | 12 #include <stdio.h> |
12 #include <stdlib.h> | 13 #include <stdlib.h> |
13 #include <sys/ioctl.h> | 14 #include <sys/ioctl.h> |
14 #include <sys/stat.h> | 15 #include <sys/stat.h> |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 int fd2 = tun_alloc(argv[2], IFF_TAP); | 308 int fd2 = tun_alloc(argv[2], IFF_TAP); |
308 | 309 |
309 base::MessageLoopForIO message_loop; | 310 base::MessageLoopForIO message_loop; |
310 last_printout = base::TimeTicks::Now(); | 311 last_printout = base::TimeTicks::Now(); |
311 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass()); | 312 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass()); |
312 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass()); | 313 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass()); |
313 CheckByteCounters(); | 314 CheckByteCounters(); |
314 printf("Press Ctrl-C when done.\n"); | 315 printf("Press Ctrl-C when done.\n"); |
315 message_loop.Run(); | 316 message_loop.Run(); |
316 } | 317 } |
OLD | NEW |