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, unsigned long saddr, |
uh | 644 | net/ipv4/ip_fw.c | static void recalc_check(struct udphdr *uh, unsigned long saddr, |
uh | 647 | net/ipv4/ip_fw.c | uh->check=0; |
uh | 648 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
uh | 649 | net/ipv4/ip_fw.c | IPPROTO_UDP, csum_partial((char *)uh,len,0)); |
uh | 650 | net/ipv4/ip_fw.c | if(uh->check==0) |
uh | 651 | net/ipv4/ip_fw.c | uh->check=0xFFFF; |
uh | 110 | 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 | 169 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
uh | 176 | net/ipv4/udp.c | struct udphdr uh; |
uh | 212 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
uh | 213 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
uh | 215 | net/ipv4/udp.c | if (ufh->uh.check == 0) |
uh | 216 | net/ipv4/udp.c | ufh->uh.check = -1; |
uh | 263 | net/ipv4/udp.c | ufh.uh.source = sk->dummy_th.source; |
uh | 264 | net/ipv4/udp.c | ufh.uh.dest = sin->sin_port; |
uh | 265 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
uh | 266 | net/ipv4/udp.c | ufh.uh.check = 0; |
uh | 448 | net/ipv4/udp.c | sin->sin_port = skb->h.uh->source; |
uh | 519 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 530 | net/ipv4/udp.c | uh = (struct udphdr *) skb->h.uh; |
uh | 538 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
uh | 540 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
uh | 548 | net/ipv4/udp.c | if (uh->check && ( |
uh | 549 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
uh | 550 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
uh | 557 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
uh | 558 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
uh | 575 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
uh | 576 | net/ipv4/udp.c | saddr, uh->source, daddr); |
uh | 583 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
uh | 589 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
uh | 599 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
uh | 603 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
uh | 606 | net/ipv4/udp.c | uh_cache_dport=uh->dest; |
uh | 607 | net/ipv4/udp.c | uh_cache_sport=uh->source; |
uh | 626 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
uh | 629 | 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) |