1/* 2 * Written by Eivind Eklund <eivind@yes.no> 3 * for Yes Interactive 4 * 5 * Copyright (C) 1998, Yes Interactive. All rights reserved. 6 * 7 * Redistribution and use in any form is permitted. Redistribution in 8 * source form should include the above copyright and this set of 9 * conditions, because large sections american law seems to have been 10 * created by a bunch of jerks on drugs that are now illegal, forcing 11 * me to include this copyright-stuff instead of placing this in the 12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund' 13 * may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 * |
19 * $FreeBSD: head/usr.sbin/ppp/physical.c 179315 2008-05-26 10:40:09Z bz $ |
20 * 21 */ 22 23#include <sys/param.h> 24#include <netinet/in.h> 25#include <netinet/in_systm.h> 26#include <netinet/ip.h> 27#include <sys/socket.h> --- 64 unchanged lines hidden (view full) --- 92#include "main.h" 93#include "chap.h" 94#include "cbcp.h" 95#include "datalink.h" 96#include "tcp.h" 97#include "udp.h" 98#include "exec.h" 99#include "tty.h" |
100#ifndef NONETGRAPH 101#include "ether.h" 102#include "netgraph.h" 103#endif 104#ifndef NOATM 105#include "atm.h" 106#endif 107#include "tcpmss.h" --- 10 unchanged lines hidden (view full) --- 118} 119 120struct { 121 struct device *(*create)(struct physical *); 122 struct device *(*iov2device)(int, struct physical *, struct iovec *, 123 int *, int, int *, int *); 124 unsigned (*DeviceSize)(void); 125} devices[] = { |
126 { tty_Create, tty_iov2device, tty_DeviceSize }, 127#ifndef NONETGRAPH 128 /* 129 * This must come before ``udp'' so that the probe routine is 130 * able to identify it as a more specific type of SOCK_DGRAM. 131 */ 132 { ether_Create, ether_iov2device, ether_DeviceSize }, 133#ifdef EXPERIMENTAL_NETGRAPH --- 1007 unchanged lines hidden --- |