tun.c (9edd576d89a5b6d3e136d7dcab654d887c0d25b7) tun.c (f2cedb63df14342ad40a8b5b324fc5d94a60b665)
1/*
2 * TUN - Universal TUN/TAP device driver.
3 * Copyright (C) 1999-2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 517 unchanged lines hidden (view full) ---

526 break;
527
528 case TUN_TAP_DEV:
529 dev->netdev_ops = &tap_netdev_ops;
530 /* Ethernet TAP Device */
531 ether_setup(dev);
532 dev->priv_flags &= ~IFF_TX_SKB_SHARING;
533
1/*
2 * TUN - Universal TUN/TAP device driver.
3 * Copyright (C) 1999-2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

--- 517 unchanged lines hidden (view full) ---

526 break;
527
528 case TUN_TAP_DEV:
529 dev->netdev_ops = &tap_netdev_ops;
530 /* Ethernet TAP Device */
531 ether_setup(dev);
532 dev->priv_flags &= ~IFF_TX_SKB_SHARING;
533
534 random_ether_addr(dev->dev_addr);
534 eth_hw_addr_random(dev);
535
536 dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */
537 break;
538 }
539}
540
541/* Character device part */
542

--- 1145 unchanged lines hidden ---
535
536 dev->tx_queue_len = TUN_READQ_SIZE; /* We prefer our own queue length */
537 break;
538 }
539}
540
541/* Character device part */
542

--- 1145 unchanged lines hidden ---