Lines Matching refs:nskb
202 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_disc_cmd_p_set_x() local
204 if (nskb) { in llc_conn_ac_send_disc_cmd_p_set_x()
207 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_disc_cmd_p_set_x()
209 llc_pdu_init_as_disc_cmd(nskb, 1); in llc_conn_ac_send_disc_cmd_p_set_x()
210 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_disc_cmd_p_set_x()
213 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_disc_cmd_p_set_x()
219 kfree_skb(nskb); in llc_conn_ac_send_disc_cmd_p_set_x()
227 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_dm_rsp_f_set_p() local
229 if (nskb) { in llc_conn_ac_send_dm_rsp_f_set_p()
234 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_p()
236 llc_pdu_init_as_dm_rsp(nskb, f_bit); in llc_conn_ac_send_dm_rsp_f_set_p()
237 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_p()
240 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_dm_rsp_f_set_p()
245 kfree_skb(nskb); in llc_conn_ac_send_dm_rsp_f_set_p()
253 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_dm_rsp_f_set_1() local
255 if (nskb) { in llc_conn_ac_send_dm_rsp_f_set_1()
258 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_dm_rsp_f_set_1()
260 llc_pdu_init_as_dm_rsp(nskb, 1); in llc_conn_ac_send_dm_rsp_f_set_1()
261 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_dm_rsp_f_set_1()
264 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_dm_rsp_f_set_1()
269 kfree_skb(nskb); in llc_conn_ac_send_dm_rsp_f_set_1()
277 struct sk_buff *nskb; in llc_conn_ac_send_frmr_rsp_f_set_x() local
286 nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_send_frmr_rsp_f_set_x()
288 if (nskb) { in llc_conn_ac_send_frmr_rsp_f_set_x()
291 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_frmr_rsp_f_set_x()
293 llc_pdu_init_as_frmr_rsp(nskb, pdu, f_bit, llc->vS, in llc_conn_ac_send_frmr_rsp_f_set_x()
295 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_frmr_rsp_f_set_x()
298 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_frmr_rsp_f_set_x()
303 kfree_skb(nskb); in llc_conn_ac_send_frmr_rsp_f_set_x()
311 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_resend_frmr_rsp_f_set_0() local
314 if (nskb) { in llc_conn_ac_resend_frmr_rsp_f_set_0()
318 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_frmr_rsp_f_set_0()
320 llc_pdu_init_as_frmr_rsp(nskb, pdu, 0, llc->vS, in llc_conn_ac_resend_frmr_rsp_f_set_0()
322 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_0()
325 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_frmr_rsp_f_set_0()
330 kfree_skb(nskb); in llc_conn_ac_resend_frmr_rsp_f_set_0()
338 struct sk_buff *nskb; in llc_conn_ac_resend_frmr_rsp_f_set_p() local
342 nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, in llc_conn_ac_resend_frmr_rsp_f_set_p()
344 if (nskb) { in llc_conn_ac_resend_frmr_rsp_f_set_p()
348 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_frmr_rsp_f_set_p()
350 llc_pdu_init_as_frmr_rsp(nskb, pdu, f_bit, llc->vS, in llc_conn_ac_resend_frmr_rsp_f_set_p()
352 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_frmr_rsp_f_set_p()
355 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_frmr_rsp_f_set_p()
360 kfree_skb(nskb); in llc_conn_ac_resend_frmr_rsp_f_set_p()
434 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() local
436 if (nskb) { in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
439 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
441 llc_pdu_init_as_rr_rsp(nskb, 0, llc->vR); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
442 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
444 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr()
469 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_cmd_p_set_1() local
471 if (nskb) { in llc_conn_ac_send_rej_cmd_p_set_1()
474 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rej_cmd_p_set_1()
476 llc_pdu_init_as_rej_cmd(nskb, 1, llc->vR); in llc_conn_ac_send_rej_cmd_p_set_1()
477 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rej_cmd_p_set_1()
480 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_cmd_p_set_1()
485 kfree_skb(nskb); in llc_conn_ac_send_rej_cmd_p_set_1()
493 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_rsp_f_set_1() local
495 if (nskb) { in llc_conn_ac_send_rej_rsp_f_set_1()
498 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rej_rsp_f_set_1()
500 llc_pdu_init_as_rej_rsp(nskb, 1, llc->vR); in llc_conn_ac_send_rej_rsp_f_set_1()
501 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rej_rsp_f_set_1()
504 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_rsp_f_set_1()
509 kfree_skb(nskb); in llc_conn_ac_send_rej_rsp_f_set_1()
517 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rej_xxx_x_set_0() local
519 if (nskb) { in llc_conn_ac_send_rej_xxx_x_set_0()
522 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rej_xxx_x_set_0()
524 llc_pdu_init_as_rej_rsp(nskb, 0, llc->vR); in llc_conn_ac_send_rej_xxx_x_set_0()
525 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rej_xxx_x_set_0()
528 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rej_xxx_x_set_0()
533 kfree_skb(nskb); in llc_conn_ac_send_rej_xxx_x_set_0()
541 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_cmd_p_set_1() local
543 if (nskb) { in llc_conn_ac_send_rnr_cmd_p_set_1()
546 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rnr_cmd_p_set_1()
548 llc_pdu_init_as_rnr_cmd(nskb, 1, llc->vR); in llc_conn_ac_send_rnr_cmd_p_set_1()
549 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rnr_cmd_p_set_1()
552 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_cmd_p_set_1()
557 kfree_skb(nskb); in llc_conn_ac_send_rnr_cmd_p_set_1()
565 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_rsp_f_set_1() local
567 if (nskb) { in llc_conn_ac_send_rnr_rsp_f_set_1()
570 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rnr_rsp_f_set_1()
572 llc_pdu_init_as_rnr_rsp(nskb, 1, llc->vR); in llc_conn_ac_send_rnr_rsp_f_set_1()
573 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rnr_rsp_f_set_1()
576 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_rsp_f_set_1()
581 kfree_skb(nskb); in llc_conn_ac_send_rnr_rsp_f_set_1()
589 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rnr_xxx_x_set_0() local
591 if (nskb) { in llc_conn_ac_send_rnr_xxx_x_set_0()
594 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rnr_xxx_x_set_0()
596 llc_pdu_init_as_rnr_rsp(nskb, 0, llc->vR); in llc_conn_ac_send_rnr_xxx_x_set_0()
597 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rnr_xxx_x_set_0()
600 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rnr_xxx_x_set_0()
605 kfree_skb(nskb); in llc_conn_ac_send_rnr_xxx_x_set_0()
625 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_opt_send_rnr_xxx_x_set_0() local
627 if (nskb) { in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
630 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
632 llc_pdu_init_as_rnr_rsp(nskb, 0, llc->vR); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
633 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
636 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
641 kfree_skb(nskb); in llc_conn_ac_opt_send_rnr_xxx_x_set_0()
649 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_cmd_p_set_1() local
651 if (nskb) { in llc_conn_ac_send_rr_cmd_p_set_1()
654 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rr_cmd_p_set_1()
656 llc_pdu_init_as_rr_cmd(nskb, 1, llc->vR); in llc_conn_ac_send_rr_cmd_p_set_1()
657 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rr_cmd_p_set_1()
660 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_cmd_p_set_1()
665 kfree_skb(nskb); in llc_conn_ac_send_rr_cmd_p_set_1()
673 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_rsp_f_set_1() local
675 if (nskb) { in llc_conn_ac_send_rr_rsp_f_set_1()
679 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rr_rsp_f_set_1()
681 llc_pdu_init_as_rr_rsp(nskb, f_bit, llc->vR); in llc_conn_ac_send_rr_rsp_f_set_1()
682 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rr_rsp_f_set_1()
685 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_rsp_f_set_1()
690 kfree_skb(nskb); in llc_conn_ac_send_rr_rsp_f_set_1()
698 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_ack_rsp_f_set_1() local
700 if (nskb) { in llc_conn_ac_send_ack_rsp_f_set_1()
703 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_ack_rsp_f_set_1()
705 llc_pdu_init_as_rr_rsp(nskb, 1, llc->vR); in llc_conn_ac_send_ack_rsp_f_set_1()
706 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_ack_rsp_f_set_1()
709 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ack_rsp_f_set_1()
714 kfree_skb(nskb); in llc_conn_ac_send_ack_rsp_f_set_1()
722 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_xxx_x_set_0() local
724 if (nskb) { in llc_conn_ac_send_rr_xxx_x_set_0()
727 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rr_xxx_x_set_0()
729 llc_pdu_init_as_rr_rsp(nskb, 0, llc->vR); in llc_conn_ac_send_rr_xxx_x_set_0()
730 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rr_xxx_x_set_0()
733 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_xxx_x_set_0()
738 kfree_skb(nskb); in llc_conn_ac_send_rr_xxx_x_set_0()
746 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_ack_xxx_x_set_0() local
748 if (nskb) { in llc_conn_ac_send_ack_xxx_x_set_0()
751 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_ack_xxx_x_set_0()
753 llc_pdu_init_as_rr_rsp(nskb, 0, llc->vR); in llc_conn_ac_send_ack_xxx_x_set_0()
754 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_ack_xxx_x_set_0()
757 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ack_xxx_x_set_0()
762 kfree_skb(nskb); in llc_conn_ac_send_ack_xxx_x_set_0()
780 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_sabme_cmd_p_set_x() local
782 if (nskb) { in llc_conn_ac_send_sabme_cmd_p_set_x()
788 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_sabme_cmd_p_set_x()
790 llc_pdu_init_as_sabme_cmd(nskb, 1); in llc_conn_ac_send_sabme_cmd_p_set_x()
791 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, dmac); in llc_conn_ac_send_sabme_cmd_p_set_x()
794 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_sabme_cmd_p_set_x()
800 kfree_skb(nskb); in llc_conn_ac_send_sabme_cmd_p_set_x()
809 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_U, 0); in llc_conn_ac_send_ua_rsp_f_set_p() local
812 if (nskb) { in llc_conn_ac_send_ua_rsp_f_set_p()
815 nskb->dev = llc->dev; in llc_conn_ac_send_ua_rsp_f_set_p()
816 llc_pdu_header_init(nskb, LLC_PDU_TYPE_U, sap->laddr.lsap, in llc_conn_ac_send_ua_rsp_f_set_p()
818 llc_pdu_init_as_ua_rsp(nskb, f_bit); in llc_conn_ac_send_ua_rsp_f_set_p()
819 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_ua_rsp_f_set_p()
822 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_ua_rsp_f_set_p()
827 kfree_skb(nskb); in llc_conn_ac_send_ua_rsp_f_set_p()
970 struct sk_buff *nskb = llc_alloc_frame(sk, llc->dev, LLC_PDU_TYPE_S, 0); in llc_conn_ac_send_rr_rsp_f_set_ackpf() local
972 if (nskb) { in llc_conn_ac_send_rr_rsp_f_set_ackpf()
975 llc_pdu_header_init(nskb, LLC_PDU_TYPE_S, sap->laddr.lsap, in llc_conn_ac_send_rr_rsp_f_set_ackpf()
977 llc_pdu_init_as_rr_rsp(nskb, llc->ack_pf, llc->vR); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
978 rc = llc_mac_hdr_init(nskb, llc->dev->dev_addr, llc->daddr.mac); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
981 llc_conn_send_pdu(sk, nskb); in llc_conn_ac_send_rr_rsp_f_set_ackpf()
986 kfree_skb(nskb); in llc_conn_ac_send_rr_rsp_f_set_ackpf()