/linux-4.1.27/net/6lowpan/ |
H A D | nhc_udp.c | 25 struct udphdr uh; udp_uncompress() local 34 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); udp_uncompress() 35 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); udp_uncompress() 38 fail |= lowpan_fetch_skb(skb, &uh.source, sizeof(uh.source)); udp_uncompress() 40 uh.dest = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); udp_uncompress() 44 uh.source = htons(val + LOWPAN_NHC_UDP_8BIT_PORT); udp_uncompress() 45 fail |= lowpan_fetch_skb(skb, &uh.dest, sizeof(uh.dest)); udp_uncompress() 49 uh.source = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val >> 4)); udp_uncompress() 50 uh.dest = htons(LOWPAN_NHC_UDP_4BIT_PORT + (val & 0x0f)); udp_uncompress() 57 ntohs(uh.source), ntohs(uh.dest)); udp_uncompress() 64 fail |= lowpan_fetch_skb(skb, &uh.check, sizeof(uh.check)); udp_uncompress() 74 uh.len = htons(skb->len + sizeof(struct udphdr)); udp_uncompress() 75 pr_debug("uncompressed UDP length: src = %d", ntohs(uh.len)); udp_uncompress() 85 skb_copy_to_linear_data(skb, &uh, sizeof(struct udphdr)); udp_uncompress() 92 const struct udphdr *uh = udp_hdr(skb); udp_compress() local 95 if (((ntohs(uh->source) & LOWPAN_NHC_UDP_4BIT_MASK) == udp_compress() 97 ((ntohs(uh->dest) & LOWPAN_NHC_UDP_4BIT_MASK) == udp_compress() 104 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_4BIT_PORT + udp_compress() 105 ((ntohs(uh->source) - LOWPAN_NHC_UDP_4BIT_PORT) << 4); udp_compress() 107 } else if ((ntohs(uh->dest) & LOWPAN_NHC_UDP_8BIT_MASK) == udp_compress() 114 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); udp_compress() 116 tmp = ntohs(uh->dest) - LOWPAN_NHC_UDP_8BIT_PORT; udp_compress() 118 } else if ((ntohs(uh->source) & LOWPAN_NHC_UDP_8BIT_MASK) == udp_compress() 125 tmp = ntohs(uh->source) - LOWPAN_NHC_UDP_8BIT_PORT; udp_compress() 128 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); udp_compress() 135 lowpan_push_hc_data(hc_ptr, &uh->source, sizeof(uh->source)); udp_compress() 137 lowpan_push_hc_data(hc_ptr, &uh->dest, sizeof(uh->dest)); udp_compress() 141 lowpan_push_hc_data(hc_ptr, &uh->check, sizeof(uh->check)); udp_compress()
|
/linux-4.1.27/net/ipv4/ |
H A D | udp_offload.c | 79 struct udphdr *uh; __skb_udp_tunnel_segment() local 102 uh = udp_hdr(skb); __skb_udp_tunnel_segment() 103 uh->len = htons(len); __skb_udp_tunnel_segment() 110 uh->check = ~csum_fold((__force __wsum) __skb_udp_tunnel_segment() 111 ((__force u32)uh->check + __skb_udp_tunnel_segment() 126 uh->check = csum_fold(skb->csum); __skb_udp_tunnel_segment() 127 if (uh->check == 0) __skb_udp_tunnel_segment() 128 uh->check = CSUM_MANGLED_0; __skb_udp_tunnel_segment() 130 uh->check = gso_make_checksum(skb, ~uh->check); __skb_udp_tunnel_segment() 132 if (uh->check == 0) __skb_udp_tunnel_segment() 133 uh->check = CSUM_MANGLED_0; __skb_udp_tunnel_segment() 184 struct udphdr *uh; udp4_ufo_fragment() local 225 uh = udp_hdr(skb); udp4_ufo_fragment() 228 uh->check = 0; udp4_ufo_fragment() 230 uh->check = udp_v4_check(skb->len, iph->saddr, iph->daddr, csum); udp4_ufo_fragment() 231 if (uh->check == 0) udp4_ufo_fragment() 232 uh->check = CSUM_MANGLED_0; udp4_ufo_fragment() 294 struct udphdr *uh) udp_gro_receive() 314 if (uo_priv->offload->port == uh->dest && udp_gro_receive() 332 if ((*(u32 *)&uh->source != *(u32 *)&uh2->source) || udp_gro_receive() 333 (!uh->check ^ !uh2->check)) { udp_gro_receive() 340 skb_gro_postpull_rcsum(skb, uh, sizeof(struct udphdr)); udp_gro_receive() 355 struct udphdr *uh = udp_gro_udphdr(skb); udp4_gro_receive() local 357 if (unlikely(!uh)) udp4_gro_receive() 364 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, udp4_gro_receive() 367 else if (uh->check) udp4_gro_receive() 368 skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check, udp4_gro_receive() 372 return udp_gro_receive(head, skb, uh); udp4_gro_receive() 383 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); udp_gro_complete() local 386 uh->len = newlen; udp_gro_complete() 392 if (uo_priv->offload->port == uh->dest && udp_gro_complete() 418 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); udp4_gro_complete() local 420 if (uh->check) { udp4_gro_complete() 422 uh->check = ~udp_v4_check(skb->len - nhoff, iph->saddr, udp4_gro_complete() 293 udp_gro_receive(struct sk_buff **head, struct sk_buff *skb, struct udphdr *uh) udp_gro_receive() argument
|
H A D | udp_tunnel.c | 83 struct udphdr *uh; udp_tunnel_xmit_skb() local 85 __skb_push(skb, sizeof(*uh)); udp_tunnel_xmit_skb() 87 uh = udp_hdr(skb); udp_tunnel_xmit_skb() 89 uh->dest = dst_port; udp_tunnel_xmit_skb() 90 uh->source = src_port; udp_tunnel_xmit_skb() 91 uh->len = htons(skb->len); udp_tunnel_xmit_skb()
|
H A D | esp4.c | 206 struct udphdr *uh; esp_output() local 217 uh = (struct udphdr *)esph; esp_output() 218 uh->source = sport; esp_output() 219 uh->dest = dport; esp_output() 220 uh->len = htons(skb->len - skb_transport_offset(skb)); esp_output() 221 uh->check = 0; esp_output() 226 esph = (struct ip_esp_hdr *)(uh + 1); esp_output() 229 udpdata32 = (__be32 *)(uh + 1); esp_output() 308 struct udphdr *uh = (void *)(skb_network_header(skb) + ihl); esp_input_done2() local 317 uh->source != encap->encap_sport) { esp_input_done2() 321 km_new_mapping(x, &ipaddr, uh->source); esp_input_done2()
|
H A D | udp.c | 626 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); __udp4_lib_err() local 634 sk = __udp4_lib_lookup(net, iph->daddr, uh->dest, __udp4_lib_err() 635 iph->saddr, uh->source, skb->dev->ifindex, udptable); __udp4_lib_err() 685 ip_icmp_error(sk, skb, err, uh->dest, info, (u8 *)(uh+1)); __udp4_lib_err() 722 struct udphdr *uh = udp_hdr(skb); udp4_hwcsum() local 734 uh->check = ~csum_tcpudp_magic(src, dst, len, udp4_hwcsum() 752 uh->check = csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, csum); 753 if (uh->check == 0) 754 uh->check = CSUM_MANGLED_0; 765 struct udphdr *uh = udp_hdr(skb); udp_set_csum() local 768 uh->check = 0; udp_set_csum() 770 uh->check = ~udp_v4_check(len, saddr, daddr, 0); udp_set_csum() 779 uh->check = ~udp_v4_check(len, saddr, daddr, 0); udp_set_csum() 785 uh->check = 0; udp_set_csum() 787 uh->check = udp_v4_check(len, saddr, daddr, csum); udp_set_csum() 788 if (uh->check == 0) udp_set_csum() 789 uh->check = CSUM_MANGLED_0; udp_set_csum() 800 struct udphdr *uh; udp_send_skb() local 810 uh = udp_hdr(skb); udp_send_skb() 811 uh->source = inet->inet_sport; udp_send_skb() 812 uh->dest = fl4->fl4_dport; udp_send_skb() 813 uh->len = htons(len); udp_send_skb() 814 uh->check = 0; udp_send_skb() 833 uh->check = csum_tcpudp_magic(fl4->saddr, fl4->daddr, len, udp_send_skb() 835 if (uh->check == 0) udp_send_skb() 836 uh->check = CSUM_MANGLED_0; udp_send_skb() 1656 struct udphdr *uh, __udp4_lib_mcast_deliver() 1663 unsigned short hnum = ntohs(uh->dest); __udp4_lib_mcast_deliver() 1682 uh->dest, daddr, __udp4_lib_mcast_deliver() 1683 uh->source, saddr, __udp4_lib_mcast_deliver() 1722 static inline int udp4_csum_init(struct sk_buff *skb, struct udphdr *uh, udp4_csum_init() argument 1731 err = udplite_checksum_init(skb, uh); udp4_csum_init() 1736 return skb_checksum_init_zero_check(skb, proto, uh->check, udp4_csum_init() 1748 struct udphdr *uh; __udp4_lib_rcv() local 1760 uh = udp_hdr(skb); __udp4_lib_rcv() 1761 ulen = ntohs(uh->len); __udp4_lib_rcv() 1770 if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen)) __udp4_lib_rcv() 1772 uh = udp_hdr(skb); __udp4_lib_rcv() 1775 if (udp4_csum_init(skb, uh, proto)) __udp4_lib_rcv() 1797 return __udp4_lib_mcast_deliver(net, skb, uh, __udp4_lib_rcv() 1800 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); __udp4_lib_rcv() 1804 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk)) __udp4_lib_rcv() 1805 skb_checksum_try_convert(skb, IPPROTO_UDP, uh->check, __udp4_lib_rcv() 1840 &saddr, ntohs(uh->source), __udp4_lib_rcv() 1842 &daddr, ntohs(uh->dest)); __udp4_lib_rcv() 1852 &saddr, ntohs(uh->source), &daddr, ntohs(uh->dest), __udp4_lib_rcv() 1962 const struct udphdr *uh; udp_v4_early_demux() local 1973 uh = udp_hdr(skb); udp_v4_early_demux() 1986 sk = __udp4_lib_mcast_demux_lookup(net, uh->dest, iph->daddr, udp_v4_early_demux() 1987 uh->source, iph->saddr, dif); udp_v4_early_demux() 1989 sk = __udp4_lib_demux_lookup(net, uh->dest, iph->daddr, udp_v4_early_demux() 1990 uh->source, iph->saddr, dif); udp_v4_early_demux() 1655 __udp4_lib_mcast_deliver(struct net *net, struct sk_buff *skb, struct udphdr *uh, __be32 saddr, __be32 daddr, struct udp_table *udptable, int proto) __udp4_lib_mcast_deliver() argument
|
H A D | xfrm4_input.c | 71 struct udphdr *uh; xfrm4_udp_encap_rcv() local 90 uh = udp_hdr(skb); xfrm4_udp_encap_rcv() 91 udpdata = (__u8 *)uh + sizeof(struct udphdr); xfrm4_udp_encap_rcv()
|
H A D | fou.c | 771 struct udphdr *uh; fou_build_udp() local 776 uh = udp_hdr(skb); fou_build_udp() 778 uh->dest = e->dport; fou_build_udp() 779 uh->source = sport; fou_build_udp() 780 uh->len = htons(skb->len); fou_build_udp() 781 uh->check = 0; fou_build_udp()
|
H A D | ping.c | 894 sin->sin_port = 0 /* skb->h.uh->source */; ping_recvmsg()
|
/linux-4.1.27/net/ipv6/ |
H A D | ip6_checksum.c | 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) udp6_csum_init() argument 73 err = udplite_checksum_init(skb, uh); udp6_csum_init() 83 return skb_checksum_init_zero_check(skb, proto, uh->check, udp6_csum_init() 95 struct udphdr *uh = udp_hdr(skb); udp6_set_csum() local 98 uh->check = 0; udp6_set_csum() 100 uh->check = ~udp_v6_check(len, saddr, daddr, 0); udp6_set_csum() 109 uh->check = ~udp_v6_check(len, saddr, daddr, 0); udp6_set_csum() 115 uh->check = 0; udp6_set_csum() 117 uh->check = udp_v6_check(len, saddr, daddr, csum); udp6_set_csum() 118 if (uh->check == 0) udp6_set_csum() 119 uh->check = CSUM_MANGLED_0; udp6_set_csum()
|
H A D | udp_offload.c | 68 struct udphdr *uh; udp6_ufo_fragment() local 77 uh = udp_hdr(skb); udp6_ufo_fragment() 80 uh->check = 0; udp6_ufo_fragment() 82 uh->check = udp_v6_check(skb->len, &ipv6h->saddr, udp6_ufo_fragment() 85 if (uh->check == 0) udp6_ufo_fragment() 86 uh->check = CSUM_MANGLED_0; udp6_ufo_fragment() 132 struct udphdr *uh = udp_gro_udphdr(skb); udp6_gro_receive() local 134 if (unlikely(!uh)) udp6_gro_receive() 141 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, udp6_gro_receive() 144 else if (uh->check) udp6_gro_receive() 145 skb_gro_checksum_try_convert(skb, IPPROTO_UDP, uh->check, udp6_gro_receive() 150 return udp_gro_receive(head, skb, uh); udp6_gro_receive() 160 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); udp6_gro_complete() local 162 if (uh->check) { udp6_gro_complete() 164 uh->check = ~udp_v6_check(skb->len - nhoff, &ipv6h->saddr, udp6_gro_complete()
|
H A D | ip6_udp_tunnel.c | 72 struct udphdr *uh; udp_tunnel6_xmit_skb() local 75 __skb_push(skb, sizeof(*uh)); udp_tunnel6_xmit_skb() 77 uh = udp_hdr(skb); udp_tunnel6_xmit_skb() 79 uh->dest = dst_port; udp_tunnel6_xmit_skb() 80 uh->source = src_port; udp_tunnel6_xmit_skb() 82 uh->len = htons(skb->len); udp_tunnel6_xmit_skb()
|
H A D | udp.c | 542 struct udphdr *uh = (struct udphdr *)(skb->data+offset); __udp6_lib_err() local 547 sk = __udp6_lib_lookup(net, daddr, uh->dest, __udp6_lib_err() 548 saddr, uh->source, inet6_iif(skb), udptable); __udp6_lib_err() 574 ipv6_icmp_error(sk, skb, err, uh->dest, ntohl(info), (u8 *)(uh+1)); __udp6_lib_err() 787 const struct udphdr *uh = udp_hdr(skb); __udp6_lib_mcast_deliver() local 789 unsigned short hnum = ntohs(uh->dest); __udp6_lib_mcast_deliver() 808 uh->dest, daddr, __udp6_lib_mcast_deliver() 809 uh->source, saddr, __udp6_lib_mcast_deliver() 814 (uh->check || udp_sk(sk)->no_check6_rx)) { __udp6_lib_mcast_deliver() 849 struct udphdr *uh; __udp6_lib_rcv() local 858 uh = udp_hdr(skb); __udp6_lib_rcv() 860 ulen = ntohs(uh->len); __udp6_lib_rcv() 871 if (ulen < sizeof(*uh)) __udp6_lib_rcv() 879 uh = udp_hdr(skb); __udp6_lib_rcv() 883 if (udp6_csum_init(skb, uh, proto)) __udp6_lib_rcv() 899 sk = __udp6_lib_lookup_skb(skb, uh->source, uh->dest, udptable); __udp6_lib_rcv() 903 if (!uh->check && !udp_sk(sk)->no_check6_rx) { __udp6_lib_rcv() 909 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk)) __udp6_lib_rcv() 910 skb_checksum_try_convert(skb, IPPROTO_UDP, uh->check, __udp6_lib_rcv() 925 if (!uh->check) { __udp6_lib_rcv() 945 saddr, ntohs(uh->source), __udp6_lib_rcv() 947 daddr, ntohs(uh->dest)); __udp6_lib_rcv() 989 struct udphdr *uh = udp_hdr(skb); udp6_hwcsum_outgoing() local 997 uh->check = ~csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, 0); udp6_hwcsum_outgoing() 1013 uh->check = csum_ipv6_magic(saddr, daddr, len, IPPROTO_UDP, udp6_hwcsum_outgoing() 1015 if (uh->check == 0) udp6_hwcsum_outgoing() 1016 uh->check = CSUM_MANGLED_0; udp6_hwcsum_outgoing() 1027 struct udphdr *uh; udp_v6_send_skb() local 1037 uh = udp_hdr(skb); udp_v6_send_skb() 1038 uh->source = fl6->fl6_sport; udp_v6_send_skb() 1039 uh->dest = fl6->fl6_dport; udp_v6_send_skb() 1040 uh->len = htons(len); udp_v6_send_skb() 1041 uh->check = 0; udp_v6_send_skb() 1055 uh->check = csum_ipv6_magic(&fl6->saddr, &fl6->daddr, udp_v6_send_skb() 1057 if (uh->check == 0) udp_v6_send_skb() 1058 uh->check = CSUM_MANGLED_0; udp_v6_send_skb()
|
/linux-4.1.27/arch/avr32/lib/ |
H A D | io-readsw.S | 14 ld.uh r8, r12[0] 41 ld.uh r8, r12[0]
|
H A D | io-writesw.S | 10 ld.uh r8, r11++ 36 ld.uh r8, r11++
|
H A D | csum_partial.S | 36 ld.uh r9, r12++
|
/linux-4.1.27/fs/ntfs/ |
H A D | usnjrnl.c | 53 USN_HEADER *uh; ntfs_stamp_usnjrnl() local 61 uh = (USN_HEADER*)page_address(page); ntfs_stamp_usnjrnl() 67 (long long)sle64_to_cpu(uh->journal_id), ntfs_stamp_usnjrnl() 68 (long long)sle64_to_cpu(uh->lowest_valid_usn), ntfs_stamp_usnjrnl() 71 uh->lowest_valid_usn = ntfs_stamp_usnjrnl() 73 uh->journal_id = stamp; ntfs_stamp_usnjrnl()
|
H A D | super.c | 1446 USN_HEADER *uh; load_and_init_usnjrnl() local 1546 uh = (USN_HEADER*)page_address(page); load_and_init_usnjrnl() 1548 if (unlikely(sle64_to_cpu(uh->allocation_delta) > load_and_init_usnjrnl() 1549 sle64_to_cpu(uh->maximum_size))) { load_and_init_usnjrnl() 1552 (long long)sle64_to_cpu(uh->allocation_delta), load_and_init_usnjrnl() 1553 (long long)sle64_to_cpu(uh->maximum_size)); load_and_init_usnjrnl() 1561 if (unlikely(sle64_to_cpu(uh->lowest_valid_usn) >= load_and_init_usnjrnl() 1563 if (likely(sle64_to_cpu(uh->lowest_valid_usn) == load_and_init_usnjrnl() 1576 (long long)sle64_to_cpu(uh->lowest_valid_usn), load_and_init_usnjrnl()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_log_common.c | 28 const struct udphdr *uh; nf_log_dump_udp_header() local 40 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); nf_log_dump_udp_header() 41 if (uh == NULL) { nf_log_dump_udp_header() 49 ntohs(uh->source), ntohs(uh->dest), ntohs(uh->len)); nf_log_dump_udp_header()
|
H A D | xt_tcpudp.c | 133 const struct udphdr *uh; udp_mt() local 141 uh = skb_header_pointer(skb, par->thoff, sizeof(_udph), &_udph); udp_mt() 142 if (uh == NULL) { udp_mt() 151 ntohs(uh->source), udp_mt() 154 ntohs(uh->dest), udp_mt()
|
H A D | nf_nat_sip.c | 281 struct udphdr *uh; nf_nat_sip() local 288 uh = (void *)skb->data + protoff; nf_nat_sip() 289 uh->dest = ct_sip_info->forced_dport; nf_nat_sip()
|
H A D | nf_conntrack_h323_main.c | 1240 const struct udphdr *uh; get_udp_data() local 1244 uh = skb_header_pointer(skb, protoff, sizeof(_uh), &_uh); get_udp_data() 1245 if (uh == NULL) get_udp_data()
|
/linux-4.1.27/net/netfilter/ipset/ |
H A D | ip_set_getport.c | 55 const struct udphdr *uh; get_port() local 57 uh = skb_header_pointer(skb, protooff, sizeof(_udph), &_udph); get_port() 58 if (uh == NULL) get_port() 62 *port = src ? uh->source : uh->dest; get_port()
|
/linux-4.1.27/security/ |
H A D | lsm_audit.c | 72 struct udphdr *uh = udp_hdr(skb); ipv4_skb_to_auditdata() local 73 if (uh == NULL) ipv4_skb_to_auditdata() 76 ad->u.net->sport = uh->source; ipv4_skb_to_auditdata() 77 ad->u.net->dport = uh->dest; ipv4_skb_to_auditdata() 148 struct udphdr _udph, *uh; ipv6_skb_to_auditdata() local 150 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); ipv6_skb_to_auditdata() 151 if (uh == NULL) ipv6_skb_to_auditdata() 154 ad->u.net->sport = uh->source; ipv6_skb_to_auditdata() 155 ad->u.net->dport = uh->dest; ipv6_skb_to_auditdata()
|
/linux-4.1.27/include/net/ |
H A D | udp_tunnel.h | 106 struct udphdr *uh; udp_tunnel_gro_complete() local 108 uh = (struct udphdr *)(skb->data + nhoff - sizeof(struct udphdr)); udp_tunnel_gro_complete() 109 skb_shinfo(skb)->gso_type |= uh->check ? udp_tunnel_gro_complete()
|
H A D | udplite.h | 36 static inline int udplite_checksum_init(struct sk_buff *skb, struct udphdr *uh) udplite_checksum_init() argument 43 if (uh->check == 0) { udplite_checksum_init() 48 cscov = ntohs(uh->len); udplite_checksum_init()
|
H A D | udp.h | 162 struct udphdr *uh); 167 struct udphdr *uh; udp_gro_udphdr() local 171 hlen = off + sizeof(*uh); udp_gro_udphdr() 172 uh = skb_gro_header_fast(skb, off); udp_gro_udphdr() 174 uh = skb_gro_header_slow(skb, hlen, off); udp_gro_udphdr() 176 return uh; udp_gro_udphdr()
|
H A D | ip6_checksum.h | 105 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
|
/linux-4.1.27/net/openvswitch/ |
H A D | actions.c | 287 struct udphdr *uh = udp_hdr(skb); set_ip_addr() local 289 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { set_ip_addr() 290 inet_proto_csum_replace4(&uh->check, skb, set_ip_addr() 292 if (!uh->check) set_ip_addr() 293 uh->check = CSUM_MANGLED_0; set_ip_addr() 314 struct udphdr *uh = udp_hdr(skb); update_ipv6_checksum() local 316 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { update_ipv6_checksum() 317 inet_proto_csum_replace16(&uh->check, skb, update_ipv6_checksum() 319 if (!uh->check) update_ipv6_checksum() 320 uh->check = CSUM_MANGLED_0; update_ipv6_checksum() 501 struct udphdr *uh; set_udp() local 510 uh = udp_hdr(skb); set_udp() 512 src = MASKED(uh->source, key->udp_src, mask->udp_src); set_udp() 513 dst = MASKED(uh->dest, key->udp_dst, mask->udp_dst); set_udp() 515 if (uh->check && skb->ip_summed != CHECKSUM_PARTIAL) { set_udp() 516 if (likely(src != uh->source)) { set_udp() 517 set_tp_port(skb, &uh->source, src, &uh->check); set_udp() 520 if (likely(dst != uh->dest)) { set_udp() 521 set_tp_port(skb, &uh->dest, dst, &uh->check); set_udp() 525 if (unlikely(!uh->check)) set_udp() 526 uh->check = CSUM_MANGLED_0; set_udp() 528 uh->source = src; set_udp() 529 uh->dest = dst; set_udp()
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_proto_udp.c | 38 struct udphdr _udph, *uh; udp_conn_schedule() local 41 uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph); udp_conn_schedule() 42 if (uh == NULL) { udp_conn_schedule() 49 &iph->daddr, uh->dest); udp_conn_schedule() 293 struct udphdr _udph, *uh; udp_csum_check() local 303 uh = skb_header_pointer(skb, udphoff, sizeof(_udph), &_udph); udp_csum_check() 304 if (uh == NULL) udp_csum_check() 307 if (uh->check != 0) { udp_csum_check()
|
H A D | ip_vs_sh.c | 285 struct udphdr _udph, *uh; ip_vs_sh_get_port() local 296 uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph); ip_vs_sh_get_port() 297 if (unlikely(uh == NULL)) ip_vs_sh_get_port() 299 port = uh->source; ip_vs_sh_get_port()
|
/linux-4.1.27/drivers/net/hyperv/ |
H A D | netvsc_drv.c | 523 struct udphdr *uh; netvsc_start_xmit() local 530 uh = udp_hdr(skb); netvsc_start_xmit() 531 udp_len = ntohs(uh->len); netvsc_start_xmit() 532 uh->check = 0; netvsc_start_xmit() 533 uh->check = csum_tcpudp_magic(ip_hdr(skb)->saddr, netvsc_start_xmit() 536 csum_partial(uh, udp_len, 0)); netvsc_start_xmit() 537 if (uh->check == 0) netvsc_start_xmit() 538 uh->check = CSUM_MANGLED_0; netvsc_start_xmit()
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | uaccess_32.h | 187 __get_user_asm(__gu_val, uh, addr, __gu_ret); \ 216 __get_user_asm_ret(__gu_val, uh, addr, retval); \ 238 case 2: __get_user_asm(__gu_val, uh, addr, __gu_ret); break; \ 254 case 2: __get_user_asm_ret(__gu_val, uh, addr, retval); break; \
|
H A D | uaccess_64.h | 148 case 2: __get_user_asm(__gu_val, uh, addr, __gu_ret); break; \ 164 case 2: __get_user_asm_ret(__gu_val, uh, addr, retval); break; \
|
/linux-4.1.27/arch/cris/arch-v10/lib/ |
H A D | old_checksum.c | 26 /* these are just for profiling the checksum code with an oscillioscope.. uh */
|
/linux-4.1.27/arch/avr32/include/asm/ |
H A D | uaccess.h | 189 case 2: __get_user_asm("uh", __gu_val, ptr, __gu_err); break; \ 211 __get_user_asm("uh", __gu_val, __gu_addr, \
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
H A D | ttm_execbuf_util.c | 139 /* uh oh, we lost out, drop every reservation and try list_for_each_entry()
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | r8a66597-udc.h | 6 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
H A D | m66592-udc.h | 6 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
H A D | m66592-udc.c | 6 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
H A D | r8a66597-udc.c | 6 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
/linux-4.1.27/fs/reiserfs/ |
H A D | file.c | 69 * uh oh, we can't allow the inode to go away while there reiserfs_file_release()
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | uaccess.h | 189 __get_user_asm(__gu_err, __gu_val, ptr, "uh", "=r"); \
|
/linux-4.1.27/net/l2tp/ |
H A D | l2tp_core.c | 1108 struct udphdr *uh; l2tp_xmit_skb() local 1151 __skb_push(skb, sizeof(*uh)); l2tp_xmit_skb() 1153 uh = udp_hdr(skb); l2tp_xmit_skb() 1154 uh->source = inet->inet_sport; l2tp_xmit_skb() 1155 uh->dest = inet->inet_dport; l2tp_xmit_skb() 1157 uh->len = htons(udp_len); l2tp_xmit_skb()
|
/linux-4.1.27/drivers/net/wan/ |
H A D | hdlc_cisco.c | 235 netdev_info(dev, "Link up (peer uptime %ud%uh%um%us)\n", cisco_rx()
|
/linux-4.1.27/drivers/dma-buf/ |
H A D | reservation.c | 291 /* uh oh, refcount failed, abort and retry */ reservation_object_get_fences_rcu()
|
/linux-4.1.27/security/selinux/ |
H A D | hooks.c | 3779 struct udphdr _udph, *uh; selinux_parse_skb_ipv4() local 3785 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); selinux_parse_skb_ipv4() 3786 if (uh == NULL) selinux_parse_skb_ipv4() 3789 ad->u.net->sport = uh->source; selinux_parse_skb_ipv4() 3790 ad->u.net->dport = uh->dest; selinux_parse_skb_ipv4() 3860 struct udphdr _udph, *uh; selinux_parse_skb_ipv6() local 3862 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); selinux_parse_skb_ipv6() 3863 if (uh == NULL) selinux_parse_skb_ipv6() 3866 ad->u.net->sport = uh->source; selinux_parse_skb_ipv6() 3867 ad->u.net->dport = uh->dest; selinux_parse_skb_ipv6()
|
/linux-4.1.27/drivers/dma/sh/ |
H A D | usb-dmac.c | 911 MODULE_AUTHOR("Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>");
|
/linux-4.1.27/include/linux/ |
H A D | sctp.h | 408 sctp_chunkhdr_t uh; member in struct:sctp_abort_chunk
|
/linux-4.1.27/include/linux/usb/ |
H A D | r8a66597.h | 6 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | uaccess.h | 245 case 2: __get_user_asm(x, ptr, retval, "uh"); break; \
|
/linux-4.1.27/fs/afs/ |
H A D | vlocation.c | 252 /* uh oh... looks like the volume got deleted */ afs_vlocation_update_record()
|
/linux-4.1.27/security/smack/ |
H A D | smack_lsm.c | 3565 struct udphdr _udph, *uh; smk_skb_to_addr_ipv6() local 3590 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); smk_skb_to_addr_ipv6() 3591 if (uh != NULL) smk_skb_to_addr_ipv6() 3592 sip->sin6_port = uh->source; smk_skb_to_addr_ipv6()
|
/linux-4.1.27/arch/mn10300/kernel/ |
H A D | gdb-stub.c | 728 /* uh-oh - silly address alert, try and restore things */ gdbstub_single_step()
|
/linux-4.1.27/arch/arm/probes/kprobes/ |
H A D | test-thumb.c | 1013 PARALLEL_ADD_SUB("uh") kprobe_thumb32_test_cases()
|
/linux-4.1.27/drivers/net/ethernet/natsemi/ |
H A D | ns83820.c | 481 printk(KERN_DEBUG "%s: uh-oh: next_rx == next_empty???\n", kick_rx()
|
/linux-4.1.27/drivers/scsi/ |
H A D | fdomain.c | 196 Special thanks to Tien-Wan Yang (twyang@cs.uh.edu), who graciously lent me
|
/linux-4.1.27/drivers/usb/host/ |
H A D | r8a66597-hcd.c | 9 * Author : Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
|
/linux-4.1.27/net/core/ |
H A D | sock.c | 2925 "cl co di ac io in de sh ss gs se re sp bi br ha uh gp em\n"); proto_seq_show()
|
/linux-4.1.27/net/mac80211/ |
H A D | tx.c | 65 /* uh huh? */ ieee80211_duration()
|
/linux-4.1.27/fs/ext4/ |
H A D | mballoc.c | 3959 "uh-oh! used pa while discarding"); ext4_discard_preallocations()
|