tag | line | file | source code |
uh | 7 | include/asm-alpha/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
uh | 66 | include/linux/skbuff.h | struct udphdr *uh; |
uh | 36 | include/net/udp.h | extern void udp_send_check(struct udphdr *uh, __u32 saddr, |
uh | 417 | net/ipv4/ip_masq.c | static void recalc_check(struct udphdr *uh, __u32 saddr, |
uh | 420 | net/ipv4/ip_masq.c | uh->check=0; |
uh | 421 | net/ipv4/ip_masq.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
uh | 422 | net/ipv4/ip_masq.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
uh | 423 | net/ipv4/ip_masq.c | if(uh->check==0) |
uh | 424 | net/ipv4/ip_masq.c | uh->check=0xFFFF; |
uh | 155 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 162 | net/ipv4/udp.c | uh = (struct udphdr *)header; |
uh | 164 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr); |
uh | 209 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
uh | 216 | net/ipv4/udp.c | struct udphdr uh; |
uh | 253 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
uh | 254 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
uh | 256 | net/ipv4/udp.c | if (ufh->uh.check == 0) |
uh | 257 | net/ipv4/udp.c | ufh->uh.check = -1; |
uh | 309 | net/ipv4/udp.c | ufh.uh.source = sk->dummy_th.source; |
uh | 310 | net/ipv4/udp.c | ufh.uh.dest = sin->sin_port; |
uh | 311 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
uh | 312 | net/ipv4/udp.c | ufh.uh.check = 0; |
uh | 536 | net/ipv4/udp.c | sin->sin_port = skb->h.uh->source; |
uh | 626 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 652 | net/ipv4/udp.c | uh = (struct udphdr *) skb->h.uh; |
uh | 660 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
uh | 662 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
uh | 677 | net/ipv4/udp.c | if (uh->check && ( |
uh | 678 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_HW) && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
uh | 679 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_NONE) && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
uh | 691 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
uh | 692 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
uh | 718 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
uh | 719 | net/ipv4/udp.c | saddr, uh->source, daddr); |
uh | 726 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
uh | 742 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
uh | 746 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
uh | 749 | net/ipv4/udp.c | uh_cache_dport=uh->dest; |
uh | 750 | net/ipv4/udp.c | uh_cache_sport=uh->source; |