tag | line | file | source code |
saddr | 29 | arch/alpha/lib/checksum.c | unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 35 | arch/alpha/lib/checksum.c | return ~from64to16(saddr + daddr + sum + |
saddr | 65 | arch/ppc/kernel/stubs.c | _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
saddr | 68 | arch/ppc/kernel/stubs.c | udp_check(unsigned char *buf, int len, int saddr, int daddr) |
saddr | 73 | arch/ppc/kernel/stubs.c | _val = _udp_check(buf, len, saddr, daddr, hdr); |
saddr | 75 | arch/ppc/kernel/stubs.c | printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
saddr | 82 | arch/ppc/kernel/stubs.c | _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
saddr | 85 | arch/ppc/kernel/stubs.c | tcp_check(unsigned char *buf, int len, int saddr, int daddr) |
saddr | 90 | arch/ppc/kernel/stubs.c | if (saddr == 0) saddr = ip_my_addr(); |
saddr | 91 | arch/ppc/kernel/stubs.c | _val = _tcp_check(buf, len, saddr, daddr, hdr); |
saddr | 93 | arch/ppc/kernel/stubs.c | printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
saddr | 731 | arch/sparc/mm/sun4c.c | unsigned long saddr = (unsigned long) tsk; |
saddr | 734 | arch/sparc/mm/sun4c.c | if(!saddr) |
saddr | 750 | arch/sparc/mm/sun4c.c | saddr += PAGE_SIZE; |
saddr | 751 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr, BUCKET_PTE(page[0])); |
saddr | 752 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr + PAGE_SIZE, BUCKET_PTE(page[1])); |
saddr | 753 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr + (PAGE_SIZE<<1), BUCKET_PTE(page[2])); |
saddr | 754 | arch/sparc/mm/sun4c.c | return saddr; |
saddr | 1075 | drivers/isdn/isdn_net.c | void *daddr, void *saddr, unsigned len) |
saddr | 1093 | drivers/isdn/isdn_net.c | if(saddr) |
saddr | 1094 | drivers/isdn/isdn_net.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 1122 | drivers/isdn/isdn_net.c | void *daddr, void *saddr, unsigned plen) |
saddr | 1129 | drivers/isdn/isdn_net.c | len = my_eth_header(skb, dev, type, daddr, saddr, plen); |
saddr | 497 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 517 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 625 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 630 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 640 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 648 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 650 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 2180 | drivers/net/arcnet.c | u_char daddr,saddr; |
saddr | 2184 | drivers/net/arcnet.c | saddr=arcpacket->hardheader.source; |
saddr | 2188 | drivers/net/arcnet.c | if (saddr==0) |
saddr | 2212 | drivers/net/arcnet.c | saddr,daddr,length); |
saddr | 2222 | drivers/net/arcnet.c | arcnetA_rx(lp->adev,arcsoft,length,saddr,daddr); |
saddr | 2226 | drivers/net/arcnet.c | arcnetE_rx(lp->edev,arcsoft,length,saddr,daddr); |
saddr | 2232 | drivers/net/arcnet.c | arcnetS_rx(lp->sdev,arcsoft,length,saddr,daddr); |
saddr | 2238 | drivers/net/arcnet.c | arcsoft[0],arcsoft[0],saddr); |
saddr | 2265 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2292 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2325 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2345 | drivers/net/arcnet.c | saddr); |
saddr | 2347 | drivers/net/arcnet.c | *cptr=saddr; |
saddr | 2389 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2397 | drivers/net/arcnet.c | saddr,in->sequence,arcsoft->sequence, |
saddr | 2510 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2585 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 2592 | drivers/net/arcnet.c | saddr ? *(u_char*)saddr : -1, |
saddr | 2632 | drivers/net/arcnet.c | if(saddr) |
saddr | 2633 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 2635 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 2685 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 2688 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 2879 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 3008 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 3040 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 3058 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 3091 | drivers/net/arcnet.c | if(saddr) |
saddr | 3092 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 3094 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 1132 | drivers/net/atarilance.c | struct sockaddr *saddr = addr; |
saddr | 1145 | drivers/net/atarilance.c | memcpy( dev->dev_addr, saddr->sa_data, dev->addr_len ); |
saddr | 120 | drivers/net/dlci.c | unsigned short type, void *daddr, void *saddr, |
saddr | 159 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 417 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 1243 | drivers/net/ibmtr.c | if (!(trhdr->saddr[0] & 0x80)) { /* RIF present : preserve it */ |
saddr | 1349 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)), |
saddr | 1350 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)+1), |
saddr | 1351 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)+2), |
saddr | 1352 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)+3), |
saddr | 1353 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)+4), |
saddr | 1354 | drivers/net/ibmtr.c | (int)readb(trhhdr + offsetof(struct trh_hdr, saddr)+5), |
saddr | 113 | drivers/net/new_tunnel.c | ipaddr=(unsigned char *)&ip->saddr; |
saddr | 288 | drivers/net/new_tunnel.c | iph->saddr = tdev->pa_addr; |
saddr | 1078 | drivers/net/pi2.c | void *daddr, void *saddr, unsigned len) |
saddr | 1080 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 3145 | drivers/net/ppp.c | void *saddr, unsigned int len) |
saddr | 340 | drivers/net/pt.c | void *daddr, void *saddr, unsigned len) |
saddr | 342 | drivers/net/pt.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 295 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
saddr | 539 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
saddr | 546 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 619 | drivers/net/strip.c | b.l = skb->saddr; |
saddr | 976 | drivers/net/strip.c | unsigned short type, void *daddr, void *saddr, unsigned len) |
saddr | 15 | include/asm-alpha/checksum.h | extern unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 7 | include/asm-alpha/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
saddr | 16 | include/asm-alpha/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
saddr | 97 | include/asm-i386/checksum.h | static inline unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 109 | include/asm-i386/checksum.h | : "g" (daddr), "g"(saddr), "g"((ntohs(len)<<16)+proto*256), "0"(sum)); |
saddr | 73 | include/asm-m68k/checksum.h | csum_tcpudp_magic(unsigned long saddr, unsigned long daddr, unsigned short len, |
saddr | 84 | include/asm-m68k/checksum.h | : "=&d" (sum), "=&d" (saddr) |
saddr | 85 | include/asm-m68k/checksum.h | : "0" (daddr), "1" (saddr), "d" (len + proto), |
saddr | 106 | include/asm-mips/checksum.h | static inline unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 131 | include/asm-mips/checksum.h | : "0" (daddr), "r"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum) |
saddr | 15 | include/asm-ppc/checksum.h | extern unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 21 | include/asm-sparc/checksum.h | extern inline unsigned short csum_tcpudp_magic(unsigned long saddr, |
saddr | 52 | include/asm-sparc/checksum.h | : "=&r" (sum), "=&r" (saddr) |
saddr | 53 | include/asm-sparc/checksum.h | : "0" (daddr), "1" (saddr), "r" (len+proto), "r" (sum)); |
saddr | 33 | include/linux/etherdevice.h | void *saddr, unsigned len); |
saddr | 51 | include/linux/if_tr.h | __u8 saddr[TR_ALEN]; /* source address */ |
saddr | 107 | include/linux/ip.h | __u32 saddr; |
saddr | 175 | include/linux/netdevice.h | void *saddr, |
saddr | 82 | include/linux/skbuff.h | __u32 saddr; /* IP source address */ |
saddr | 33 | include/linux/trdevice.h | void *saddr, unsigned len); |
saddr | 10 | include/net/arp.h | struct device *dev, u32 saddr, struct sk_buff *skb); |
saddr | 34 | include/net/icmp.h | unsigned short len, __u32 saddr, |
saddr | 89 | include/net/ip.h | extern int ip_send(struct rtable *rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr); |
saddr | 91 | include/net/ip.h | __u32 saddr, |
saddr | 99 | include/net/ip.h | __u32 daddr, __u32 saddr, |
saddr | 117 | include/net/ip.h | __u32 saddr, |
saddr | 142 | include/net/ip.h | extern void ip_options_build(struct sk_buff *skb, struct options *opt, __u32 daddr, __u32 saddr, int is_frag); |
saddr | 143 | include/net/ip.h | extern int ip_options_echo(struct options *dopt, struct options *sopt, __u32 daddr, __u32 saddr, struct sk_buff *skb); |
saddr | 53 | include/net/ip_masq.h | __u32 saddr, daddr, maddr; /* src, dst & masq addresses */ |
saddr | 93 | include/net/ip_masq.h | extern struct ip_masq *ip_masq_new(struct device *dev, int proto, __u32 saddr, __u16 sport, __u32 daddr, __u16 dport, unsigned flags); |
saddr | 2 | include/net/ipip.h | __u32 daddr, unsigned short len, __u32 saddr, |
saddr | 33 | include/net/protocol.h | unsigned short len, __u32 saddr, |
saddr | 37 | include/net/protocol.h | __u32 saddr, |
saddr | 25 | include/net/raw.h | __u32 saddr, struct inet_protocol *protocol); |
saddr | 209 | include/net/sock.h | __u32 saddr; /* Sending source */ |
saddr | 338 | include/net/sock.h | __u32 saddr, |
saddr | 354 | include/net/sock.h | unsigned short len, __u32 saddr, |
saddr | 136 | include/net/tcp.h | unsigned short len, __u32 saddr, int redo, |
saddr | 146 | include/net/tcp.h | extern void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 159 | include/net/tcp.h | extern void tcp_send_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 241 | include/net/tcp.h | unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 243 | include/net/tcp.h | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
saddr | 35 | include/net/udp.h | __u32 saddr, struct inet_protocol *protocol); |
saddr | 36 | include/net/udp.h | extern void udp_send_check(struct udphdr *uh, __u32 saddr, |
saddr | 47 | include/net/udp.h | unsigned short len, __u32 saddr, int redo, |
saddr | 42 | net/802/tr.c | void *daddr, void *saddr, unsigned len) |
saddr | 51 | net/802/tr.c | if(saddr) |
saddr | 52 | net/802/tr.c | memcpy(trh->saddr,saddr,dev->addr_len); |
saddr | 54 | net/802/tr.c | memset(trh->saddr,0,dev->addr_len); /* Adapter fills in address */ |
saddr | 100 | net/802/tr.c | if(trh->saddr[0] & TR_RII) |
saddr | 132 | net/802/tr.c | trh->saddr[0]|=TR_RII; |
saddr | 150 | net/802/tr.c | trh->saddr[0]|=TR_RII; |
saddr | 157 | net/802/tr.c | trh->saddr[0]|=TR_RII; |
saddr | 170 | net/802/tr.c | trh->saddr[0]&=0x7f; |
saddr | 171 | net/802/tr.c | for(i=0,hash=0;i<TR_ALEN;hash+=trh->saddr[i++]); |
saddr | 176 | net/802/tr.c | for(entry=rif_table[hash];entry && memcmp(&(entry->addr[0]),&(trh->saddr[0]),TR_ALEN);entry=entry->next); |
saddr | 181 | net/802/tr.c | trh->saddr[0],trh->saddr[1],trh->saddr[2], |
saddr | 182 | net/802/tr.c | trh->saddr[3],trh->saddr[4],trh->saddr[5], |
saddr | 192 | net/802/tr.c | memcpy(&(entry->addr[0]),&(trh->saddr[0]),TR_ALEN); |
saddr | 203 | net/802/tr.c | trh->saddr[0],trh->saddr[1],trh->saddr[2], |
saddr | 204 | net/802/tr.c | trh->saddr[3],trh->saddr[4],trh->saddr[5], |
saddr | 2488 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
saddr | 2503 | net/ax25/af_ax25.c | if (saddr != NULL) |
saddr | 2504 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
saddr | 808 | net/core/skbuff.c | n->saddr=skb->saddr; |
saddr | 543 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 91 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
saddr | 109 | net/ethernet/eth.c | if(saddr) |
saddr | 110 | net/ethernet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 850 | net/ipv4/af_inet.c | sk->saddr = 0; /* Use device */ |
saddr | 852 | net/ipv4/af_inet.c | sk->saddr = addr->sin_addr.s_addr; |
saddr | 1112 | net/ipv4/af_inet.c | addr = sk->saddr; |
saddr | 1360 | net/ipv4/arp.c | u32 saddr, struct sk_buff *skb) |
saddr | 311 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
saddr | 452 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 483 | net/ipv4/icmp.c | static void icmp_build_xmit(struct icmp_bxm *icmp_param, __u32 saddr, __u32 daddr, __u8 tos) |
saddr | 492 | net/ipv4/icmp.c | daddr, saddr, &icmp_param->replyopts, 0, IPPROTO_ICMP, 1); |
saddr | 512 | net/ipv4/icmp.c | __u32 saddr; |
saddr | 570 | net/ipv4/icmp.c | if (!xrlim_allow(type, iph->saddr)) |
saddr | 578 | net/ipv4/icmp.c | saddr=iph->daddr; |
saddr | 579 | net/ipv4/icmp.c | if(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR) |
saddr | 580 | net/ipv4/icmp.c | saddr=dev->pa_addr; |
saddr | 592 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0) |
saddr | 593 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, saddr, iph->saddr, ((iph->tos & 0x38) | 6)); |
saddr | 601 | net/ipv4/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
saddr | 730 | net/ipv4/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 819 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
saddr | 827 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 828 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr, skb->ip_hdr->tos); |
saddr | 841 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
saddr | 873 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 874 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr, skb->ip_hdr->tos); |
saddr | 891 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
saddr | 901 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 902 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr, skb->iph->tos); |
saddr | 907 | net/ipv4/icmp.c | static void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
saddr | 918 | net/ipv4/icmp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 931 | net/ipv4/icmp.c | printk(KERN_INFO "ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 976 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
saddr | 430 | net/ipv4/igmp.c | __u32 daddr, unsigned short len, __u32 saddr, int redo, |
saddr | 444 | net/ipv4/igmp.c | dev=ip_dev_find(saddr); |
saddr | 460 | net/ipv4/igmp.c | if(saddr==0) |
saddr | 63 | net/ipv4/ip_forward.c | iph->saddr = out->pa_addr; |
saddr | 218 | net/ipv4/ip_forward.c | !((iph->saddr^dev->pa_addr)&dev->pa_mask) && |
saddr | 126 | net/ipv4/ip_fragment.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 219 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 266 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 317 | net/ipv4/ip_fw.c | dprint_ip(ip->saddr); |
saddr | 468 | net/ipv4/ip_fw.c | print_ip(ip->saddr); |
saddr | 274 | net/ipv4/ip_input.c | skb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr); |
saddr | 493 | net/ipv4/ip_input.c | raw_sk=get_sock_raw(raw_sk, iph->protocol, iph->saddr, iph->daddr); |
saddr | 499 | net/ipv4/ip_input.c | sknext=get_sock_raw(raw_sk->next, iph->protocol, iph->saddr, iph->daddr); |
saddr | 505 | net/ipv4/ip_input.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,daddr); |
saddr | 562 | net/ipv4/ip_input.c | iph->saddr, 0, ipprot); |
saddr | 597 | net/ipv4/ip_input.c | raw_rcv(raw_sk, skb, dev, iph->saddr, daddr); |
saddr | 135 | net/ipv4/ip_masq.c | hash = ip_masq_hash_key(ms->protocol, ms->saddr, ms->sport); |
saddr | 170 | net/ipv4/ip_masq.c | hash = ip_masq_hash_key(ms->protocol, ms->saddr, ms->sport); |
saddr | 204 | net/ipv4/ip_masq.c | s_addr = iph->saddr; |
saddr | 235 | net/ipv4/ip_masq.c | s_addr = iph->saddr; |
saddr | 260 | net/ipv4/ip_masq.c | s_addr == ms->saddr && s_port == ms->sport && |
saddr | 317 | net/ipv4/ip_masq.c | struct ip_masq * ip_masq_new(struct device *dev, int proto, __u32 saddr, __u16 sport, __u32 daddr, __u16 dport, unsigned mflags) |
saddr | 344 | net/ipv4/ip_masq.c | ms->saddr = saddr; |
saddr | 417 | net/ipv4/ip_masq.c | static void recalc_check(struct udphdr *uh, __u32 saddr, |
saddr | 421 | net/ipv4/ip_masq.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
saddr | 451 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 466 | net/ipv4/ip_masq.c | iph->saddr, portptr[0], |
saddr | 481 | net/ipv4/ip_masq.c | iph->saddr = ms->maddr; |
saddr | 506 | net/ipv4/ip_masq.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 530 | net/ipv4/ip_masq.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb); |
saddr | 579 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 606 | net/ipv4/ip_masq.c | ms->daddr = iph->saddr; |
saddr | 613 | net/ipv4/ip_masq.c | iph->daddr = ms->saddr; |
saddr | 642 | net/ipv4/ip_masq.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 651 | net/ipv4/ip_masq.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb); |
saddr | 711 | net/ipv4/ip_masq.c | ntohl(ms->saddr), ntohs(ms->sport), |
saddr | 30 | net/ipv4/ip_options.c | __u32 daddr, __u32 saddr, |
saddr | 46 | net/ipv4/ip_options.c | memcpy(iph+opt->rr+iph[opt->rr+2]-5, &saddr, 4); |
saddr | 48 | net/ipv4/ip_options.c | memcpy(iph+opt->ts+iph[opt->ts+2]-9, &saddr, 4); |
saddr | 74 | net/ipv4/ip_options.c | __u32 daddr, __u32 saddr, |
saddr | 170 | net/ipv4/ip_options.c | if (memcmp(&saddr, &start[soffset+3], 4) == 0) |
saddr | 84 | net/ipv4/ip_output.c | newskb->saddr=skb->saddr; |
saddr | 95 | net/ipv4/ip_output.c | ip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
saddr | 119 | net/ipv4/ip_output.c | int ip_send(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
saddr | 156 | net/ipv4/ip_output.c | static int ip_send_room(struct rtable * rt, struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
saddr | 197 | net/ipv4/ip_output.c | int ip_build_header(struct sk_buff *skb, __u32 saddr, __u32 daddr, |
saddr | 244 | net/ipv4/ip_output.c | if ((LOOPBACK(saddr) && !LOOPBACK(daddr)) || !saddr) |
saddr | 245 | net/ipv4/ip_output.c | saddr = rt ? rt->rt_src : (*dev)->pa_addr; |
saddr | 261 | net/ipv4/ip_output.c | tmp = ip_send_room(rt, skb, raddr, len, *dev, saddr); |
saddr | 263 | net/ipv4/ip_output.c | tmp = ip_send(rt, skb, raddr, len, *dev, saddr); |
saddr | 272 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 301 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 582 | net/ipv4/ip_output.c | __u32 saddr; |
saddr | 603 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 604 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 606 | net/ipv4/ip_output.c | saddr = dev->pa_addr; |
saddr | 619 | net/ipv4/ip_output.c | saddr = rt->rt_src; |
saddr | 623 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 624 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 633 | net/ipv4/ip_output.c | saddr = user_saddr; |
saddr | 665 | net/ipv4/ip_output.c | skb->saddr=saddr; |
saddr | 699 | net/ipv4/ip_output.c | iph->saddr=saddr; |
saddr | 709 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
saddr | 712 | net/ipv4/ip_output.c | getfrag(frag,saddr,(void *)iph,0,length); |
saddr | 832 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 896 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 912 | net/ipv4/ip_output.c | getfrag(frag, saddr, data, offset, fraglen-fragheaderlen); |
saddr | 53 | net/ipv4/ipip.c | __u32 daddr, unsigned short len, __u32 saddr, |
saddr | 312 | net/ipv4/ipmr.c | cache->mfc_origin=skb->ip_hdr->saddr; |
saddr | 742 | net/ipv4/ipmr.c | cache=ipmr_cache_find(skb->ip_hdr->saddr,skb->ip_hdr->daddr); |
saddr | 132 | net/ipv4/packet.c | struct sockaddr_pkt *saddr=(struct sockaddr_pkt *)msg->msg_name; |
saddr | 146 | net/ipv4/packet.c | if (saddr) |
saddr | 151 | net/ipv4/packet.c | proto=saddr->spkt_protocol; |
saddr | 160 | net/ipv4/packet.c | saddr->spkt_device[13] = 0; |
saddr | 161 | net/ipv4/packet.c | dev = dev_get(saddr->spkt_device); |
saddr | 405 | net/ipv4/packet.c | struct sockaddr_pkt *saddr=(struct sockaddr_pkt *)msg->msg_name; |
saddr | 424 | net/ipv4/packet.c | *addr_len=sizeof(*saddr); |
saddr | 457 | net/ipv4/packet.c | if (saddr) |
saddr | 459 | net/ipv4/packet.c | saddr->spkt_family = skb->dev->type; |
saddr | 460 | net/ipv4/packet.c | strncpy(saddr->spkt_device,skb->dev->name, 15); |
saddr | 461 | net/ipv4/packet.c | saddr->spkt_protocol = skb->protocol; |
saddr | 99 | net/ipv4/proc.c | src = sp->saddr; |
saddr | 80 | net/ipv4/raw.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 134 | net/ipv4/raw.c | __u32 saddr, int redo, struct inet_protocol * protocol) |
saddr | 146 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
saddr | 154 | net/ipv4/raw.c | skb->saddr = daddr; |
saddr | 155 | net/ipv4/raw.c | skb->daddr = saddr; |
saddr | 183 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 192 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 198 | net/ipv4/raw.c | if(!iph->saddr) |
saddr | 199 | net/ipv4/raw.c | iph->saddr=saddr; |
saddr | 1399 | net/ipv4/route.c | __u32 saddr; |
saddr | 1443 | net/ipv4/route.c | saddr = fi->fib_dev->pa_addr; |
saddr | 1463 | net/ipv4/route.c | rth->rt_src = saddr; |
saddr | 501 | net/ipv4/tcp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 513 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr); |
saddr | 794 | net/ipv4/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 801 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 807 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 1077 | net/ipv4/tcp.c | tmp = sk->prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 1914 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1922 | net/ipv4/tcp.c | if ((rt = sk->ip_route_cache) != NULL && !sk->saddr) |
saddr | 1923 | net/ipv4/tcp.c | sk->saddr = rt->rt_src; |
saddr | 1924 | net/ipv4/tcp.c | sk->rcv_saddr = sk->saddr; |
saddr | 1985 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 140 | net/ipv4/tcp_input.c | static inline struct sock * get_tcp_sock(u32 saddr, u16 sport, u32 daddr, u16 dport) |
saddr | 145 | net/ipv4/tcp_input.c | if (!sk || saddr != th_cache_saddr || daddr != th_cache_daddr || |
saddr | 147 | net/ipv4/tcp_input.c | sk = get_sock(&tcp_prot, dport, saddr, sport, daddr); |
saddr | 149 | net/ipv4/tcp_input.c | th_cache_saddr=saddr; |
saddr | 178 | net/ipv4/tcp_input.c | tcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 319 | net/ipv4/tcp_input.c | u32 daddr, u32 saddr, struct options *opt, struct device *dev, u32 seq) |
saddr | 336 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 387 | net/ipv4/tcp_input.c | if (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) |
saddr | 455 | net/ipv4/tcp_input.c | newsk->daddr = saddr; |
saddr | 456 | net/ipv4/tcp_input.c | newsk->saddr = daddr; |
saddr | 479 | net/ipv4/tcp_input.c | rt = ip_rt_route(newsk->opt && newsk->opt->srr ? newsk->opt->faddr : saddr, 0); |
saddr | 1373 | net/ipv4/tcp_input.c | unsigned long saddr, unsigned int len) |
saddr | 1442 | net/ipv4/tcp_input.c | tcp_send_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 1593 | net/ipv4/tcp_input.c | __u32 saddr, int redo, struct inet_protocol * protocol) |
saddr | 1626 | net/ipv4/tcp_input.c | if (tcp_check(th, len, saddr, daddr, skb->csum)) |
saddr | 1631 | net/ipv4/tcp_input.c | sk = get_tcp_sock(saddr, th->source, daddr, th->dest); |
saddr | 1642 | net/ipv4/tcp_input.c | skb->saddr = daddr; |
saddr | 1643 | net/ipv4/tcp_input.c | skb->daddr = saddr; |
saddr | 1702 | net/ipv4/tcp_input.c | tcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
saddr | 1721 | net/ipv4/tcp_input.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
saddr | 1765 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, |
saddr | 1777 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, |
saddr | 1813 | net/ipv4/tcp_input.c | if(sk->saddr==saddr && sk->daddr==daddr && |
saddr | 1862 | net/ipv4/tcp_input.c | sk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 1868 | net/ipv4/tcp_input.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
saddr | 1899 | net/ipv4/tcp_input.c | tcp_send_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
saddr | 1918 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
saddr | 1942 | net/ipv4/tcp_input.c | if(tcp_data(skb,sk, saddr, len)) |
saddr | 1962 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 188 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 355 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 503 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 561 | net/ipv4/tcp_output.c | void tcp_send_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 594 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 628 | net/ipv4/tcp_output.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), buff); |
saddr | 667 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 704 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
saddr | 755 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 800 | net/ipv4/tcp_output.c | tcp_send_check(t1, newsk->saddr, newsk->daddr, sizeof(*t1)+4, buff); |
saddr | 913 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 932 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
saddr | 1024 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1072 | net/ipv4/tcp_output.c | tcp_send_check(nth, sk->saddr, sk->daddr, |
saddr | 1090 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1110 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
saddr | 153 | net/ipv4/udp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 164 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr); |
saddr | 209 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 211 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
saddr | 229 | net/ipv4/udp.c | static void udp_getfrag(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 253 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
saddr | 269 | net/ipv4/udp.c | static void udp_getfrag_nosum(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 300 | net/ipv4/udp.c | __u32 saddr, int noblock) |
saddr | 325 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock); |
saddr | 328 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock); |
saddr | 341 | net/ipv4/udp.c | __u32 saddr=0; |
saddr | 396 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags, saddr, noblock); |
saddr | 561 | net/ipv4/udp.c | if(!sk->saddr) |
saddr | 562 | net/ipv4/udp.c | sk->saddr = rt->rt_src; /* Update source address */ |
saddr | 623 | net/ipv4/udp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 678 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_HW) && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
saddr | 679 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_NONE) && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
saddr | 691 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
saddr | 703 | net/ipv4/udp.c | skb->daddr = saddr; |
saddr | 704 | net/ipv4/udp.c | skb->saddr = daddr; |
saddr | 719 | net/ipv4/udp.c | saddr, uh->source, daddr); |
saddr | 726 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
saddr | 742 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
saddr | 746 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 747 | net/ipv4/udp.c | uh_cache_saddr=saddr; |
saddr | 78 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
saddr | 82 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |