llc_shdlc.c (d58ff35122847a83ba55394e2ae3a1527b6febf5) llc_shdlc.c (634fef61076d644b989b86abc2f560d81a089a31)
1/*
2 * shdlc Link Layer Control
3 *
4 * Copyright (C) 2012 Intel Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

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

377 struct sk_buff *skb;
378
379 pr_debug("\n");
380
381 skb = llc_shdlc_alloc_skb(shdlc, 2);
382 if (skb == NULL)
383 return -ENOMEM;
384
1/*
2 * shdlc Link Layer Control
3 *
4 * Copyright (C) 2012 Intel Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

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

377 struct sk_buff *skb;
378
379 pr_debug("\n");
380
381 skb = llc_shdlc_alloc_skb(shdlc, 2);
382 if (skb == NULL)
383 return -ENOMEM;
384
385 *(u8 *)skb_put(skb, 1) = SHDLC_MAX_WINDOW;
386 *(u8 *)skb_put(skb, 1) = SHDLC_SREJ_SUPPORT ? 1 : 0;
385 skb_put_u8(skb, SHDLC_MAX_WINDOW);
386 skb_put_u8(skb, SHDLC_SREJ_SUPPORT ? 1 : 0);
387
388 return llc_shdlc_send_u_frame(shdlc, skb, U_FRAME_RSET);
389}
390
391static int llc_shdlc_connect_send_ua(struct llc_shdlc *shdlc)
392{
393 struct sk_buff *skb;
394

--- 460 unchanged lines hidden ---
387
388 return llc_shdlc_send_u_frame(shdlc, skb, U_FRAME_RSET);
389}
390
391static int llc_shdlc_connect_send_ua(struct llc_shdlc *shdlc)
392{
393 struct sk_buff *skb;
394

--- 460 unchanged lines hidden ---