/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 | 77 u16 *ptr; in setup_token() local 83 ptr = (u16 *)token->data; in setup_token() 84 g_make_token_header(&ctx->mech_used, body_size, (unsigned char **)&ptr); in setup_token() 87 krb5_hdr = ptr; in setup_token() 88 *ptr++ = KG_TOK_MIC_MSG; in setup_token() 93 *ptr++ = (__force u16)cpu_to_le16(ctx->gk5e->signalg); in setup_token() 94 *ptr++ = SEAL_ALG_NONE; in setup_token() 95 *ptr = 0xffff; in setup_token() 103 u16 *ptr; in setup_token_v2() local 114 krb5_hdr = ptr = (u16 *)token->data; in setup_token_v2() [all …]
|
/net/netfilter/ |
D | nf_synproxy_core.c | 35 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() 53 opsize = *ptr++; in synproxy_parse_options() 62 opts->mss = get_unaligned_be16(ptr); in synproxy_parse_options() 68 opts->wscale = *ptr; in synproxy_parse_options() 76 opts->tsval = get_unaligned_be32(ptr); in synproxy_parse_options() 77 opts->tsecr = get_unaligned_be32(ptr + 4); in synproxy_parse_options() 87 ptr += opsize - 2; in synproxy_parse_options() [all …]
|
D | nf_tables_core.c | 92 unsigned char *ptr; in nft_payload_fast_eval() local 95 ptr = skb_network_header(skb); in nft_payload_fast_eval() 99 ptr = skb_network_header(skb) + pkt->xt.thoff; in nft_payload_fast_eval() 102 ptr += priv->offset; in nft_payload_fast_eval() 104 if (unlikely(ptr + priv->len > skb_tail_pointer(skb))) in nft_payload_fast_eval() 109 *(u16 *)dest = *(u16 *)ptr; in nft_payload_fast_eval() 111 *(u32 *)dest = *(u32 *)ptr; in nft_payload_fast_eval() 113 *(u8 *)dest = *(u8 *)ptr; in nft_payload_fast_eval()
|
/net/decnet/ |
D | dn_nsp_in.c | 138 __le16 *ptr = (__le16 *)skb->data; in dn_process_ack() local 145 if ((ack = le16_to_cpu(*ptr)) & 0x8000) { in dn_process_ack() 147 ptr++; in dn_process_ack() 159 if ((ack = le16_to_cpu(*ptr)) & 0x8000) { in dn_process_ack() 184 unsigned char *ptr = *pptr; in dn_check_idf() local 185 unsigned char flen = *ptr++; in dn_check_idf() 194 *pptr = ptr + flen; in dn_check_idf() 234 unsigned char *ptr; in dn_find_listener() local 257 ptr = skb->data; in dn_find_listener() 262 dstlen = dn_username2sockaddr(ptr, len, &dstaddr, &type); in dn_find_listener() [all …]
|
D | dn_nsp_out.c | 289 unsigned char *ptr = skb_push(skb, len); in dn_mk_common_header() local 293 *ptr++ = msgflag; in dn_mk_common_header() 294 *((__le16 *)ptr) = scp->addrrem; in dn_mk_common_header() 295 ptr += 2; in dn_mk_common_header() 296 *((__le16 *)ptr) = scp->addrloc; in dn_mk_common_header() 297 ptr += 2; in dn_mk_common_header() 298 return (__le16 __force *)ptr; in dn_mk_common_header() 306 __le16 *ptr; in dn_mk_ack_header() local 325 ptr = dn_mk_common_header(scp, skb, msgflag, hlen); in dn_mk_ack_header() 327 *ptr++ = cpu_to_le16(acknum); in dn_mk_ack_header() [all …]
|
D | dn_dev.c | 913 unsigned char *ptr; in dn_send_router_hello() local 933 ptr = skb_put(skb, size); in dn_send_router_hello() 935 *ptr++ = DN_RT_PKT_CNTL | DN_RT_PKT_ERTH; in dn_send_router_hello() 936 *ptr++ = 2; /* ECO */ in dn_send_router_hello() 937 *ptr++ = 0; in dn_send_router_hello() 938 *ptr++ = 0; in dn_send_router_hello() 939 dn_dn2eth(ptr, ifa->ifa_local); in dn_send_router_hello() 940 src = ptr; in dn_send_router_hello() 941 ptr += ETH_ALEN; in dn_send_router_hello() 942 *ptr++ = dn_db->parms.forwarding == 1 ? in dn_send_router_hello() [all …]
|
D | dn_route.c | 429 unsigned char *ptr; in dn_return_short() local 441 ptr = skb->data + 2; in dn_return_short() 442 *ptr++ = (cb->rt_flags & ~DN_RT_F_RQR) | DN_RT_F_RTS; in dn_return_short() 444 dst = (__le16 *)ptr; in dn_return_short() 445 ptr += 2; in dn_return_short() 446 src = (__le16 *)ptr; in dn_return_short() 447 ptr += 2; in dn_return_short() 448 *ptr = 0; /* Zero hop count */ in dn_return_short() 465 unsigned char *ptr; in dn_return_long() local 477 ptr = skb->data + 2; in dn_return_long() [all …]
|
/net/sched/ |
D | em_u32.c | 25 const unsigned char *ptr = skb_network_header(skb); in em_u32_match() local 28 if (info->ptr) in em_u32_match() 29 ptr = info->ptr; in em_u32_match() 30 ptr += (info->nexthdr & key->offmask); in em_u32_match() 33 ptr += key->off; in em_u32_match() 35 if (!tcf_valid_offset(skb, ptr, sizeof(u32))) in em_u32_match() 38 return !(((*(__be32 *) ptr) ^ key->val) & key->mask); in em_u32_match()
|
D | em_cmp.c | 29 unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; in em_cmp_match() local 32 if (!tcf_valid_offset(skb, ptr, cmp->align)) in em_cmp_match() 37 val = *ptr; in em_cmp_match() 41 val = get_unaligned_be16(ptr); in em_cmp_match() 51 val = get_unaligned_be32(ptr); in em_cmp_match()
|
/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/bluetooth/rfcomm/ |
D | core.c | 895 u8 buf[16], *ptr = buf; in rfcomm_send_nsc() local 899 hdr = (void *) ptr; ptr += sizeof(*hdr); in rfcomm_send_nsc() 904 mcc = (void *) ptr; ptr += sizeof(*mcc); in rfcomm_send_nsc() 909 *ptr = __mcc_type(cr, type); ptr++; in rfcomm_send_nsc() 911 *ptr = __fcs(buf); ptr++; in rfcomm_send_nsc() 913 return rfcomm_send_frame(s, buf, ptr - buf); in rfcomm_send_nsc() 921 u8 buf[16], *ptr = buf; in rfcomm_send_pn() local 925 hdr = (void *) ptr; ptr += sizeof(*hdr); in rfcomm_send_pn() 930 mcc = (void *) ptr; ptr += sizeof(*mcc); in rfcomm_send_pn() 934 pn = (void *) ptr; ptr += sizeof(*pn); in rfcomm_send_pn() [all …]
|
/net/lapb/ |
D | lapb_out.c | 121 unsigned char *ptr; in lapb_transmit_buffer() local 123 ptr = skb_push(skb, 1); in lapb_transmit_buffer() 128 *ptr = LAPB_ADDR_C; in lapb_transmit_buffer() 130 *ptr = LAPB_ADDR_D; in lapb_transmit_buffer() 133 *ptr = LAPB_ADDR_D; in lapb_transmit_buffer() 135 *ptr = LAPB_ADDR_C; in lapb_transmit_buffer() 140 *ptr = LAPB_ADDR_A; in lapb_transmit_buffer() 142 *ptr = LAPB_ADDR_B; in lapb_transmit_buffer() 145 *ptr = LAPB_ADDR_B; in lapb_transmit_buffer() 147 *ptr = LAPB_ADDR_A; in lapb_transmit_buffer()
|
/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 53 unsigned int ptr = 0; in hbh_mt6() local 63 err = ipv6_find_hdr(skb, &ptr, in hbh_mt6() 72 oh = skb_header_pointer(skb, ptr, sizeof(_optsh), &_optsh); in hbh_mt6() 79 if (skb->len - ptr < hdrlen) { in hbh_mt6() 97 ptr += 2; in hbh_mt6() 108 tp = skb_header_pointer(skb, ptr, sizeof(_opttype), in hbh_mt6() 128 lp = skb_header_pointer(skb, ptr + 1, in hbh_mt6() 150 if ((ptr > skb->len - optlen || hdrlen < optlen) && in hbh_mt6() 155 ptr += optlen; in hbh_mt6()
|
D | nf_log_ipv6.c | 48 unsigned int ptr; in dump_ipv6_packet() local 74 ptr = ip6hoff + sizeof(struct ipv6hdr); in dump_ipv6_packet() 80 hp = skb_header_pointer(skb, ptr, sizeof(_hdr), &_hdr); in dump_ipv6_packet() 96 fh = skb_header_pointer(skb, ptr, sizeof(_fhdr), in dump_ipv6_packet() 144 ah = skb_header_pointer(skb, ptr, sizeof(_ahdr), in dump_ipv6_packet() 152 skb->len - ptr); in dump_ipv6_packet() 179 eh = skb_header_pointer(skb, ptr, sizeof(_esph), in dump_ipv6_packet() 183 skb->len - ptr); in dump_ipv6_packet() 201 ptr += hdrlen; in dump_ipv6_packet() 207 ptr, logflags)) in dump_ipv6_packet() [all …]
|
D | ip6t_ipv6header.c | 36 unsigned int ptr; in ipv6header_mt6() local 43 ptr = sizeof(struct ipv6hdr); in ipv6header_mt6() 45 len = skb->len - ptr; in ipv6header_mt6() 67 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 | 45 unsigned int ptr = 0; in rt_mt6() local 52 err = ipv6_find_hdr(skb, &ptr, NEXTHDR_ROUTING, NULL, NULL); in rt_mt6() 59 rh = skb_header_pointer(skb, ptr, sizeof(_route), &_route); in rt_mt6() 66 if (skb->len - ptr < hdrlen) { in rt_mt6() 110 ptr + offsetof(struct rt0_hdr, in rt_mt6() 134 ptr in rt_mt6() 164 ptr in rt_mt6()
|
/net/l2tp/ |
D | l2tp_core.h | 263 unsigned char *ptr, unsigned char *optr, u16 hdrflags, 334 unsigned char **ptr, unsigned char **optr) in l2tp_v3_ensure_opt_in_linear() argument 339 int off = *ptr - *optr; in l2tp_v3_ensure_opt_in_linear() 346 *ptr = skb->data + off; in l2tp_v3_ensure_opt_in_linear() 353 #define l2tp_printk(ptr, type, func, fmt, ...) \ argument 355 if (((ptr)->debug) & (type)) \ 359 #define l2tp_warn(ptr, type, fmt, ...) \ argument 360 l2tp_printk(ptr, type, pr_warn, fmt, ##__VA_ARGS__) 361 #define l2tp_info(ptr, type, fmt, ...) \ argument 362 l2tp_printk(ptr, type, pr_info, fmt, ##__VA_ARGS__) [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/ipv4/netfilter/ |
D | nf_nat_masquerade_ipv4.c | 89 void *ptr) in masq_device_event() argument 91 const struct net_device *dev = netdev_notifier_info_to_dev(ptr); in masq_device_event() 108 static int inet_cmp(struct nf_conn *ct, void *ptr) in inet_cmp() argument 110 struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; in inet_cmp() 124 void *ptr) in masq_inet_event() argument 126 struct in_device *idev = ((struct in_ifaddr *)ptr)->ifa_dev; in masq_inet_event() 138 nf_ct_iterate_cleanup_net(net, inet_cmp, ptr, 0, 0); in masq_inet_event()
|
/net/nfc/hci/ |
D | hcp.c | 41 const u8 *ptr = payload; in nfc_hci_hcp_message_tx() local 88 if (ptr) { in nfc_hci_hcp_message_tx() 89 memcpy(packet->message.data, ptr, in nfc_hci_hcp_message_tx() 91 ptr += data_link_len - 1; in nfc_hci_hcp_message_tx() 94 memcpy(&packet->message, ptr, data_link_len); in nfc_hci_hcp_message_tx() 95 ptr += data_link_len; in nfc_hci_hcp_message_tx()
|
/net/bridge/ |
D | br.c | 32 static int br_device_event(struct notifier_block *unused, unsigned long event, void *ptr) in br_device_event() argument 34 struct net_device *dev = netdev_notifier_info_to_dev(ptr); in br_device_event() 126 unsigned long event, void *ptr) in br_switchdev_event() argument 128 struct net_device *dev = switchdev_notifier_info_to_dev(ptr); in br_switchdev_event() 142 fdb_info = ptr; in br_switchdev_event() 153 fdb_info = ptr; in br_switchdev_event() 160 fdb_info = ptr; in br_switchdev_event()
|
/net/x25/ |
D | x25_dev.c | 154 unsigned char *ptr; in x25_establish_link() local 162 ptr = skb_put(skb, 1); in x25_establish_link() 163 *ptr = X25_IFACE_CONNECT; in x25_establish_link() 183 unsigned char *ptr; in x25_terminate_link() local 198 ptr = skb_put(skb, 1); in x25_terminate_link() 199 *ptr = X25_IFACE_DISCONNECT; in x25_terminate_link()
|
/net/ipv6/ |
D | datagram.c | 633 u8 *ptr = nh + sizeof(struct ipv6hdr); in ip6_datagram_recv_specific_ctl() local 634 put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr); in ip6_datagram_recv_specific_ctl() 653 u8 *ptr = nh + off; in ip6_datagram_recv_specific_ctl() local 657 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() 658 len = (ptr[1] + 1) << 3; in ip6_datagram_recv_specific_ctl() 660 put_cmsg(msg, SOL_IPV6, IPV6_DSTOPTS, len, ptr); in ip6_datagram_recv_specific_ctl() 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_RTHDR, len, ptr); in ip6_datagram_recv_specific_ctl() 669 nexthdr = ptr[0]; in ip6_datagram_recv_specific_ctl() [all …]
|