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 | 349 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 436 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 438 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 446 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 450 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 1807 | drivers/net/arcnet.c | u_char daddr,saddr; |
saddr | 1809 | drivers/net/arcnet.c | saddr=arcpacket->hardheader.source; |
saddr | 1813 | drivers/net/arcnet.c | if (saddr==0) |
saddr | 1838 | drivers/net/arcnet.c | saddr,daddr,length); |
saddr | 1848 | drivers/net/arcnet.c | length,saddr,daddr); |
saddr | 1851 | drivers/net/arcnet.c | arcnetE_rx(dev,arcsoft,length,saddr,daddr); |
saddr | 1893 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 1919 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 1952 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 1973 | drivers/net/arcnet.c | saddr); |
saddr | 1974 | drivers/net/arcnet.c | *cptr=saddr; |
saddr | 2027 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2145 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2183 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2273 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 2277 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 2320 | drivers/net/arcnet.c | if(saddr) |
saddr | 2321 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 2323 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 153 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 418 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 1100 | drivers/net/ibmtr.c | if(!(trhdr->saddr[0] & 0x80)) { |
saddr | 1187 | drivers/net/ibmtr.c | llc->ssap,llc->dsap,trhdr->saddr[0],trhdr->saddr[1],trhdr->saddr[2],trhdr->saddr[3],trhdr->saddr[4],trhdr->saddr[5], |
saddr | 1079 | drivers/net/pi2.c | void *daddr, void *saddr, unsigned len) |
saddr | 1081 | drivers/net/pi2.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 123 | drivers/net/ppp.c | unsigned long saddr, unsigned len); |
saddr | 1149 | drivers/net/ppp.c | iph->saddr, iph->daddr, count)) |
saddr | 1818 | drivers/net/ppp.c | dev->name, (int) proto, (int) len, (int) iph->saddr, |
saddr | 1870 | drivers/net/ppp.c | unsigned long daddr, unsigned long saddr, unsigned len) |
saddr | 1890 | drivers/net/ppp.c | void *daddr, void *saddr, unsigned len) |
saddr | 297 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
saddr | 534 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
saddr | 541 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 111 | drivers/net/tunnel.c | ipaddr=(unsigned char *)&ip->saddr; |
saddr | 185 | drivers/net/tunnel.c | if ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) |
saddr | 235 | drivers/net/tunnel.c | iph->saddr = dev->pa_addr; |
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 | 81 | include/asm-i386/checksum.h | static inline unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 97 | include/asm-i386/checksum.h | : "=&r" (sum), "=&r" (saddr) |
saddr | 98 | include/asm-i386/checksum.h | : "0" (daddr), "1"(saddr), "r"((ntohs(len)<<16)+proto*256), "r"(sum)); |
saddr | 11 | include/asm-sparc/ipsum.h | extern inline unsigned short udp_check(struct udphdr *uh, int len, u32 saddr, u32 daddr) |
saddr | 20 | include/asm-sparc/ipsum.h | extern inline unsigned short tcp_check(struct tcphdr *th, int len, u32 saddr, u32 daddr) |
saddr | 33 | include/linux/etherdevice.h | void *saddr, unsigned len); |
saddr | 37 | include/linux/etherdevice.h | extern void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
saddr | 51 | include/linux/if_tr.h | unsigned char saddr[TR_ALEN]; /* source address */ |
saddr | 107 | include/linux/ip.h | __u32 saddr; |
saddr | 155 | include/linux/netdevice.h | void *saddr, |
saddr | 168 | include/linux/netdevice.h | void (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
saddr | 67 | include/linux/skbuff.h | unsigned long saddr; /* IP source address */ |
saddr | 33 | include/linux/trdevice.h | void *saddr, unsigned len); |
saddr | 12 | include/net/arp.h | struct device *dev, u32 saddr, struct sk_buff *skb); |
saddr | 30 | include/net/icmp.h | unsigned short len, __u32 saddr, |
saddr | 81 | include/net/ip.h | __u32 saddr, |
saddr | 92 | include/net/ip.h | __u32 daddr, __u32 saddr, |
saddr | 112 | include/net/ip.h | __u32 saddr, |
saddr | 2 | include/net/ipip.h | __u32 daddr, unsigned short len, __u32 saddr, |
saddr | 34 | include/net/protocol.h | unsigned short len, __u32 saddr, |
saddr | 38 | include/net/protocol.h | __u32 saddr, |
saddr | 25 | include/net/raw.h | __u32 saddr, struct inet_protocol *protocol); |
saddr | 131 | include/net/sock.h | __u32 saddr; |
saddr | 264 | include/net/sock.h | __u32 saddr, |
saddr | 280 | include/net/sock.h | unsigned short len, __u32 saddr, |
saddr | 131 | include/net/tcp.h | unsigned short len, __u32 saddr, int redo, |
saddr | 137 | include/net/tcp.h | extern void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
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 | 2246 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
saddr | 2261 | net/ax25/af_ax25.c | if (saddr != NULL) |
saddr | 2262 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
saddr | 619 | net/core/skbuff.c | n->saddr=skb->saddr; |
saddr | 557 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 88 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
saddr | 106 | net/ethernet/eth.c | if(saddr) |
saddr | 107 | net/ethernet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 217 | net/ethernet/eth.c | void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr) |
saddr | 210 | net/ipv4/af_inet.c | if ((mask & sk->saddr) && |
saddr | 211 | net/ipv4/af_inet.c | (mask & sk->saddr) != (mask & 0xffffffff)) |
saddr | 221 | net/ipv4/af_inet.c | if (!(sk2->saddr & mask)) |
saddr | 684 | net/ipv4/af_inet.c | sk->saddr = 0 /* ip_my_addr() */; |
saddr | 910 | net/ipv4/af_inet.c | sk->saddr = addr->sin_addr.s_addr; |
saddr | 930 | net/ipv4/af_inet.c | if (sk2->saddr != sk->saddr) |
saddr | 1152 | net/ipv4/af_inet.c | if (sk->saddr == 0) |
saddr | 1155 | net/ipv4/af_inet.c | sin->sin_addr.s_addr = sk->saddr; |
saddr | 1417 | net/ipv4/af_inet.c | if (s->saddr) { |
saddr | 1418 | net/ipv4/af_inet.c | if (s->saddr != laddr) |
saddr | 1467 | net/ipv4/af_inet.c | if(s->saddr && s->saddr!=laddr) |
saddr | 1510 | net/ipv4/af_inet.c | if(s->saddr && s->saddr!=laddr) |
saddr | 920 | net/ipv4/arp.c | u32 saddr, struct sk_buff *skb) |
saddr | 1042 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
saddr | 148 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
saddr | 197 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 228 | net/ipv4/icmp.c | static void icmp_build_xmit(struct icmp_bxm *icmp_param, __u32 saddr, __u32 daddr) |
saddr | 236 | net/ipv4/icmp.c | daddr, saddr, &icmp_param->replyopts, 0, IPPROTO_ICMP); |
saddr | 256 | net/ipv4/icmp.c | __u32 saddr; |
saddr | 313 | net/ipv4/icmp.c | saddr=iph->daddr; |
saddr | 314 | net/ipv4/icmp.c | if(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR) |
saddr | 315 | net/ipv4/icmp.c | saddr=dev->pa_addr; |
saddr | 327 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0) |
saddr | 328 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, saddr, iph->saddr); |
saddr | 336 | 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 | 412 | net/ipv4/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 502 | 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 | 509 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 510 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 522 | 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 | 554 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 555 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 572 | 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 | 583 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 584 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 589 | 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 | 600 | net/ipv4/icmp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 613 | net/ipv4/icmp.c | printk("ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 653 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
saddr | 214 | net/ipv4/igmp.c | __u32 daddr, unsigned short len, __u32 saddr, int redo, |
saddr | 228 | net/ipv4/igmp.c | dev=ip_dev_find(saddr); |
saddr | 181 | net/ipv4/ip.c | __u32 daddr, __u32 saddr, |
saddr | 195 | net/ipv4/ip.c | memcpy(iph+opt->rr+iph[opt->rr+2]-5, &saddr, 4); |
saddr | 197 | net/ipv4/ip.c | memcpy(iph+opt->ts+iph[opt->ts+2]-9, &saddr, 4); |
saddr | 220 | net/ipv4/ip.c | __u32 daddr, __u32 saddr, |
saddr | 305 | net/ipv4/ip.c | if (memcmp(&saddr, &start[soffset+3], 4) == 0) |
saddr | 589 | net/ipv4/ip.c | static int ip_send(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
saddr | 613 | net/ipv4/ip.c | static int ip_send_room(struct sk_buff *skb, __u32 daddr, int len, struct device *dev, __u32 saddr) |
saddr | 641 | net/ipv4/ip.c | int ip_build_header(struct sk_buff *skb, __u32 saddr, __u32 daddr, |
saddr | 679 | net/ipv4/ip.c | if (LOOPBACK(saddr) && !LOOPBACK(daddr)) |
saddr | 680 | net/ipv4/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 697 | net/ipv4/ip.c | if (LOOPBACK(saddr) && !LOOPBACK(daddr)) |
saddr | 698 | net/ipv4/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 706 | net/ipv4/ip.c | if (saddr == 0) |
saddr | 707 | net/ipv4/ip.c | saddr = src; |
saddr | 720 | net/ipv4/ip.c | tmp = ip_send_room(skb, raddr, len, *dev, saddr); |
saddr | 722 | net/ipv4/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
saddr | 729 | net/ipv4/ip.c | skb->saddr = saddr; |
saddr | 758 | net/ipv4/ip.c | iph->saddr = saddr; |
saddr | 836 | net/ipv4/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 1494 | net/ipv4/ip.c | iph->saddr = out->pa_addr; |
saddr | 1654 | net/ipv4/ip.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && |
saddr | 2150 | net/ipv4/ip.c | raw_sk=get_sock_raw(raw_sk, iph->protocol, iph->saddr, iph->daddr); |
saddr | 2156 | net/ipv4/ip.c | sknext=get_sock_raw(raw_sk->next, iph->protocol, iph->saddr, iph->daddr); |
saddr | 2162 | net/ipv4/ip.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); |
saddr | 2219 | net/ipv4/ip.c | iph->saddr, 0, ipprot); |
saddr | 2254 | net/ipv4/ip.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); |
saddr | 2317 | net/ipv4/ip.c | newskb->saddr=skb->saddr; |
saddr | 2328 | net/ipv4/ip.c | ip_send(newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
saddr | 3090 | net/ipv4/ip.c | __u32 saddr; |
saddr | 3110 | net/ipv4/ip.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 3111 | net/ipv4/ip.c | saddr = sk->saddr; |
saddr | 3113 | net/ipv4/ip.c | saddr = dev->pa_addr; |
saddr | 3132 | net/ipv4/ip.c | saddr=sk->ip_route_saddr; |
saddr | 3135 | net/ipv4/ip.c | (sk->saddr && sk->saddr != saddr)) |
saddr | 3138 | net/ipv4/ip.c | rt = ip_rt_local(daddr, NULL, &saddr); |
saddr | 3140 | net/ipv4/ip.c | rt = ip_rt_route(daddr, NULL, &saddr); |
saddr | 3143 | net/ipv4/ip.c | sk->ip_route_saddr=saddr; |
saddr | 3160 | net/ipv4/ip.c | rt->rt_dev->header_cache(rt->rt_dev,sk,saddr,daddr); |
saddr | 3173 | net/ipv4/ip.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 3174 | net/ipv4/ip.c | saddr = sk->saddr; |
saddr | 3181 | net/ipv4/ip.c | saddr = user_saddr; |
saddr | 3214 | net/ipv4/ip.c | skb->saddr=saddr; |
saddr | 3241 | net/ipv4/ip.c | iph->saddr=saddr; |
saddr | 3250 | net/ipv4/ip.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
saddr | 3253 | net/ipv4/ip.c | getfrag(frag,saddr,(void *)iph,0,length-20); |
saddr | 3370 | net/ipv4/ip.c | skb->saddr = saddr; |
saddr | 3427 | net/ipv4/ip.c | iph->saddr = saddr; |
saddr | 3443 | net/ipv4/ip.c | getfrag(frag, saddr, data, offset, fraglen-fragheaderlen); |
saddr | 206 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 253 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 302 | net/ipv4/ip_fw.c | dprint_ip(ip->saddr); |
saddr | 448 | net/ipv4/ip_fw.c | print_ip(ip->saddr); |
saddr | 731 | net/ipv4/ip_fw.c | static void recalc_check(struct udphdr *uh, unsigned long saddr, |
saddr | 735 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
saddr | 766 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 772 | net/ipv4/ip_fw.c | iph->saddr == ms->src && iph->daddr == ms->dst && |
saddr | 794 | net/ipv4/ip_fw.c | ms->src = iph->saddr; |
saddr | 805 | net/ipv4/ip_fw.c | iph->saddr = dev->pa_addr; /* my own address */ |
saddr | 815 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 840 | net/ipv4/ip_fw.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk); |
saddr | 877 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 893 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && |
saddr | 905 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 917 | net/ipv4/ip_fw.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk); |
saddr | 63 | net/ipv4/ipip.c | __u32 daddr, unsigned short len, __u32 saddr, |
saddr | 314 | net/ipv4/ipmr.c | cache->mfc_origin=skb->ip_hdr->saddr; |
saddr | 733 | net/ipv4/ipmr.c | cache=ipmr_cache_find(skb->ip_hdr->saddr,skb->ip_hdr->daddr); |
saddr | 150 | net/ipv4/packet.c | struct sockaddr *saddr=(struct sockaddr *)usin; |
saddr | 165 | net/ipv4/packet.c | if (addr_len < sizeof(*saddr)) |
saddr | 175 | net/ipv4/packet.c | saddr->sa_data[13] = 0; |
saddr | 176 | net/ipv4/packet.c | dev = dev_get(saddr->sa_data); |
saddr | 293 | net/ipv4/packet.c | struct sockaddr *saddr; |
saddr | 296 | net/ipv4/packet.c | saddr = (struct sockaddr *)sin; |
saddr | 307 | net/ipv4/packet.c | *addr_len=sizeof(*saddr); |
saddr | 340 | net/ipv4/packet.c | if (saddr) |
saddr | 342 | net/ipv4/packet.c | saddr->sa_family = skb->dev->type; |
saddr | 343 | net/ipv4/packet.c | memcpy(saddr->sa_data,skb->dev->name, 14); |
saddr | 89 | net/ipv4/proc.c | src = sp->saddr; |
saddr | 77 | net/ipv4/raw.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 116 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
saddr | 124 | net/ipv4/raw.c | skb->saddr = daddr; |
saddr | 125 | net/ipv4/raw.c | skb->daddr = saddr; |
saddr | 150 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 159 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 165 | net/ipv4/raw.c | iph->saddr=saddr; |
saddr | 722 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 1039 | net/ipv4/tcp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 1049 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr); |
saddr | 1304 | net/ipv4/tcp.c | unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 1306 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
saddr | 1311 | net/ipv4/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 1315 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 1413 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 1553 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
saddr | 1611 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk); |
saddr | 1898 | net/ipv4/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 2036 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 2062 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2540 | net/ipv4/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 2579 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2695 | net/ipv4/tcp.c | static void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 2727 | net/ipv4/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 2769 | net/ipv4/tcp.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), NULL); |
saddr | 2872 | net/ipv4/tcp.c | unsigned long daddr, unsigned long saddr, |
saddr | 2895 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 2940 | net/ipv4/tcp.c | if (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) { |
saddr | 3002 | net/ipv4/tcp.c | newsk->daddr = saddr; |
saddr | 3003 | net/ipv4/tcp.c | newsk->saddr = daddr; |
saddr | 3034 | net/ipv4/tcp.c | rt=ip_rt_route(saddr, NULL,NULL); |
saddr | 3048 | net/ipv4/tcp.c | if ((saddr ^ daddr) & default_mask(saddr)) |
saddr | 3050 | net/ipv4/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
saddr | 3091 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 3140 | net/ipv4/tcp.c | tcp_send_check(t1, daddr, saddr, sizeof(*t1)+4, newsk); |
saddr | 3297 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 3321 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
saddr | 4012 | net/ipv4/tcp.c | unsigned long saddr, unsigned short len) |
saddr | 4037 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr); |
saddr | 4083 | net/ipv4/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 4307 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4313 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4371 | net/ipv4/tcp.c | unsigned long saddr, unsigned long len) |
saddr | 4530 | net/ipv4/tcp.c | rt=ip_rt_local(sk->daddr, NULL, sk->saddr ? NULL : &sk->saddr); |
saddr | 4532 | net/ipv4/tcp.c | rt=ip_rt_route(sk->daddr, NULL, sk->saddr ? NULL : &sk->saddr); |
saddr | 4538 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 4577 | net/ipv4/tcp.c | if ((sk->saddr ^ sk->daddr) & default_mask(sk->saddr)) |
saddr | 4579 | net/ipv4/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
saddr | 4603 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 4633 | net/ipv4/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
saddr | 4675 | net/ipv4/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 4680 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4723 | net/ipv4/tcp.c | __u32 saddr, int redo, struct inet_protocol * protocol) |
saddr | 4742 | net/ipv4/tcp.c | if(saddr==th_cache_saddr && daddr==th_cache_daddr && th->dest==th_cache_dport && th->source==th_cache_sport) |
saddr | 4748 | net/ipv4/tcp.c | if(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr)) |
saddr | 4753 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 4754 | net/ipv4/tcp.c | th_cache_saddr=saddr; |
saddr | 4783 | net/ipv4/tcp.c | (skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))|| |
saddr | 4784 | net/ipv4/tcp.c | (!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0))) |
saddr | 4803 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 4816 | net/ipv4/tcp.c | skb->saddr = daddr; |
saddr | 4817 | net/ipv4/tcp.c | skb->daddr = saddr; |
saddr | 4834 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 4880 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
saddr | 4900 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
saddr | 4934 | net/ipv4/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
saddr | 4939 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 4985 | net/ipv4/tcp.c | if(sk->saddr==saddr && sk->daddr==daddr && |
saddr | 5031 | net/ipv4/tcp.c | sk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 5037 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
saddr | 5053 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
saddr | 5069 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
saddr | 5078 | net/ipv4/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
saddr | 5086 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
saddr | 5099 | net/ipv4/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
saddr | 5111 | net/ipv4/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
saddr | 5212 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 5295 | net/ipv4/tcp.c | tcp_send_check(nth, sk->saddr, sk->daddr, |
saddr | 5312 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 5340 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 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); |
saddr | 154 | net/ipv4/udp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 165 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr); |
saddr | 204 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 206 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
saddr | 224 | net/ipv4/udp.c | static void udp_getfrag(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 248 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
saddr | 264 | net/ipv4/udp.c | static void udp_getfrag_nosum(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 295 | net/ipv4/udp.c | __u32 saddr) |
saddr | 325 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP); |
saddr | 328 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP); |
saddr | 341 | net/ipv4/udp.c | __u32 saddr=0; |
saddr | 396 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags, saddr); |
saddr | 550 | net/ipv4/udp.c | sk->saddr = sa; /* Update source address */ |
saddr | 580 | net/ipv4/udp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 620 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
saddr | 621 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
saddr | 632 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
saddr | 651 | net/ipv4/udp.c | saddr, uh->source, daddr); |
saddr | 658 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
saddr | 664 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
saddr | 674 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
saddr | 678 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 679 | net/ipv4/udp.c | uh_cache_saddr=saddr; |
saddr | 701 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
saddr | 704 | 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) |
saddr | 714 | net/ipv4/udp.c | skb->daddr = saddr; |
saddr | 715 | net/ipv4/udp.c | skb->saddr = daddr; |
saddr | 76 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
saddr | 80 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |