Home
last modified time | relevance | path

Searched refs:mh (Results 1 – 7 of 7) sorted by relevance

/net/ipv6/netfilter/
Dip6t_mh.c34 const struct ip6_mh *mh; in mh_mt6() local
41 mh = skb_header_pointer(skb, par->thoff, sizeof(_mh), &_mh); in mh_mt6()
42 if (mh == NULL) { in mh_mt6()
50 if (mh->ip6mh_proto != IPPROTO_NONE) { in mh_mt6()
52 mh->ip6mh_proto); in mh_mt6()
57 return type_match(mhinfo->types[0], mhinfo->types[1], mh->ip6mh_type, in mh_mt6()
DKconfig140 tristate '"mh" match support'
/net/802/
Dmrp.c347 if (mrp_cb(app->pdu)->mh) in mrp_pdu_queue()
370 struct mrp_msg_hdr *mh; in mrp_pdu_append_msg_hdr() local
372 if (mrp_cb(app->pdu)->mh) { in mrp_pdu_append_msg_hdr()
375 mrp_cb(app->pdu)->mh = NULL; in mrp_pdu_append_msg_hdr()
379 if (skb_tailroom(app->pdu) < sizeof(*mh)) in mrp_pdu_append_msg_hdr()
381 mh = __skb_put(app->pdu, sizeof(*mh)); in mrp_pdu_append_msg_hdr()
382 mh->attrtype = attrtype; in mrp_pdu_append_msg_hdr()
383 mh->attrlen = attrlen; in mrp_pdu_append_msg_hdr()
384 mrp_cb(app->pdu)->mh = mh; in mrp_pdu_append_msg_hdr()
421 if (!mrp_cb(app->pdu)->mh || in mrp_pdu_append_vecattr_event()
[all …]
/net/mctp/
Droute.c44 struct mctp_hdr *mh; in mctp_lookup_bind() local
51 mh = mctp_hdr(skb); in mctp_lookup_bind()
67 if (!mctp_address_matches(msk->bind_addr, mh->dest)) in mctp_lookup_bind()
101 struct mctp_hdr *mh; in mctp_lookup_key() local
104 mh = mctp_hdr(skb); in mctp_lookup_key()
105 tag = mh->flags_seq_tag & (MCTP_HDR_TAG_MASK | MCTP_HDR_FLAG_TO); in mctp_lookup_key()
111 if (!mctp_key_match(key, mh->dest, peer, tag)) in mctp_lookup_key()
329 struct mctp_hdr *mh; in mctp_route_input() local
347 mh = mctp_hdr(skb); in mctp_route_input()
350 if (mh->ver != 1) in mctp_route_input()
[all …]
/net/ipv6/
Dmip6.c77 const struct ip6_mh *mh; in mip6_mh_filter() local
79 mh = skb_header_pointer(skb, skb_transport_offset(skb), in mip6_mh_filter()
81 if (!mh) in mip6_mh_filter()
84 if (((mh->ip6mh_hdrlen + 1) << 3) > skb->len) in mip6_mh_filter()
87 if (mh->ip6mh_hdrlen < mip6_mh_len(mh->ip6mh_type)) { in mip6_mh_filter()
89 mh->ip6mh_hdrlen, in mip6_mh_filter()
90 mip6_mh_len(mh->ip6mh_type)); in mip6_mh_filter()
96 if (mh->ip6mh_proto != IPPROTO_NONE) { in mip6_mh_filter()
98 mh->ip6mh_proto); in mip6_mh_filter()
/net/can/
Dbcm.c715 struct bcm_msg_head *mh, int ifindex) in bcm_find_op() argument
720 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_find_op()
721 (op->flags & CAN_FD_FRAME) == (mh->flags & CAN_FD_FRAME)) in bcm_find_op()
765 static int bcm_delete_rx_op(struct list_head *ops, struct bcm_msg_head *mh, in bcm_delete_rx_op() argument
771 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_rx_op()
772 (op->flags & CAN_FD_FRAME) == (mh->flags & CAN_FD_FRAME)) { in bcm_delete_rx_op()
816 static int bcm_delete_tx_op(struct list_head *ops, struct bcm_msg_head *mh, in bcm_delete_tx_op() argument
822 if ((op->can_id == mh->can_id) && (op->ifindex == ifindex) && in bcm_delete_tx_op()
823 (op->flags & CAN_FD_FRAME) == (mh->flags & CAN_FD_FRAME)) { in bcm_delete_tx_op()
/net/xfrm/
Dxfrm_policy.c3546 struct ip6_mh *mh; in decode_session6() local
3549 mh = (struct ip6_mh *)(nh + offset); in decode_session6()
3550 fl6->fl6_mh_type = mh->ip6mh_type; in decode_session6()