Searched refs:skcb (Results 1 – 5 of 5) sorted by relevance
39 struct j1939_sk_buff_cb *skcb = j1939_skb_to_cb(skb); in j1939_ac_msg_is_request() local42 if (skb->len < 3 || skcb->addr.pgn != J1939_PGN_REQUEST) in j1939_ac_msg_is_request()53 struct j1939_sk_buff_cb *skcb = j1939_skb_to_cb(skb); in j1939_ac_verify_outgoing() local61 if (skcb->addr.src_name != j1939_skb_to_name(skb)) { in j1939_ac_verify_outgoing()66 if (skcb->addr.sa == J1939_NO_ADDR) { in j1939_ac_verify_outgoing()72 if (skcb->addr.dst_name || skcb->addr.da != J1939_NO_ADDR) { in j1939_ac_verify_outgoing()81 struct j1939_sk_buff_cb *skcb = j1939_skb_to_cb(skb); in j1939_ac_fixup() local86 if (skcb->addr.pgn == J1939_PGN_ADDRESS_CLAIMED) { in j1939_ac_fixup()93 ecu = j1939_ecu_get_by_name(priv, skcb->addr.src_name); in j1939_ac_fixup()97 if (ecu->addr != skcb->addr.sa) in j1939_ac_fixup()[all …]
320 static inline bool j1939_cb_is_broadcast(const struct j1939_sk_buff_cb *skcb) in j1939_cb_is_broadcast() argument322 return (!skcb->addr.dst_name && (skcb->addr.da == 0xff)); in j1939_cb_is_broadcast()356 struct j1939_sk_buff_cb *skcb = j1939_skb_to_cb(skb); in j1939_session_skb_queue() local361 if (j1939_address_is_unicast(skcb->addr.da) && in j1939_session_skb_queue()362 priv->ents[skcb->addr.da].nusers) in j1939_session_skb_queue()363 skcb->flags |= J1939_ECU_LOCAL_DST; in j1939_session_skb_queue()365 skcb->flags |= J1939_ECU_LOCAL_SRC; in j1939_session_skb_queue()415 static inline int j1939_tp_im_receiver(const struct j1939_sk_buff_cb *skcb) in j1939_tp_im_receiver() argument417 return skcb->flags & J1939_ECU_LOCAL_DST; in j1939_tp_im_receiver()421 static inline int j1939_tp_im_transmitter(const struct j1939_sk_buff_cb *skcb) in j1939_tp_im_transmitter() argument[all …]
42 struct j1939_sk_buff_cb *skcb, *iskcb; in j1939_can_recv() local68 skcb = j1939_skb_to_cb(skb); in j1939_can_recv()69 memset(skcb, 0, sizeof(*skcb)); in j1939_can_recv()72 skcb->tskey = iskcb->tskey; in j1939_can_recv()73 skcb->priority = (cf->can_id >> 26) & 0x7; in j1939_can_recv()74 skcb->addr.sa = cf->can_id; in j1939_can_recv()75 skcb->addr.pgn = (cf->can_id >> 8) & J1939_PGN_MAX; in j1939_can_recv()77 skcb->addr.type = J1939_TP; in j1939_can_recv()79 if (!j1939_address_is_valid(skcb->addr.sa)) { in j1939_can_recv()85 if (j1939_pgn_is_pdu1(skcb->addr.pgn)) { in j1939_can_recv()[all …]
213 const struct j1939_sk_buff_cb *skcb) in j1939_sk_match_dst() argument219 if (jsk->addr.src_name && skcb->addr.dst_name) { in j1939_sk_match_dst()220 if (jsk->addr.src_name != skcb->addr.dst_name) in j1939_sk_match_dst()228 if (j1939_address_is_unicast(skcb->addr.da)) { in j1939_sk_match_dst()229 if (jsk->addr.sa != skcb->addr.da) in j1939_sk_match_dst()244 if (jsk->addr.dst_name && skcb->addr.src_name) { in j1939_sk_match_dst()245 if (jsk->addr.dst_name != skcb->addr.src_name) in j1939_sk_match_dst()248 if (jsk->addr.da != skcb->addr.sa) in j1939_sk_match_dst()255 jsk->pgn_rx_filter != skcb->addr.pgn) in j1939_sk_match_dst()263 const struct j1939_sk_buff_cb *skcb) in j1939_sk_match_filter() argument[all …]
186 struct j1939_sk_buff_cb *skcb);241 struct j1939_sk_buff_cb skcb; member