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 | 60 | arch/ppc/kernel/stubs.c | _udp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
saddr | 63 | arch/ppc/kernel/stubs.c | udp_check(unsigned char *buf, int len, int saddr, int daddr) |
saddr | 68 | arch/ppc/kernel/stubs.c | _val = _udp_check(buf, len, saddr, daddr, hdr); |
saddr | 70 | arch/ppc/kernel/stubs.c | printk("UDP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
saddr | 77 | arch/ppc/kernel/stubs.c | _tcp_check(unsigned char *buf, int len, int saddr, int daddr, int hdr); |
saddr | 80 | arch/ppc/kernel/stubs.c | tcp_check(unsigned char *buf, int len, int saddr, int daddr) |
saddr | 85 | arch/ppc/kernel/stubs.c | if (saddr == 0) saddr = ip_my_addr(); |
saddr | 86 | arch/ppc/kernel/stubs.c | _val = _tcp_check(buf, len, saddr, daddr, hdr); |
saddr | 88 | arch/ppc/kernel/stubs.c | printk("TCP CSUM(%x,%d,%x,%x) = %x\n", buf, len, saddr, daddr, _val); |
saddr | 494 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 514 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 611 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 613 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 615 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 624 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 627 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 631 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 633 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 2193 | drivers/net/arcnet.c | u_char daddr,saddr; |
saddr | 2197 | drivers/net/arcnet.c | saddr=arcpacket->hardheader.source; |
saddr | 2201 | drivers/net/arcnet.c | if (saddr==0) |
saddr | 2225 | drivers/net/arcnet.c | saddr,daddr,length); |
saddr | 2235 | drivers/net/arcnet.c | arcnetA_rx(lp->adev,arcsoft,length,saddr,daddr); |
saddr | 2238 | drivers/net/arcnet.c | arcnetE_rx(lp->edev,arcsoft,length,saddr,daddr); |
saddr | 2242 | drivers/net/arcnet.c | arcnetS_rx(lp->sdev,arcsoft,length,saddr,daddr); |
saddr | 2247 | drivers/net/arcnet.c | arcsoft[0],arcsoft[0],saddr); |
saddr | 2287 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2314 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2347 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2367 | drivers/net/arcnet.c | saddr); |
saddr | 2369 | drivers/net/arcnet.c | *cptr=saddr; |
saddr | 2422 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2430 | drivers/net/arcnet.c | saddr,in->sequence,arcsoft->sequence, |
saddr | 2543 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2585 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2630 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2662 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2734 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 2738 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 2750 | drivers/net/arcnet.c | saddr ? *(u_char*)saddr : -1, |
saddr | 2790 | drivers/net/arcnet.c | if(saddr) |
saddr | 2791 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 2793 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 2818 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len, |
saddr | 2822 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 2860 | drivers/net/arcnet.c | if(saddr) |
saddr | 2861 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 2863 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 2910 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 2913 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 149 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 410 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 1090 | drivers/net/ibmtr.c | if(!(trhdr->saddr[0] & 0x80)) { |
saddr | 1177 | 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 | 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 | 203 | drivers/net/ppp.c | unsigned short type, void *daddr, void *saddr, |
saddr | 218 | drivers/net/ppp.c | sk_buff *skb, void *saddr, void *daddr); |
saddr | 220 | drivers/net/ppp.c | int subid, void *saddr, void *daddr, void *opt); |
saddr | 3233 | drivers/net/ppp.c | sk_buff *skb, void *saddr, void *daddr) |
saddr | 3239 | drivers/net/ppp.c | int subid, void *saddr, void *daddr, void *opt) |
saddr | 3283 | drivers/net/ppp.c | unsigned short type, void *daddr, void *saddr, |
saddr | 3288 | drivers/net/ppp.c | void *saddr, unsigned 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 | 294 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
saddr | 531 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len) |
saddr | 538 | drivers/net/slip.c | return ax25_encapsulate(skb, dev, type, daddr, saddr, len); |
saddr | 106 | drivers/net/tunnel.c | ipaddr=(unsigned char *)&ip->saddr; |
saddr | 180 | drivers/net/tunnel.c | if ( iph->protocol == IPPROTO_IPIP && iph->saddr == dev->pa_addr ) |
saddr | 230 | 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 | 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 | 151 | include/asm-sparc/checksum.h | extern inline unsigned short int csum_tcpudp_magic(unsigned long saddr, |
saddr | 157 | include/asm-sparc/checksum.h | return ~from32to16 (((saddr >> 16) + (saddr & 0xffff) + (daddr >> 16) |
saddr | 33 | include/linux/etherdevice.h | void *saddr, unsigned len); |
saddr | 51 | include/linux/if_tr.h | unsigned char saddr[TR_ALEN]; /* source address */ |
saddr | 107 | include/linux/ip.h | __u32 saddr; |
saddr | 171 | include/linux/netdevice.h | void *saddr, |
saddr | 67 | 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 | 30 | include/net/icmp.h | unsigned short len, __u32 saddr, |
saddr | 88 | 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 | 90 | include/net/ip.h | __u32 saddr, |
saddr | 98 | include/net/ip.h | __u32 daddr, __u32 saddr, |
saddr | 116 | include/net/ip.h | __u32 saddr, |
saddr | 141 | include/net/ip.h | extern void ip_options_build(struct sk_buff *skb, struct options *opt, __u32 daddr, __u32 saddr, int is_frag); |
saddr | 142 | include/net/ip.h | extern int ip_options_echo(struct options *dopt, struct options *sopt, __u32 daddr, __u32 saddr, struct sk_buff *skb); |
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 | 148 | include/net/sock.h | __u32 saddr; /* Sending source */ |
saddr | 277 | include/net/sock.h | __u32 saddr, |
saddr | 293 | 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 | 2240 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
saddr | 2255 | net/ax25/af_ax25.c | if (saddr != NULL) |
saddr | 2256 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
saddr | 673 | net/core/skbuff.c | n->saddr=skb->saddr; |
saddr | 564 | net/core/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 90 | net/ethernet/eth.c | void *daddr, void *saddr, unsigned len) |
saddr | 108 | net/ethernet/eth.c | if(saddr) |
saddr | 109 | net/ethernet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 880 | net/ipv4/af_inet.c | sk->saddr = 0; /* Use device */ |
saddr | 882 | net/ipv4/af_inet.c | sk->saddr = addr->sin_addr.s_addr; |
saddr | 1114 | net/ipv4/af_inet.c | addr = sk->saddr; |
saddr | 1182 | net/ipv4/arp.c | u32 saddr, struct sk_buff *skb) |
saddr | 1305 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
saddr | 151 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
saddr | 200 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 231 | net/ipv4/icmp.c | static void icmp_build_xmit(struct icmp_bxm *icmp_param, __u32 saddr, __u32 daddr) |
saddr | 239 | net/ipv4/icmp.c | daddr, saddr, &icmp_param->replyopts, 0, IPPROTO_ICMP, 1); |
saddr | 259 | net/ipv4/icmp.c | __u32 saddr; |
saddr | 316 | net/ipv4/icmp.c | saddr=iph->daddr; |
saddr | 317 | net/ipv4/icmp.c | if(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR) |
saddr | 318 | net/ipv4/icmp.c | saddr=dev->pa_addr; |
saddr | 330 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0) |
saddr | 331 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, saddr, iph->saddr); |
saddr | 339 | 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 | 457 | net/ipv4/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 540 | 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 | 547 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 548 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 560 | 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 | 592 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 593 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 610 | 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 | 621 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 622 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 627 | 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 | 638 | net/ipv4/icmp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 651 | net/ipv4/icmp.c | printk(KERN_INFO "ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 696 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |
saddr | 408 | net/ipv4/igmp.c | __u32 daddr, unsigned short len, __u32 saddr, int redo, |
saddr | 422 | net/ipv4/igmp.c | dev=ip_dev_find(saddr); |
saddr | 438 | net/ipv4/igmp.c | if(saddr==0) |
saddr | 57 | net/ipv4/ip_forward.c | iph->saddr = out->pa_addr; |
saddr | 208 | net/ipv4/ip_forward.c | if (dev == dev2 && !((iph->saddr^iph->daddr)&dev->pa_mask) && |
saddr | 138 | net/ipv4/ip_fragment.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 208 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 255 | net/ipv4/ip_fw.c | src = ip->saddr; |
saddr | 304 | net/ipv4/ip_fw.c | dprint_ip(ip->saddr); |
saddr | 450 | net/ipv4/ip_fw.c | print_ip(ip->saddr); |
saddr | 780 | net/ipv4/ip_fw.c | static void recalc_check(struct udphdr *uh, unsigned long saddr, |
saddr | 784 | net/ipv4/ip_fw.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
saddr | 815 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 821 | net/ipv4/ip_fw.c | iph->saddr == ms->src && iph->daddr == ms->dst && |
saddr | 843 | net/ipv4/ip_fw.c | ms->src = iph->saddr; |
saddr | 854 | net/ipv4/ip_fw.c | iph->saddr = dev->pa_addr; /* my own address */ |
saddr | 864 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 889 | net/ipv4/ip_fw.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb->sk); |
saddr | 926 | net/ipv4/ip_fw.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 943 | net/ipv4/ip_fw.c | (iph->saddr==ms->dst || iph->protocol==IPPROTO_UDP) && |
saddr | 964 | net/ipv4/ip_fw.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 994 | net/ipv4/ip_fw.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb_ptr->sk); |
saddr | 283 | net/ipv4/ip_input.c | skb->dev = dev = net_alias_dev_rcv_sel32(skb->dev, AF_INET, iph->saddr, iph->daddr); |
saddr | 476 | net/ipv4/ip_input.c | raw_sk=get_sock_raw(raw_sk, iph->protocol, iph->saddr, iph->daddr); |
saddr | 482 | net/ipv4/ip_input.c | sknext=get_sock_raw(raw_sk->next, iph->protocol, iph->saddr, iph->daddr); |
saddr | 488 | net/ipv4/ip_input.c | raw_rcv(raw_sk, skb1, dev, iph->saddr,iph->daddr); |
saddr | 545 | net/ipv4/ip_input.c | iph->saddr, 0, ipprot); |
saddr | 580 | net/ipv4/ip_input.c | raw_rcv(raw_sk, skb, dev, iph->saddr, iph->daddr); |
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 | 78 | net/ipv4/ip_output.c | newskb->saddr=skb->saddr; |
saddr | 89 | net/ipv4/ip_output.c | ip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
saddr | 113 | 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 | 150 | 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 | 191 | net/ipv4/ip_output.c | int ip_build_header(struct sk_buff *skb, __u32 saddr, __u32 daddr, |
saddr | 238 | net/ipv4/ip_output.c | if ((LOOPBACK(saddr) && !LOOPBACK(daddr)) || !saddr) |
saddr | 239 | net/ipv4/ip_output.c | saddr = rt ? rt->rt_src : (*dev)->pa_addr; |
saddr | 262 | net/ipv4/ip_output.c | tmp = ip_send_room(rt, skb, raddr, len, *dev, saddr); |
saddr | 264 | net/ipv4/ip_output.c | tmp = ip_send(rt, skb, raddr, len, *dev, saddr); |
saddr | 273 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 302 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 578 | net/ipv4/ip_output.c | __u32 saddr; |
saddr | 599 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 600 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 602 | net/ipv4/ip_output.c | saddr = dev->pa_addr; |
saddr | 615 | net/ipv4/ip_output.c | saddr = rt->rt_src; |
saddr | 619 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 620 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 629 | net/ipv4/ip_output.c | saddr = user_saddr; |
saddr | 659 | net/ipv4/ip_output.c | skb->saddr=saddr; |
saddr | 693 | net/ipv4/ip_output.c | iph->saddr=saddr; |
saddr | 703 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
saddr | 706 | net/ipv4/ip_output.c | getfrag(frag,saddr,(void *)iph,0,length-20); |
saddr | 826 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 890 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 906 | 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 | 311 | net/ipv4/ipmr.c | cache->mfc_origin=skb->ip_hdr->saddr; |
saddr | 737 | net/ipv4/ipmr.c | cache=ipmr_cache_find(skb->ip_hdr->saddr,skb->ip_hdr->daddr); |
saddr | 128 | net/ipv4/packet.c | struct sockaddr *saddr=(struct sockaddr *)msg->msg_name; |
saddr | 141 | net/ipv4/packet.c | if (saddr) |
saddr | 143 | net/ipv4/packet.c | if (msg->msg_namelen < sizeof(*saddr)) |
saddr | 153 | net/ipv4/packet.c | saddr->sa_data[13] = 0; |
saddr | 154 | net/ipv4/packet.c | dev = dev_get(saddr->sa_data); |
saddr | 384 | net/ipv4/packet.c | struct sockaddr *saddr=(struct sockaddr *)msg->msg_name; |
saddr | 403 | net/ipv4/packet.c | *addr_len=sizeof(*saddr); |
saddr | 436 | net/ipv4/packet.c | if (saddr) |
saddr | 438 | net/ipv4/packet.c | saddr->sa_family = skb->dev->type; |
saddr | 439 | net/ipv4/packet.c | memcpy(saddr->sa_data,skb->dev->name, 14); |
saddr | 89 | net/ipv4/proc.c | src = sp->saddr; |
saddr | 80 | net/ipv4/raw.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 119 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
saddr | 127 | net/ipv4/raw.c | skb->saddr = daddr; |
saddr | 128 | net/ipv4/raw.c | skb->daddr = saddr; |
saddr | 163 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 172 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 178 | net/ipv4/raw.c | iph->saddr=saddr; |
saddr | 1471 | net/ipv4/route.c | __u32 saddr; |
saddr | 1505 | net/ipv4/route.c | saddr = fi->fib_dev->pa_addr; |
saddr | 1525 | net/ipv4/route.c | rth->rt_src = saddr; |
saddr | 737 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 1059 | net/ipv4/tcp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 1071 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr); |
saddr | 1351 | net/ipv4/tcp.c | unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 1353 | net/ipv4/tcp.c | return csum_tcpudp_magic(saddr,daddr,len,IPPROTO_TCP,base); |
saddr | 1358 | net/ipv4/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 1362 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 1461 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 1601 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
saddr | 1659 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk); |
saddr | 1987 | net/ipv4/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 2106 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 2132 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2627 | net/ipv4/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 2667 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2752 | net/ipv4/tcp.c | static void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 2784 | net/ipv4/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 2826 | net/ipv4/tcp.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), NULL); |
saddr | 2929 | net/ipv4/tcp.c | unsigned long daddr, unsigned long saddr, |
saddr | 2952 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 2998 | net/ipv4/tcp.c | if (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) { |
saddr | 3060 | net/ipv4/tcp.c | newsk->daddr = saddr; |
saddr | 3061 | net/ipv4/tcp.c | newsk->saddr = daddr; |
saddr | 3093 | net/ipv4/tcp.c | rt = ip_rt_route(newsk->opt && newsk->opt->srr ? newsk->opt->faddr : saddr, 0); |
saddr | 3156 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 3206 | net/ipv4/tcp.c | tcp_send_check(t1, daddr, saddr, sizeof(*t1)+4, newsk); |
saddr | 3370 | net/ipv4/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 3394 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
saddr | 4092 | net/ipv4/tcp.c | unsigned long saddr, unsigned short len) |
saddr | 4117 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr); |
saddr | 4163 | net/ipv4/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 4381 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4387 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4445 | net/ipv4/tcp.c | unsigned long saddr, unsigned long len) |
saddr | 4608 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 4616 | net/ipv4/tcp.c | if ((rt = sk->ip_route_cache) != NULL && !sk->saddr) |
saddr | 4617 | net/ipv4/tcp.c | sk->saddr = rt->rt_src; |
saddr | 4618 | net/ipv4/tcp.c | sk->rcv_saddr = sk->saddr; |
saddr | 4684 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 4718 | net/ipv4/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
saddr | 4760 | net/ipv4/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 4765 | net/ipv4/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 4808 | net/ipv4/tcp.c | __u32 saddr, int redo, struct inet_protocol * protocol) |
saddr | 4827 | net/ipv4/tcp.c | if(!redo && saddr==th_cache_saddr && daddr==th_cache_daddr && th->dest==th_cache_dport && th->source==th_cache_sport) |
saddr | 4833 | net/ipv4/tcp.c | if(sk!=get_sock(&tcp_prot,th->dest, saddr, th->source, daddr)) |
saddr | 4838 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 4839 | net/ipv4/tcp.c | th_cache_saddr=saddr; |
saddr | 4868 | net/ipv4/tcp.c | (skb->ip_summed && tcp_check(th, len, saddr, daddr, skb->csum ))|| |
saddr | 4869 | net/ipv4/tcp.c | (!skb->ip_summed && tcp_check(th, len, saddr, daddr, csum_partial((char *)th, len, 0))) |
saddr | 4891 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 4903 | net/ipv4/tcp.c | skb->saddr = daddr; |
saddr | 4904 | net/ipv4/tcp.c | skb->daddr = saddr; |
saddr | 4921 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 4960 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
saddr | 4980 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
saddr | 5014 | net/ipv4/tcp.c | if(!tcp_ack(sk,th,saddr,len)) |
saddr | 5019 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 5065 | net/ipv4/tcp.c | if(sk->saddr==saddr && sk->daddr==daddr && |
saddr | 5111 | net/ipv4/tcp.c | sk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 5117 | net/ipv4/tcp.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
saddr | 5133 | net/ipv4/tcp.c | if(!tcp_sequence(sk,th,len,opt,saddr,dev)) |
saddr | 5149 | net/ipv4/tcp.c | tcp_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
saddr | 5158 | net/ipv4/tcp.c | if(th->ack && !tcp_ack(sk,th,saddr,len)) |
saddr | 5166 | net/ipv4/tcp.c | tcp_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
saddr | 5193 | net/ipv4/tcp.c | if(tcp_urg(sk, th, saddr, len)) |
saddr | 5204 | net/ipv4/tcp.c | if(tcp_data(skb,sk, saddr, len)) |
saddr | 5305 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 5358 | net/ipv4/tcp.c | tcp_send_check(nth, sk->saddr, sk->daddr, |
saddr | 5375 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 5403 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 138 | 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 | 155 | net/ipv4/udp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 166 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->source, daddr, uh->dest, saddr); |
saddr | 211 | net/ipv4/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 213 | net/ipv4/udp.c | return(csum_tcpudp_magic(saddr, daddr, len, IPPROTO_UDP, base)); |
saddr | 231 | net/ipv4/udp.c | static void udp_getfrag(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 255 | net/ipv4/udp.c | ufh->uh.check = csum_tcpudp_magic(saddr, ufh->daddr, |
saddr | 271 | net/ipv4/udp.c | static void udp_getfrag_nosum(const void *p, __u32 saddr, char * to, unsigned int offset, unsigned int fraglen) |
saddr | 302 | net/ipv4/udp.c | __u32 saddr, int noblock) |
saddr | 327 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock); |
saddr | 330 | net/ipv4/udp.c | sin->sin_addr.s_addr, saddr, sk->opt, rt, IPPROTO_UDP, noblock); |
saddr | 343 | net/ipv4/udp.c | __u32 saddr=0; |
saddr | 398 | net/ipv4/udp.c | tmp = udp_send(sk, usin, from, len, flags, saddr, noblock); |
saddr | 564 | net/ipv4/udp.c | if(!sk->saddr) |
saddr | 565 | net/ipv4/udp.c | sk->saddr = rt->rt_src; /* Update source address */ |
saddr | 596 | net/ipv4/udp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 636 | net/ipv4/udp.c | ( skb->ip_summed && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
saddr | 637 | net/ipv4/udp.c | ( !skb->ip_summed && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
saddr | 648 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
saddr | 667 | net/ipv4/udp.c | saddr, uh->source, daddr); |
saddr | 674 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
saddr | 680 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
saddr | 690 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
saddr | 694 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 695 | net/ipv4/udp.c | uh_cache_saddr=saddr; |
saddr | 717 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
saddr | 720 | 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 | 730 | net/ipv4/udp.c | skb->daddr = saddr; |
saddr | 731 | net/ipv4/udp.c | skb->saddr = daddr; |
saddr | 77 | net/netrom/nr_dev.c | void *daddr, void *saddr, unsigned len) |
saddr | 81 | net/netrom/nr_dev.c | memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); |