summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/tun.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/tun.h')
-rw-r--r--usr.sbin/ppp/tun.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/tun.h b/usr.sbin/ppp/tun.h
index 5458f1f178e..6a9bcab1ceb 100644
--- a/usr.sbin/ppp/tun.h
+++ b/usr.sbin/ppp/tun.h
@@ -23,19 +23,19 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: tun.h,v 1.2 1997/12/21 14:27:20 brian Exp $
+ * $Id: tun.h,v 1.3 1998/06/26 09:14:46 deraadt Exp $
*/
struct tun_data {
#ifdef __OpenBSD__
- struct tunnel_header head;
+ u_int32_t head;
#endif
u_char data[MAX_MRU];
};
#ifdef __OpenBSD__
-#define tun_fill_header(f,proto) do { (f).head.tun_af = (proto); } while (0)
-#define tun_check_header(f,proto) ((f).head.tun_af == (proto))
+#define tun_fill_header(f,proto) do { (f).head = htonl(proto); } while (0)
+#define tun_check_header(f,proto) ((f).head == htonl(proto))
#else
#define tun_fill_header(f,proto) do { } while (0)
#define tun_check_header(f,proto) (1)