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 | 719 | arch/sparc/mm/sun4c.c | unsigned long saddr = (unsigned long) tsk; |
saddr | 722 | arch/sparc/mm/sun4c.c | if(!saddr) |
saddr | 732 | arch/sparc/mm/sun4c.c | saddr += (PAGE_SIZE << 1); |
saddr | 733 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr - PAGE_SIZE, 0); |
saddr | 734 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr, BUCKET_PTE(page[0])); |
saddr | 735 | arch/sparc/mm/sun4c.c | sun4c_put_pte(saddr + PAGE_SIZE, BUCKET_PTE(page[1])); |
saddr | 736 | arch/sparc/mm/sun4c.c | return saddr; |
saddr | 1038 | drivers/isdn/isdn_net.c | void *daddr, void *saddr, unsigned len) |
saddr | 1056 | drivers/isdn/isdn_net.c | if(saddr) |
saddr | 1057 | drivers/isdn/isdn_net.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 1085 | drivers/isdn/isdn_net.c | void *daddr, void *saddr, unsigned plen) |
saddr | 1092 | drivers/isdn/isdn_net.c | len = my_eth_header(skb, dev, type, daddr, saddr, plen); |
saddr | 491 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 511 | drivers/net/arcnet.c | u_char saddr, /* Source address - needed for IPX */ |
saddr | 619 | 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 | 634 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 642 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr); |
saddr | 644 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len); |
saddr | 2172 | drivers/net/arcnet.c | u_char daddr,saddr; |
saddr | 2176 | drivers/net/arcnet.c | saddr=arcpacket->hardheader.source; |
saddr | 2180 | drivers/net/arcnet.c | if (saddr==0) |
saddr | 2204 | drivers/net/arcnet.c | saddr,daddr,length); |
saddr | 2214 | drivers/net/arcnet.c | arcnetA_rx(lp->adev,arcsoft,length,saddr,daddr); |
saddr | 2218 | drivers/net/arcnet.c | arcnetE_rx(lp->edev,arcsoft,length,saddr,daddr); |
saddr | 2224 | drivers/net/arcnet.c | arcnetS_rx(lp->sdev,arcsoft,length,saddr,daddr); |
saddr | 2230 | drivers/net/arcnet.c | arcsoft[0],arcsoft[0],saddr); |
saddr | 2257 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 2284 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2317 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2337 | drivers/net/arcnet.c | saddr); |
saddr | 2339 | drivers/net/arcnet.c | *cptr=saddr; |
saddr | 2381 | drivers/net/arcnet.c | struct Incoming *in=&lp->incoming[saddr]; |
saddr | 2389 | drivers/net/arcnet.c | saddr,in->sequence,arcsoft->sequence, |
saddr | 2502 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 2577 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 2584 | drivers/net/arcnet.c | saddr ? *(u_char*)saddr : -1, |
saddr | 2624 | drivers/net/arcnet.c | if(saddr) |
saddr | 2625 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 2627 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 2677 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 2680 | drivers/net/arcnet.c | head->saddr,head->daddr,head->protocol_id); |
saddr | 2871 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 3000 | drivers/net/arcnet.c | int length,u_char saddr, u_char daddr) |
saddr | 3032 | drivers/net/arcnet.c | soft->saddr=saddr; |
saddr | 3050 | drivers/net/arcnet.c | unsigned short type,void *daddr,void *saddr,unsigned len) |
saddr | 3083 | drivers/net/arcnet.c | if(saddr) |
saddr | 3084 | drivers/net/arcnet.c | head->saddr=((u_char*)saddr)[0]; |
saddr | 3086 | drivers/net/arcnet.c | head->saddr=((u_char*)(dev->dev_addr))[0]; |
saddr | 109 | drivers/net/dlci.c | unsigned short type, void *daddr, void *saddr, |
saddr | 153 | drivers/net/eql.c | unsigned short type, void *daddr, void *saddr, |
saddr | 409 | 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 | 112 | drivers/net/new_tunnel.c | ipaddr=(unsigned char *)&ip->saddr; |
saddr | 283 | 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 | 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 | __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 | 52 | include/net/ip_masq.h | __u32 saddr, daddr, maddr; /* src, dst & masq addresses */ |
saddr | 91 | 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 | 132 | include/net/tcp.h | unsigned short len, __u32 saddr, int redo, |
saddr | 142 | include/net/tcp.h | extern void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 155 | include/net/tcp.h | extern void tcp_send_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 279 | include/net/tcp.h | unsigned long saddr, unsigned long daddr, unsigned long base) |
saddr | 281 | 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 | 2487 | net/ax25/af_ax25.c | void *saddr, unsigned len) |
saddr | 2502 | net/ax25/af_ax25.c | if (saddr != NULL) |
saddr | 2503 | net/ax25/af_ax25.c | memcpy(buff, saddr, dev->addr_len); |
saddr | 806 | 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 | 847 | net/ipv4/af_inet.c | sk->saddr = 0; /* Use device */ |
saddr | 849 | net/ipv4/af_inet.c | sk->saddr = addr->sin_addr.s_addr; |
saddr | 1109 | net/ipv4/af_inet.c | addr = sk->saddr; |
saddr | 1394 | net/ipv4/arp.c | u32 saddr, struct sk_buff *skb) |
saddr | 1520 | net/ipv4/arp.c | arp_send(ARPOP_REQUEST, ETH_P_ARP, paddr, dev, saddr, NULL, |
saddr | 152 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
saddr | 201 | net/ipv4/icmp.c | static void icmp_glue_bits(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 232 | net/ipv4/icmp.c | static void icmp_build_xmit(struct icmp_bxm *icmp_param, __u32 saddr, __u32 daddr) |
saddr | 240 | net/ipv4/icmp.c | daddr, saddr, &icmp_param->replyopts, 0, IPPROTO_ICMP, 1); |
saddr | 260 | net/ipv4/icmp.c | __u32 saddr; |
saddr | 317 | net/ipv4/icmp.c | saddr=iph->daddr; |
saddr | 318 | net/ipv4/icmp.c | if(saddr!=dev->pa_addr && ip_chk_addr(saddr)!=IS_MYADDR) |
saddr | 319 | net/ipv4/icmp.c | saddr=dev->pa_addr; |
saddr | 331 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, saddr, iph->saddr, skb_in) == 0) |
saddr | 332 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, saddr, iph->saddr); |
saddr | 340 | 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 | 469 | net/ipv4/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 554 | 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 | 561 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 562 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 574 | 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 | 606 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 607 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 624 | 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 | 635 | net/ipv4/icmp.c | if (ip_options_echo(&icmp_param.replyopts, NULL, daddr, saddr, skb)==0) |
saddr | 636 | net/ipv4/icmp.c | icmp_build_xmit(&icmp_param, daddr, saddr); |
saddr | 641 | 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 | 652 | net/ipv4/icmp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 665 | net/ipv4/icmp.c | printk(KERN_INFO "ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 710 | 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 | 134 | net/ipv4/ip_masq.c | hash = ip_masq_hash_key(ms->protocol, ms->saddr, ms->sport); |
saddr | 169 | net/ipv4/ip_masq.c | hash = ip_masq_hash_key(ms->protocol, ms->saddr, ms->sport); |
saddr | 203 | net/ipv4/ip_masq.c | s_addr = iph->saddr; |
saddr | 236 | net/ipv4/ip_masq.c | s_addr = iph->saddr; |
saddr | 244 | net/ipv4/ip_masq.c | s_addr == ms->saddr && s_port == ms->sport && |
saddr | 301 | 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 | 328 | net/ipv4/ip_masq.c | ms->saddr = saddr; |
saddr | 400 | net/ipv4/ip_masq.c | static void recalc_check(struct udphdr *uh, __u32 saddr, |
saddr | 404 | net/ipv4/ip_masq.c | uh->check=csum_tcpudp_magic(saddr,daddr,len, |
saddr | 434 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 449 | net/ipv4/ip_masq.c | iph->saddr, portptr[0], |
saddr | 464 | net/ipv4/ip_masq.c | iph->saddr = ms->maddr; |
saddr | 489 | net/ipv4/ip_masq.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 507 | net/ipv4/ip_masq.c | tcp_send_check(th,iph->saddr,iph->daddr,size,skb); |
saddr | 556 | net/ipv4/ip_masq.c | ntohl(iph->saddr), ntohs(portptr[0]), |
saddr | 583 | net/ipv4/ip_masq.c | ms->daddr = iph->saddr; |
saddr | 590 | net/ipv4/ip_masq.c | iph->daddr = ms->saddr; |
saddr | 614 | net/ipv4/ip_masq.c | recalc_check((struct udphdr *)portptr,iph->saddr,iph->daddr,size); |
saddr | 619 | net/ipv4/ip_masq.c | tcp_send_check((struct tcphdr *)portptr,iph->saddr,iph->daddr,size,skb); |
saddr | 658 | 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 | 81 | net/ipv4/ip_output.c | newskb->saddr=skb->saddr; |
saddr | 92 | net/ipv4/ip_output.c | ip_send(NULL,newskb, skb->ip_hdr->daddr, len, dev, skb->ip_hdr->saddr); |
saddr | 116 | 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 | 153 | 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 | 194 | net/ipv4/ip_output.c | int ip_build_header(struct sk_buff *skb, __u32 saddr, __u32 daddr, |
saddr | 241 | net/ipv4/ip_output.c | if ((LOOPBACK(saddr) && !LOOPBACK(daddr)) || !saddr) |
saddr | 242 | net/ipv4/ip_output.c | saddr = rt ? rt->rt_src : (*dev)->pa_addr; |
saddr | 258 | net/ipv4/ip_output.c | tmp = ip_send_room(rt, skb, raddr, len, *dev, saddr); |
saddr | 260 | net/ipv4/ip_output.c | tmp = ip_send(rt, skb, raddr, len, *dev, saddr); |
saddr | 269 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 298 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 574 | net/ipv4/ip_output.c | __u32 saddr; |
saddr | 595 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 596 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 598 | net/ipv4/ip_output.c | saddr = dev->pa_addr; |
saddr | 611 | net/ipv4/ip_output.c | saddr = rt->rt_src; |
saddr | 615 | net/ipv4/ip_output.c | if (sk->saddr && (!LOOPBACK(sk->saddr) || LOOPBACK(daddr))) |
saddr | 616 | net/ipv4/ip_output.c | saddr = sk->saddr; |
saddr | 625 | net/ipv4/ip_output.c | saddr = user_saddr; |
saddr | 656 | net/ipv4/ip_output.c | skb->saddr=saddr; |
saddr | 690 | net/ipv4/ip_output.c | iph->saddr=saddr; |
saddr | 700 | net/ipv4/ip_output.c | getfrag(frag,saddr,((char *)iph)+iph->ihl*4,0, length-iph->ihl*4); |
saddr | 703 | net/ipv4/ip_output.c | getfrag(frag,saddr,(void *)iph,0,length-20); |
saddr | 823 | net/ipv4/ip_output.c | skb->saddr = saddr; |
saddr | 887 | net/ipv4/ip_output.c | iph->saddr = saddr; |
saddr | 903 | 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 | 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 | 162 | net/ipv4/raw.c | static void raw_getfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 171 | net/ipv4/raw.c | static void raw_getrawfrag(const void *p, __u32 saddr, char *to, unsigned int offset, unsigned int fraglen) |
saddr | 177 | net/ipv4/raw.c | if(!iph->saddr) |
saddr | 178 | net/ipv4/raw.c | iph->saddr=saddr; |
saddr | 1479 | net/ipv4/route.c | __u32 saddr; |
saddr | 1523 | net/ipv4/route.c | saddr = fi->fib_dev->pa_addr; |
saddr | 1543 | net/ipv4/route.c | rth->rt_src = saddr; |
saddr | 525 | net/ipv4/tcp.c | __u32 saddr, struct inet_protocol *protocol) |
saddr | 537 | net/ipv4/tcp.c | sk = get_sock(&tcp_prot, th->source, daddr, th->dest, saddr); |
saddr | 817 | net/ipv4/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 824 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 830 | net/ipv4/tcp.c | th->check = tcp_check(th, len, saddr, daddr, |
saddr | 1107 | net/ipv4/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 1927 | net/ipv4/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1935 | net/ipv4/tcp.c | if ((rt = sk->ip_route_cache) != NULL && !sk->saddr) |
saddr | 1936 | net/ipv4/tcp.c | sk->saddr = rt->rt_src; |
saddr | 1937 | net/ipv4/tcp.c | sk->rcv_saddr = sk->saddr; |
saddr | 1998 | net/ipv4/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 134 | net/ipv4/tcp_input.c | static inline struct sock * get_tcp_sock(u32 saddr, u16 sport, u32 daddr, u16 dport) |
saddr | 139 | net/ipv4/tcp_input.c | if (!sk || saddr != th_cache_saddr || daddr != th_cache_daddr || |
saddr | 141 | net/ipv4/tcp_input.c | sk = get_sock(&tcp_prot, dport, saddr, sport, daddr); |
saddr | 143 | net/ipv4/tcp_input.c | th_cache_saddr=saddr; |
saddr | 172 | net/ipv4/tcp_input.c | tcp_send_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 313 | net/ipv4/tcp_input.c | u32 daddr, u32 saddr, struct options *opt, struct device *dev, u32 seq) |
saddr | 330 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 381 | net/ipv4/tcp_input.c | if (ip_options_echo(sk->opt, opt, daddr, saddr, skb)) |
saddr | 449 | net/ipv4/tcp_input.c | newsk->daddr = saddr; |
saddr | 450 | net/ipv4/tcp_input.c | newsk->saddr = daddr; |
saddr | 473 | net/ipv4/tcp_input.c | rt = ip_rt_route(newsk->opt && newsk->opt->srr ? newsk->opt->faddr : saddr, 0); |
saddr | 1335 | net/ipv4/tcp_input.c | unsigned long saddr, unsigned int len) |
saddr | 1404 | net/ipv4/tcp_input.c | tcp_send_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 1555 | net/ipv4/tcp_input.c | __u32 saddr, int redo, struct inet_protocol * protocol) |
saddr | 1588 | net/ipv4/tcp_input.c | if (tcp_check(th, len, saddr, daddr, skb->csum)) |
saddr | 1593 | net/ipv4/tcp_input.c | sk = get_tcp_sock(saddr, th->source, daddr, th->dest); |
saddr | 1604 | net/ipv4/tcp_input.c | skb->saddr = daddr; |
saddr | 1605 | net/ipv4/tcp_input.c | skb->daddr = saddr; |
saddr | 1664 | net/ipv4/tcp_input.c | tcp_send_reset(daddr,saddr,th,sk->prot,opt,dev,sk->ip_tos, sk->ip_ttl); |
saddr | 1683 | net/ipv4/tcp_input.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev, tcp_init_seq()); |
saddr | 1727 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, |
saddr | 1739 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, |
saddr | 1775 | net/ipv4/tcp_input.c | if(sk->saddr==saddr && sk->daddr==daddr && |
saddr | 1824 | net/ipv4/tcp_input.c | sk=get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 1830 | net/ipv4/tcp_input.c | tcp_conn_request(sk, skb, daddr, saddr,opt, dev,seq+128000); |
saddr | 1861 | net/ipv4/tcp_input.c | tcp_send_reset(daddr,saddr,th, &tcp_prot, opt, dev, skb->ip_hdr->tos, 255); |
saddr | 1880 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th,sk->prot, opt, dev,sk->ip_tos,sk->ip_ttl); |
saddr | 1904 | net/ipv4/tcp_input.c | if(tcp_data(skb,sk, saddr, len)) |
saddr | 1924 | net/ipv4/tcp_input.c | tcp_send_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 126 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 293 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 441 | net/ipv4/tcp_output.c | tcp_send_check(th, sk->saddr, sk->daddr, size, skb); |
saddr | 499 | net/ipv4/tcp_output.c | void tcp_send_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 532 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 566 | net/ipv4/tcp_output.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), buff); |
saddr | 605 | net/ipv4/tcp_output.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 642 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
saddr | 693 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 738 | net/ipv4/tcp_output.c | tcp_send_check(t1, newsk->saddr, newsk->daddr, sizeof(*t1)+4, buff); |
saddr | 851 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 870 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
saddr | 962 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1010 | net/ipv4/tcp_output.c | tcp_send_check(nth, sk->saddr, sk->daddr, |
saddr | 1028 | net/ipv4/tcp_output.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1048 | net/ipv4/tcp_output.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), buff); |
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 | 563 | net/ipv4/udp.c | if(!sk->saddr) |
saddr | 564 | net/ipv4/udp.c | sk->saddr = rt->rt_src; /* Update source address */ |
saddr | 593 | net/ipv4/udp.c | __u32 saddr, int redo, struct inet_protocol *protocol) |
saddr | 633 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_HW) && udp_check(uh, len, saddr, daddr, skb->csum ) ) || |
saddr | 634 | net/ipv4/udp.c | ( (skb->ip_summed == CHECKSUM_NONE) && udp_check(uh, len, saddr, daddr,csum_partial((char*)uh, len, 0))) |
saddr | 646 | net/ipv4/udp.c | ntohl(saddr),ntohs(uh->source), |
saddr | 665 | net/ipv4/udp.c | saddr, uh->source, daddr); |
saddr | 672 | net/ipv4/udp.c | sknext=get_sock_mcast(sk->next, uh->dest, saddr, uh->source, daddr); |
saddr | 678 | net/ipv4/udp.c | udp_deliver(sk, uh, skb1, dev,saddr,daddr,len); |
saddr | 688 | net/ipv4/udp.c | if(saddr==uh_cache_saddr && daddr==uh_cache_daddr && uh->dest==uh_cache_dport && uh->source==uh_cache_sport) |
saddr | 692 | net/ipv4/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 693 | net/ipv4/udp.c | uh_cache_saddr=saddr; |
saddr | 715 | net/ipv4/udp.c | return udp_deliver(sk,uh,skb,dev, saddr, daddr, len); |
saddr | 718 | 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 | 728 | net/ipv4/udp.c | skb->daddr = saddr; |
saddr | 729 | 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); |