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 | 111 | 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 | 170 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
uh | 177 | net/ipv4/udp.c | struct udphdr uh; |
uh | 213 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
uh | 214 | net/ipv4/udp.c | ntohs(ufh->uh.len), |
uh | 216 | net/ipv4/udp.c | if (ufh->uh.check == 0) |
uh | 217 | net/ipv4/udp.c | ufh->uh.check = -1; |
uh | 264 | net/ipv4/udp.c | ufh.uh.source = sk->dummy_th.source; |
uh | 265 | net/ipv4/udp.c | ufh.uh.dest = sin->sin_port; |
uh | 266 | net/ipv4/udp.c | ufh.uh.len = htons(ulen); |
uh | 267 | net/ipv4/udp.c | ufh.uh.check = 0; |
uh | 449 | net/ipv4/udp.c | sin->sin_port = skb->h.uh->source; |
uh | 520 | net/ipv4/udp.c | struct udphdr *uh; |
uh | 531 | net/ipv4/udp.c | uh = (struct udphdr *) skb->h.uh; |
uh | 539 | net/ipv4/udp.c | ulen = ntohs(uh->len); |
uh | 544 | net/ipv4/udp.c | if (ulen > len || len < sizeof(*uh) || ulen < sizeof(*uh)) |
uh | 552 | net/ipv4/udp.c | if (uh->check && ( |
uh | 553 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
uh | 554 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
uh | 561 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
uh | 562 | net/ipv4/udp.c | ntohl(daddr),ntohs(uh->dest), |
uh | 579 | net/ipv4/udp.c | sk=get_sock_mcast(udp_prot.sock_array[ntohs(uh->dest)&(SOCK_ARRAY_SIZE-1)], uh->dest, |
uh | 580 | net/ipv4/udp.c | saddr, uh->source, daddr); |
uh | 587 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
uh | 593 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
uh | 603 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
uh | 607 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
uh | 610 | net/ipv4/udp.c | uh_cache_dport=uh->dest; |
uh | 611 | net/ipv4/udp.c | uh_cache_sport=uh->source; |
uh | 630 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
uh | 633 | 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) |