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 <errno.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <linux/if_tun.h> | 7 #include <linux/if_tun.h> |
8 #include <linux/types.h> | 8 #include <linux/types.h> |
9 #include <math.h> | 9 #include <math.h> |
10 #include <net/if.h> | 10 #include <net/if.h> |
11 #include <netinet/in.h> | 11 #include <netinet/in.h> |
| 12 #include <stddef.h> |
| 13 #include <stdint.h> |
12 #include <stdio.h> | 14 #include <stdio.h> |
13 #include <stdlib.h> | 15 #include <stdlib.h> |
14 #include <sys/ioctl.h> | 16 #include <sys/ioctl.h> |
15 #include <sys/stat.h> | 17 #include <sys/stat.h> |
16 #include <sys/types.h> | 18 #include <sys/types.h> |
17 #include <unistd.h> | 19 #include <unistd.h> |
18 | 20 |
19 #include <deque> | 21 #include <deque> |
20 #include <map> | 22 #include <map> |
21 | 23 |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 int fd2 = tun_alloc(argv[2], IFF_TAP); | 310 int fd2 = tun_alloc(argv[2], IFF_TAP); |
309 | 311 |
310 base::MessageLoopForIO message_loop; | 312 base::MessageLoopForIO message_loop; |
311 last_printout = base::TimeTicks::Now(); | 313 last_printout = base::TimeTicks::Now(); |
312 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass()); | 314 media::cast::test::QueueManager qm1(fd1, fd2, in_pipe.Pass()); |
313 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass()); | 315 media::cast::test::QueueManager qm2(fd2, fd1, out_pipe.Pass()); |
314 CheckByteCounters(); | 316 CheckByteCounters(); |
315 printf("Press Ctrl-C when done.\n"); | 317 printf("Press Ctrl-C when done.\n"); |
316 message_loop.Run(); | 318 message_loop.Run(); |
317 } | 319 } |
OLD | NEW |