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 | 11 | include/asm-sparc/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
uh | 55 | include/linux/skbuff.h | struct udphdr *uh; |
uh | 36 | include/net/udp.h | extern void udp_send_check(struct udphdr *uh, __u32 saddr, |
uh | 724 | net/ipv4/ip_fw.c | static void recalc_check(struct udphdr *uh, unsigned long saddr, |
uh | 727 | net/ipv4/ip_fw.c | uh->check=0; |
uh | 728 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
uh | 729 | net/ipv4/ip_fw.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
uh | 730 | net/ipv4/ip_fw.c | if(uh->check==0) |
uh | 731 | net/ipv4/ip_fw.c | uh->check=0xFFFF; |
uh | 137 | net/ipv4/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len); |
uh | 156 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 163 | net/ipv4/udp.c | uh = (struct udphdr *)header; |
uh | 165 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr); |
uh | 204 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
uh | 211 | net/ipv4/udp.c | struct udphdr uh; |
uh | 248 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
uh | 249 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
uh | 251 | net/ipv4/udp.c | if (ufh->uh.check == 0) |
uh | 252 | net/ipv4/udp.c | ufh->uh.check = -1; |
uh | 300 | net/ipv4/udp.c | ufh.uh.source = sk->dummy_th.source; |
uh | 301 | net/ipv4/udp.c | ufh.uh.dest = sin->sin_port; |
uh | 302 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
uh | 303 | net/ipv4/udp.c | ufh.uh.check = 0; |
uh | 506 | net/ipv4/udp.c | sin->sin_port = skb->h.uh->source; |
uh | 577 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 588 | net/ipv4/udp.c | uh = (struct udphdr *) skb->h.uh; |
uh | 596 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
uh | 598 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
uh | 613 | net/ipv4/udp.c | if (uh->check && ( |
uh | 614 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
uh | 615 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
uh | 626 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
uh | 627 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
uh | 644 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
uh | 645 | net/ipv4/udp.c | saddr, uh->source, daddr); |
uh | 652 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
uh | 658 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
uh | 668 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
uh | 672 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
uh | 675 | net/ipv4/udp.c | uh_cache_dport=uh->dest; |
uh | 676 | net/ipv4/udp.c | uh_cache_sport=uh->source; |
uh | 695 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
uh | 698 | net/ipv4/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len) |