Deleted Added
full compact
link.c (47211) link.c (47695)
1/*-
2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $Id: link.c,v 1.10 1999/05/12 09:48:51 brian Exp $
26 * $Id: link.c,v 1.11 1999/05/15 02:24:18 brian Exp $
27 *
28 */
29
30#include <sys/types.h>
31#include <netinet/in_systm.h>
32#include <netdb.h>
33#include <sys/un.h>
34#include <netinet/in.h>

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

240 * through anything; this ensures that packets that depend on the
241 * fsm state resulting from the receipt of the previous packet aren't
242 * surprised.
243 */
244
245 link_AddInOctets(l, len);
246
247 memset(lbp, '\0', sizeof lbp);
27 *
28 */
29
30#include <sys/types.h>
31#include <netinet/in_systm.h>
32#include <netdb.h>
33#include <sys/un.h>
34#include <netinet/in.h>

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

240 * through anything; this ensures that packets that depend on the
241 * fsm state resulting from the receipt of the previous packet aren't
242 * surprised.
243 */
244
245 link_AddInOctets(l, len);
246
247 memset(lbp, '\0', sizeof lbp);
248 lbp[0] = mbuf_Alloc(len, MB_ASYNC);
248 lbp[0] = mbuf_Alloc(len, MB_UNKNOWN);
249 memcpy(MBUF_CTOP(lbp[0]), buf, len);
250 lproto[0] = 0;
251 layer = 0;
252
253 while (layer || lbp[layer]) {
254 if (lbp[layer] == NULL) {
255 layer--;
256 continue;

--- 101 unchanged lines hidden ---
249 memcpy(MBUF_CTOP(lbp[0]), buf, len);
250 lproto[0] = 0;
251 layer = 0;
252
253 while (layer || lbp[layer]) {
254 if (lbp[layer] == NULL) {
255 layer--;
256 continue;

--- 101 unchanged lines hidden ---