/net/mptcp/ |
D | options.c | 22 const unsigned char *ptr, int opsize, in mptcp_parse_option() argument 25 u8 subtype = *ptr >> 4; in mptcp_parse_option() 48 version = *ptr++ & MPTCP_VERSION_MASK; in mptcp_parse_option() 56 flags = *ptr++; in mptcp_parse_option() 79 mp_opt->sndr_key = get_unaligned_be64(ptr); in mptcp_parse_option() 80 ptr += 8; in mptcp_parse_option() 83 mp_opt->rcvr_key = get_unaligned_be64(ptr); in mptcp_parse_option() 84 ptr += 8; in mptcp_parse_option() 96 mp_opt->data_len = get_unaligned_be16(ptr); in mptcp_parse_option() 97 ptr += 2; in mptcp_parse_option() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 68 u8 *ptr; in gss_krb5_remove_padding() local 85 ptr = kmap_atomic(buf->pages[last]); in gss_krb5_remove_padding() 86 pad = *(ptr + offset); in gss_krb5_remove_padding() 87 kunmap_atomic(ptr); in gss_krb5_remove_padding() 165 unsigned char *ptr, *msg_start; in gss_wrap_kerberos_v1() local 186 ptr = buf->head[0].iov_base + offset; in gss_wrap_kerberos_v1() 195 kctx->gk5e->cksumlength + plainlen, &ptr); in gss_wrap_kerberos_v1() 199 ptr[0] = (unsigned char) ((KG_TOK_WRAP_MSG >> 8) & 0xff); in gss_wrap_kerberos_v1() 200 ptr[1] = (unsigned char) (KG_TOK_WRAP_MSG & 0xff); in gss_wrap_kerberos_v1() 202 msg_start = ptr + GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength; in gss_wrap_kerberos_v1() [all …]
|
D | gss_krb5_unseal.c | 85 unsigned char *ptr = (unsigned char *)read_token->data; in gss_verify_mic_v1() local 91 if (g_verify_token_header(&ctx->mech_used, &bodysize, &ptr, in gss_verify_mic_v1() 95 if ((ptr[0] != ((KG_TOK_MIC_MSG >> 8) & 0xff)) || in gss_verify_mic_v1() 96 (ptr[1] != (KG_TOK_MIC_MSG & 0xff))) in gss_verify_mic_v1() 101 signalg = ptr[2] + (ptr[3] << 8); in gss_verify_mic_v1() 105 sealalg = ptr[4] + (ptr[5] << 8); in gss_verify_mic_v1() 109 if ((ptr[6] != 0xff) || (ptr[7] != 0xff)) in gss_verify_mic_v1() 117 if (make_checksum(ctx, ptr, 8, message_buffer, 0, in gss_verify_mic_v1() 121 if (memcmp(md5cksum.data, ptr + GSS_KRB5_TOK_HDR_LEN, in gss_verify_mic_v1() 134 if (krb5_get_seq_num(ctx, ptr + GSS_KRB5_TOK_HDR_LEN, ptr + 8, in gss_verify_mic_v1() [all …]
|
D | gss_krb5_seal.c | 75 u16 *ptr; in setup_token() local 81 ptr = (u16 *)token->data; in setup_token() 82 g_make_token_header(&ctx->mech_used, body_size, (unsigned char **)&ptr); in setup_token() 85 krb5_hdr = ptr; in setup_token() 86 *ptr++ = KG_TOK_MIC_MSG; in setup_token() 91 *ptr++ = (__force u16)cpu_to_le16(ctx->gk5e->signalg); in setup_token() 92 *ptr++ = SEAL_ALG_NONE; in setup_token() 93 *ptr = 0xffff; in setup_token() 101 u16 *ptr; in setup_token_v2() local 112 krb5_hdr = ptr = (u16 *)token->data; in setup_token_v2() [all …]
|
/net/core/ |
D | ptp_classifier.c | 112 u8 *ptr = skb_mac_header(skb); in ptp_parse_header() local 115 ptr += VLAN_HLEN; in ptp_parse_header() 119 ptr += IPV4_HLEN(ptr) + UDP_HLEN; in ptp_parse_header() 122 ptr += IP6_HLEN + UDP_HLEN; in ptp_parse_header() 130 ptr += ETH_HLEN; in ptp_parse_header() 133 if (ptr + sizeof(struct ptp_header) > skb->data + skb->len) in ptp_parse_header() 136 return (struct ptp_header *)ptr; in ptp_parse_header()
|
/net/sched/ |
D | em_u32.c | 21 const unsigned char *ptr = skb_network_header(skb); in em_u32_match() local 24 if (info->ptr) in em_u32_match() 25 ptr = info->ptr; in em_u32_match() 26 ptr += (info->nexthdr & key->offmask); in em_u32_match() 29 ptr += key->off; in em_u32_match() 31 if (!tcf_valid_offset(skb, ptr, sizeof(u32))) in em_u32_match() 34 return !(((*(__be32 *) ptr) ^ key->val) & key->mask); in em_u32_match()
|
D | em_cmp.c | 25 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; in em_cmp_match() local 28 if (!tcf_valid_offset(skb, ptr, cmp->align)) in em_cmp_match() 33 val = *ptr; in em_cmp_match() 37 val = get_unaligned_be16(ptr); in em_cmp_match() 47 val = get_unaligned_be32(ptr); in em_cmp_match()
|
D | em_nbyte.c | 43 unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer); in em_nbyte_match() local 45 ptr += nbyte->hdr.off; in em_nbyte_match() 47 if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len)) in em_nbyte_match() 50 return !memcmp(ptr, nbyte->pattern, nbyte->hdr.len); in em_nbyte_match()
|
/net/bluetooth/rfcomm/ |
D | core.c | 929 u8 buf[16], *ptr = buf; in rfcomm_send_nsc() local 933 hdr = (void *) ptr; ptr += sizeof(*hdr); in rfcomm_send_nsc() 938 mcc = (void *) ptr; ptr += sizeof(*mcc); in rfcomm_send_nsc() 943 *ptr = __mcc_type(cr, type); ptr++; in rfcomm_send_nsc() 945 *ptr = __fcs(buf); ptr++; in rfcomm_send_nsc() 947 return rfcomm_send_frame(s, buf, ptr - buf); in rfcomm_send_nsc() 955 u8 buf[16], *ptr = buf; in rfcomm_send_pn() local 959 hdr = (void *) ptr; ptr += sizeof(*hdr); in rfcomm_send_pn() 964 mcc = (void *) ptr; ptr += sizeof(*mcc); in rfcomm_send_pn() 968 pn = (void *) ptr; ptr += sizeof(*pn); in rfcomm_send_pn() [all …]
|
/net/lapb/ |
D | lapb_out.c | 117 unsigned char *ptr; in lapb_transmit_buffer() local 119 ptr = skb_push(skb, 1); in lapb_transmit_buffer() 124 *ptr = LAPB_ADDR_C; in lapb_transmit_buffer() 126 *ptr = LAPB_ADDR_D; in lapb_transmit_buffer() 129 *ptr = LAPB_ADDR_D; in lapb_transmit_buffer() 131 *ptr = LAPB_ADDR_C; in lapb_transmit_buffer() 136 *ptr = LAPB_ADDR_A; in lapb_transmit_buffer() 138 *ptr = LAPB_ADDR_B; in lapb_transmit_buffer() 141 *ptr = LAPB_ADDR_B; in lapb_transmit_buffer() 143 *ptr = LAPB_ADDR_A; in lapb_transmit_buffer()
|
/net/ipv6/netfilter/ |
D | nf_log_ipv6.c | 45 unsigned int ptr; in dump_ipv6_packet() local 71 ptr = ip6hoff + sizeof(struct ipv6hdr); in dump_ipv6_packet() 77 hp = skb_header_pointer(skb, ptr, sizeof(_hdr), &_hdr); in dump_ipv6_packet() 93 fh = skb_header_pointer(skb, ptr, sizeof(_fhdr), in dump_ipv6_packet() 141 ah = skb_header_pointer(skb, ptr, sizeof(_ahdr), in dump_ipv6_packet() 149 skb->len - ptr); in dump_ipv6_packet() 176 eh = skb_header_pointer(skb, ptr, sizeof(_esph), in dump_ipv6_packet() 180 skb->len - ptr); in dump_ipv6_packet() 198 ptr += hdrlen; in dump_ipv6_packet() 204 ptr, logflags)) in dump_ipv6_packet() [all …]
|
D | ip6t_hbh.c | 50 unsigned int ptr = 0; in hbh_mt6() local 60 err = ipv6_find_hdr(skb, &ptr, in hbh_mt6() 69 oh = skb_header_pointer(skb, ptr, sizeof(_optsh), &_optsh); in hbh_mt6() 76 if (skb->len - ptr < hdrlen) { in hbh_mt6() 93 ptr += 2; in hbh_mt6() 104 tp = skb_header_pointer(skb, ptr, sizeof(_opttype), in hbh_mt6() 124 lp = skb_header_pointer(skb, ptr + 1, in hbh_mt6() 146 if ((ptr > skb->len - optlen || hdrlen < optlen) && in hbh_mt6() 151 ptr += optlen; in hbh_mt6()
|
D | ip6t_ipv6header.c | 33 unsigned int ptr; in ipv6header_mt6() local 40 ptr = sizeof(struct ipv6hdr); in ipv6header_mt6() 42 len = skb->len - ptr; in ipv6header_mt6() 64 hp = skb_header_pointer(skb, ptr, sizeof(_hdr), &_hdr); in ipv6header_mt6() 101 ptr += hdrlen; in ipv6header_mt6() 102 if (ptr > skb->len) in ipv6header_mt6()
|
D | ip6t_rt.c | 37 unsigned int ptr = 0; in rt_mt6() local 44 err = ipv6_find_hdr(skb, &ptr, NEXTHDR_ROUTING, NULL, NULL); in rt_mt6() 51 rh = skb_header_pointer(skb, ptr, sizeof(_route), &_route); in rt_mt6() 58 if (skb->len - ptr < hdrlen) { in rt_mt6() 77 ptr + offsetof(struct rt0_hdr, in rt_mt6() 101 ptr in rt_mt6() 128 ptr in rt_mt6()
|
/net/bluetooth/ |
D | hci_request.c | 476 u8 *ptr = data, *uuids_start = NULL; in create_uuid16_list() local 480 return ptr; in create_uuid16_list() 496 uuids_start = ptr; in create_uuid16_list() 499 ptr += 2; in create_uuid16_list() 503 if ((ptr - data) + sizeof(u16) > len) { in create_uuid16_list() 508 *ptr++ = (uuid16 & 0x00ff); in create_uuid16_list() 509 *ptr++ = (uuid16 & 0xff00) >> 8; in create_uuid16_list() 513 return ptr; in create_uuid16_list() 518 u8 *ptr = data, *uuids_start = NULL; in create_uuid32_list() local 522 return ptr; in create_uuid32_list() [all …]
|
/net/mpls/ |
D | internal.h | 36 __typeof__(*(mdev)->stats) *ptr = \ 39 u64_stats_update_begin(&ptr->syncp); \ 40 ptr->stats.pkts_field++; \ 41 ptr->stats.bytes_field += (len); \ 42 u64_stats_update_end(&ptr->syncp); \ 48 __typeof__(*(mdev)->stats) *ptr = \ 51 u64_stats_update_begin(&ptr->syncp); \ 52 ptr->stats.field++; \ 53 u64_stats_update_end(&ptr->syncp); \
|
/net/bridge/ |
D | br.c | 28 static int br_device_event(struct notifier_block *unused, unsigned long event, void *ptr) in br_device_event() argument 30 struct netlink_ext_ack *extack = netdev_notifier_info_to_extack(ptr); in br_device_event() 32 struct net_device *dev = netdev_notifier_info_to_dev(ptr); in br_device_event() 40 err = br_vlan_bridge_event(dev, event, ptr); in br_device_event() 69 prechaddr_info = ptr; in br_device_event() 151 unsigned long event, void *ptr) in br_switchdev_event() argument 153 struct net_device *dev = switchdev_notifier_info_to_dev(ptr); in br_switchdev_event() 167 fdb_info = ptr; in br_switchdev_event() 178 fdb_info = ptr; in br_switchdev_event() 185 fdb_info = ptr; in br_switchdev_event() [all …]
|
/net/netfilter/ |
D | nf_synproxy_core.c | 32 u8 buf[40], *ptr; in synproxy_parse_options() local 37 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options() 38 if (ptr == NULL) in synproxy_parse_options() 43 int opcode = *ptr++; in synproxy_parse_options() 55 opsize = *ptr++; in synproxy_parse_options() 64 opts->mss_option = get_unaligned_be16(ptr); in synproxy_parse_options() 70 opts->wscale = *ptr; in synproxy_parse_options() 78 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options() 79 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options() 89 ptr += opsize - 2; in synproxy_parse_options() [all …]
|
D | nf_nat_masquerade.c | 146 void *ptr) in masq_device_event() argument 148 const struct net_device *dev = netdev_notifier_info_to_dev(ptr); in masq_device_event() 164 static int inet_cmp(struct nf_conn *ct, void *ptr) in inet_cmp() argument 167 struct masq_dev_work *w = ptr; in inet_cmp() 169 if (!device_cmp(ct, ptr)) in inet_cmp() 179 void *ptr) in masq_inet_event() argument 181 const struct in_ifaddr *ifa = ptr; in masq_inet_event() 275 unsigned long event, void *ptr) in masq_inet6_event() argument 277 struct inet6_ifaddr *ifa = ptr; in masq_inet6_event()
|
D | nf_tables_core.c | 121 unsigned char *ptr; in nft_payload_fast_eval() local 124 ptr = skb_network_header(skb); in nft_payload_fast_eval() 128 ptr = skb_network_header(skb) + nft_thoff(pkt); in nft_payload_fast_eval() 131 ptr += priv->offset; in nft_payload_fast_eval() 133 if (unlikely(ptr + priv->len > skb_tail_pointer(skb))) in nft_payload_fast_eval() 138 *(u16 *)dest = *(u16 *)ptr; in nft_payload_fast_eval() 140 *(u32 *)dest = *(u32 *)ptr; in nft_payload_fast_eval() 142 *(u8 *)dest = *(u8 *)ptr; in nft_payload_fast_eval()
|
/net/nfc/hci/ |
D | hcp.c | 29 const u8 *ptr = payload; in nfc_hci_hcp_message_tx() local 76 if (ptr) { in nfc_hci_hcp_message_tx() 77 memcpy(packet->message.data, ptr, in nfc_hci_hcp_message_tx() 79 ptr += data_link_len - 1; in nfc_hci_hcp_message_tx() 82 memcpy(&packet->message, ptr, data_link_len); in nfc_hci_hcp_message_tx() 83 ptr += data_link_len; in nfc_hci_hcp_message_tx()
|
/net/ipv6/ |
D | datagram.c | 639 u8 *ptr = nh + sizeof(struct ipv6hdr); in ip6_datagram_recv_specific_ctl() local 640 put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl() 659 u8 *ptr = nh + off; in ip6_datagram_recv_specific_ctl() local 663 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 664 len = (ptr[1] + 1) << 3; in ip6_datagram_recv_specific_ctl() 666 put_cmsg(msg, SOL_IPV6, IPV6_DSTOPTS, len, ptr); in ip6_datagram_recv_specific_ctl() 669 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 670 len = (ptr[1] + 1) << 3; in ip6_datagram_recv_specific_ctl() 672 put_cmsg(msg, SOL_IPV6, IPV6_RTHDR, len, ptr); in ip6_datagram_recv_specific_ctl() 675 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() [all …]
|
/net/x25/ |
D | x25_dev.c | 151 unsigned char *ptr; in x25_establish_link() local 159 ptr = skb_put(skb, 1); in x25_establish_link() 160 *ptr = X25_IFACE_CONNECT; in x25_establish_link() 180 unsigned char *ptr; in x25_terminate_link() local 195 ptr = skb_put(skb, 1); in x25_terminate_link() 196 *ptr = X25_IFACE_DISCONNECT; in x25_terminate_link()
|
/net/l2tp/ |
D | l2tp_core.c | 641 unsigned char *ptr, unsigned char *optr, u16 hdrflags, in l2tp_recv_common() argument 649 if (memcmp(ptr, &session->peer_cookie[0], session->peer_cookie_len)) { in l2tp_recv_common() 656 ptr += session->peer_cookie_len; in l2tp_recv_common() 670 L2TP_SKB_CB(skb)->ns = ntohs(*(__be16 *)ptr); in l2tp_recv_common() 672 ptr += 2; in l2tp_recv_common() 674 ptr += 2; in l2tp_recv_common() 678 u32 l2h = ntohl(*(__be32 *)ptr); in l2tp_recv_common() 685 ptr += 4; in l2tp_recv_common() 732 offset = ntohs(*(__be16 *)ptr); in l2tp_recv_common() 733 ptr += 2 + offset; in l2tp_recv_common() [all …]
|
/net/dccp/ |
D | ackvec.c | 134 u16 ptr = av->av_buf_head; in dccp_ackvec_update_old() local 141 u8 runlen = dccp_ackvec_runlen(av->av_buf + ptr); in dccp_ackvec_update_old() 159 if (av->av_buf[ptr] == DCCPAV_NOT_RECEIVED) in dccp_ackvec_update_old() 160 av->av_buf[ptr] = state; in dccp_ackvec_update_old() 168 ptr = __ackvec_idx_add(ptr, 1); in dccp_ackvec_update_old() 170 } while (ptr != av->av_buf_tail); in dccp_ackvec_update_old()
|