if_spppfr.c (139823) | if_spppfr.c (147256) |
---|---|
1/*- 2 * Synchronous Frame Relay link level subroutines. 3 * ANSI T1.617-compaible link management signaling 4 * implemented for Frame Relay mode. 5 * Cisco-type Frame Relay framing added, thanks Alex Tutubalin. 6 * Only one DLCI per channel for now. 7 * 8 * Copyright (C) 1994-2000 Cronyx Engineering. --- 6 unchanged lines hidden (view full) --- 15 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * Authors grant any other persons or organisations a permission to use, 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * $Cronyx Id: if_spppfr.c,v 1.1.2.10 2004/06/29 09:02:30 rik Exp $ | 1/*- 2 * Synchronous Frame Relay link level subroutines. 3 * ANSI T1.617-compaible link management signaling 4 * implemented for Frame Relay mode. 5 * Cisco-type Frame Relay framing added, thanks Alex Tutubalin. 6 * Only one DLCI per channel for now. 7 * 8 * Copyright (C) 1994-2000 Cronyx Engineering. --- 6 unchanged lines hidden (view full) --- 15 * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * Authors grant any other persons or organisations a permission to use, 18 * modify and redistribute this software in source and binary forms, 19 * as long as this message is kept with the software, all derivative 20 * works or modified versions. 21 * 22 * $Cronyx Id: if_spppfr.c,v 1.1.2.10 2004/06/29 09:02:30 rik Exp $ |
23 * $FreeBSD: head/sys/net/if_spppfr.c 139823 2005-01-07 01:45:51Z imp $ | 23 * $FreeBSD: head/sys/net/if_spppfr.c 147256 2005-06-10 16:49:24Z brooks $ |
24 */ 25 26#include <sys/param.h> 27 28#if defined(__FreeBSD__) && __FreeBSD__ >= 3 29#include "opt_inet.h" 30#include "opt_inet6.h" 31#include "opt_ipx.h" --- 122 unchanged lines hidden (view full) --- 154#define SPP_ARGS(ifp) (ifp)->if_name, (ifp)->if_unit 155#else 156#define SPP_FMT "%s: " 157#define SPP_ARGS(ifp) (ifp)->if_xname 158#endif 159 160/* almost every function needs these */ 161#define STDDCL \ | 24 */ 25 26#include <sys/param.h> 27 28#if defined(__FreeBSD__) && __FreeBSD__ >= 3 29#include "opt_inet.h" 30#include "opt_inet6.h" 31#include "opt_ipx.h" --- 122 unchanged lines hidden (view full) --- 154#define SPP_ARGS(ifp) (ifp)->if_name, (ifp)->if_unit 155#else 156#define SPP_FMT "%s: " 157#define SPP_ARGS(ifp) (ifp)->if_xname 158#endif 159 160/* almost every function needs these */ 161#define STDDCL \ |
162 struct ifnet *ifp = &sp->pp_if; \ | 162 struct ifnet *ifp = SP2IFP(sp); \ |
163 int debug = ifp->if_flags & IFF_DEBUG 164 165static void sppp_fr_arp (struct sppp *sp, struct arp_req *req, u_short addr); 166static void sppp_fr_signal (struct sppp *sp, unsigned char *h, int len); 167 168void sppp_fr_input (struct sppp *sp, struct mbuf *m) 169{ 170 STDDCL; --- 464 unchanged lines hidden --- | 163 int debug = ifp->if_flags & IFF_DEBUG 164 165static void sppp_fr_arp (struct sppp *sp, struct arp_req *req, u_short addr); 166static void sppp_fr_signal (struct sppp *sp, unsigned char *h, int len); 167 168void sppp_fr_input (struct sppp *sp, struct mbuf *m) 169{ 170 STDDCL; --- 464 unchanged lines hidden --- |