Deleted Added
full compact
if_tun.h (20098) if_tun.h (20559)
1/* $NetBSD: if_tun.h,v 1.5 1994/06/29 06:36:27 cgd Exp $ */
2
3/*
4 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
5 * Nottingham University 1987.
6 *
7 * This source may be freely distributed, however I would be interested
8 * in any changes that are made.

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

33#define TUN_READY (TUN_OPEN | TUN_INITED)
34
35 struct ifnet tun_if; /* the interface */
36 int tun_pgrp; /* the process group - if any */
37 struct selinfo tun_rsel; /* read select */
38 struct selinfo tun_wsel; /* write select (not used) */
39};
40
1/* $NetBSD: if_tun.h,v 1.5 1994/06/29 06:36:27 cgd Exp $ */
2
3/*
4 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
5 * Nottingham University 1987.
6 *
7 * This source may be freely distributed, however I would be interested
8 * in any changes that are made.

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

33#define TUN_READY (TUN_OPEN | TUN_INITED)
34
35 struct ifnet tun_if; /* the interface */
36 int tun_pgrp; /* the process group - if any */
37 struct selinfo tun_rsel; /* read select */
38 struct selinfo tun_wsel; /* write select (not used) */
39};
40
41/* Maximum packet size */
42#define TUNMTU 1600
41/* Default maximum packet size */
42#define TUNMTU 1500
43
44struct tuninfo {
45 int baudrate; /* linespeed */
46 short mtu; /* maximum transmission unit */
47 u_char type; /* ethernet, tokenring, etc. */
48 u_char dummy; /* place holder */
49};
50
51/* ioctl's for get/set debug */
52#define TUNSDEBUG _IOW('t', 90, int)
53#define TUNGDEBUG _IOR('t', 89, int)
54#define TUNSIFINFO _IOW('t', 91, struct tuninfo)
55#define TUNGIFINFO _IOR('t', 92, struct tuninfo)
56
57#endif /* !_NET_IF_TUN_H_ */
43
44struct tuninfo {
45 int baudrate; /* linespeed */
46 short mtu; /* maximum transmission unit */
47 u_char type; /* ethernet, tokenring, etc. */
48 u_char dummy; /* place holder */
49};
50
51/* ioctl's for get/set debug */
52#define TUNSDEBUG _IOW('t', 90, int)
53#define TUNGDEBUG _IOR('t', 89, int)
54#define TUNSIFINFO _IOW('t', 91, struct tuninfo)
55#define TUNGIFINFO _IOR('t', 92, struct tuninfo)
56
57#endif /* !_NET_IF_TUN_H_ */