tag | line | file | source code |
saddr | 292 | drivers/net/plip.c | void *saddr, unsigned len, struct sk_buff *skb) |
saddr | 298 | drivers/net/plip.c | return eth_header(buff, dev, type, daddr, saddr, len, skb); |
saddr | 279 | drivers/net/slhc.c | if( ip->saddr == cs->cs_ip.saddr |
saddr | 98 | drivers/net/slip.c | in_ntoa(ip->saddr), in_ntoa(ip->daddr), |
saddr | 109 | drivers/net/slip.c | printk("SLIP: %s->", in_ntoa(ip->saddr)); |
saddr | 583 | drivers/net/slip.c | void *daddr, void *saddr, unsigned len, struct sk_buff *skb) |
saddr | 588 | drivers/net/slip.c | return ax25_encapsulate(buff,dev,type,daddr,saddr,len,skb); |
saddr | 33 | include/linux/etherdevice.h | void *saddr, unsigned len, |
saddr | 75 | include/linux/ip.h | unsigned long saddr; |
saddr | 126 | include/linux/netdevice.h | void *saddr, |
saddr | 64 | include/linux/skbuff.h | unsigned long saddr; |
saddr | 636 | net/inet/arp.c | unsigned long saddr, struct sk_buff *skb) |
saddr | 729 | net/inet/arp.c | arp_send(ARPOP_REQUEST, paddr, dev, saddr, NULL, dev->dev_addr); |
saddr | 10 | net/inet/arp.h | struct device *dev, unsigned long saddr, struct sk_buff *skb); |
saddr | 125 | net/inet/dev.h | unsigned long saddr, |
saddr | 81 | net/inet/eth.c | void *daddr, void *saddr, unsigned len, |
saddr | 100 | net/inet/eth.c | if(saddr) |
saddr | 101 | net/inet/eth.c | memcpy(eth->h_source,saddr,dev->addr_len); |
saddr | 29 | net/inet/eth.h | unsigned long saddr, unsigned len); |
saddr | 194 | net/inet/icmp.c | offset = ip_build_header(skb, dev->pa_addr, iph->saddr, |
saddr | 303 | net/inet/icmp.c | iph->daddr, iph->saddr, ipprot); |
saddr | 381 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 404 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, |
saddr | 448 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 473 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, IPPROTO_ICMP, opt, len, |
saddr | 525 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 538 | net/inet/icmp.c | unsigned long saddr, unsigned long daddr, int len, |
saddr | 563 | net/inet/icmp.c | offset = ip_build_header(skb2, daddr, saddr, &ndev, |
saddr | 608 | net/inet/icmp.c | unsigned long saddr, int redo, struct inet_protocol *protocol) |
saddr | 623 | net/inet/icmp.c | in_ntoa(saddr))); |
saddr | 644 | net/inet/icmp.c | printk("ICMP: failed checksum from %s!\n", in_ntoa(saddr)); |
saddr | 670 | net/inet/icmp.c | icmp_redirect(icmph, skb1, dev, saddr); |
saddr | 674 | net/inet/icmp.c | icmp_echo(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 682 | net/inet/icmp.c | icmp_timestamp(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 690 | net/inet/icmp.c | icmp_info(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 698 | net/inet/icmp.c | icmp_address(icmph, skb1, dev, saddr, daddr, len, opt); |
saddr | 712 | net/inet/icmp.c | in_ntoa(saddr), icmph->type)); |
saddr | 32 | net/inet/icmp.h | unsigned short len, unsigned long saddr, |
saddr | 126 | net/inet/ip.c | printk(" soucre=%s ", in_ntoa(ip->saddr)); |
saddr | 226 | net/inet/ip.c | static int ip_send(struct sk_buff *skb, unsigned long daddr, int len, struct device *dev, unsigned long saddr) |
saddr | 256 | net/inet/ip.c | int ip_build_header(struct sk_buff *skb, unsigned long saddr, unsigned long daddr, |
saddr | 272 | net/inet/ip.c | if (saddr == 0) |
saddr | 273 | net/inet/ip.c | saddr = ip_my_addr(); |
saddr | 277 | net/inet/ip.c | skb, saddr, daddr, *dev, type, opt, len)); |
saddr | 299 | net/inet/ip.c | if (saddr == 0x0100007FL && daddr != 0x0100007FL) |
saddr | 300 | net/inet/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 303 | net/inet/ip.c | DPRINTF((DBG_IP, "ip_build_header: saddr set to %s\n", in_ntoa(saddr))); |
saddr | 316 | net/inet/ip.c | if (saddr == 0x0100007FL && daddr != 0x0100007FL) |
saddr | 317 | net/inet/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 332 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
saddr | 341 | net/inet/ip.c | skb->saddr = saddr; |
saddr | 343 | net/inet/ip.c | skb->sk->saddr = saddr; |
saddr | 363 | net/inet/ip.c | iph->saddr = saddr; |
saddr | 672 | net/inet/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 1187 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 1198 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 1368 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1457 | net/inet/ip.c | DPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr))); |
saddr | 1566 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1626 | net/inet/ip.c | iph->saddr,iph->daddr); |
saddr | 1652 | net/inet/ip.c | printk(" SRC = %s ", in_ntoa(iph->saddr)); |
saddr | 1726 | net/inet/ip.c | iph->saddr, 0, ipprot); |
saddr | 73 | net/inet/ip.h | unsigned long saddr, |
saddr | 127 | net/inet/packet.c | struct sockaddr saddr; |
saddr | 145 | net/inet/packet.c | if (addr_len < sizeof(saddr)) |
saddr | 147 | net/inet/packet.c | err=verify_area(VERIFY_READ, usin, sizeof(saddr)); |
saddr | 150 | net/inet/packet.c | memcpy_fromfs(&saddr, usin, sizeof(saddr)); |
saddr | 168 | net/inet/packet.c | saddr.sa_data[13] = 0; |
saddr | 169 | net/inet/packet.c | dev = dev_get(saddr.sa_data); |
saddr | 291 | net/inet/packet.c | struct sockaddr *saddr; |
saddr | 294 | net/inet/packet.c | saddr = (struct sockaddr *)sin; |
saddr | 313 | net/inet/packet.c | put_fs_long(sizeof(*saddr), addr_len); |
saddr | 316 | net/inet/packet.c | if(saddr) |
saddr | 318 | net/inet/packet.c | err=verify_area(VERIFY_WRITE, saddr, sizeof(*saddr)); |
saddr | 361 | net/inet/packet.c | if (saddr) |
saddr | 367 | net/inet/packet.c | memcpy_tofs(saddr, &addr, sizeof(*saddr)); |
saddr | 82 | net/inet/proc.c | src = sp->saddr; |
saddr | 33 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
saddr | 37 | net/inet/protocol.h | unsigned short len, unsigned long saddr, |
saddr | 41 | net/inet/protocol.h | unsigned long saddr, |
saddr | 67 | net/inet/raw.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 72 | net/inet/raw.c | err, header, daddr, saddr, protocol)); |
saddr | 97 | net/inet/raw.c | unsigned long daddr, unsigned short len, unsigned long saddr, |
saddr | 104 | net/inet/raw.c | skb, dev, opt, daddr, len, saddr, redo, protocol)); |
saddr | 127 | net/inet/raw.c | skb->saddr = daddr; |
saddr | 128 | net/inet/raw.c | skb->daddr = saddr; |
saddr | 226 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
saddr | 249 | net/inet/raw.c | iph->saddr = sk->saddr; |
saddr | 25 | net/inet/raw.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 28 | net/inet/raw.h | unsigned short len, unsigned long saddr, |
saddr | 520 | net/inet/skbuff.c | n->saddr=skb->saddr; |
saddr | 116 | net/inet/sock.c | printk(" daddr = %lX, saddr = %lX\n", sk->daddr,sk->saddr); |
saddr | 235 | net/inet/sock.c | if ((mask & sk->saddr) && |
saddr | 236 | net/inet/sock.c | (mask & sk->saddr) != (mask & 0xffffffff)) { |
saddr | 246 | net/inet/sock.c | if (!(sk2->saddr & mask)) { |
saddr | 847 | net/inet/sock.c | sk->saddr = ip_my_addr(); |
saddr | 1006 | net/inet/sock.c | sk->saddr = addr.sin_addr.s_addr; |
saddr | 1029 | net/inet/sock.c | if (sk2->saddr != sk->saddr) continue; /* socket per slot ! -FB */ |
saddr | 1230 | net/inet/sock.c | if (sk->saddr == 0) sin.sin_addr.s_addr = ip_my_addr(); |
saddr | 1231 | net/inet/sock.c | else sin.sin_addr.s_addr = sk->saddr; |
saddr | 1657 | net/inet/sock.c | if(ip_addr_match(s->saddr,laddr) == 0) |
saddr | 1680 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 103 | net/inet/sock.h | unsigned long saddr; |
saddr | 200 | net/inet/sock.h | unsigned long saddr, |
saddr | 215 | net/inet/sock.h | unsigned short len, unsigned long saddr, |
saddr | 228 | net/inet/tcp.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 237 | net/inet/tcp.c | err, header, daddr, saddr, protocol)); |
saddr | 240 | net/inet/tcp.c | sk = get_sock(&tcp_prot, th->source/*dest*/, daddr, th->dest/*source*/, saddr); |
saddr | 491 | net/inet/tcp.c | unsigned long saddr, unsigned long daddr) |
saddr | 495 | net/inet/tcp.c | if (saddr == 0) saddr = ip_my_addr(); |
saddr | 501 | net/inet/tcp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_TCP*256) |
saddr | 551 | net/inet/tcp.c | void tcp_send_check(struct tcphdr *th, unsigned long saddr, |
saddr | 555 | net/inet/tcp.c | th->check = tcp_check(th, len, saddr, daddr); |
saddr | 587 | net/inet/tcp.c | tcp_send_check(th, sk->saddr, sk->daddr, size, sk); |
saddr | 692 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
saddr | 735 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk); |
saddr | 977 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 1090 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1116 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1448 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 1477 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1541 | net/inet/tcp.c | tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 1565 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 1603 | net/inet/tcp.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), NULL); |
saddr | 1682 | net/inet/tcp.c | unsigned long daddr, unsigned long saddr, |
saddr | 1695 | net/inet/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
saddr | 1704 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 1781 | net/inet/tcp.c | newsk->daddr = saddr; |
saddr | 1782 | net/inet/tcp.c | newsk->saddr = daddr; |
saddr | 1807 | net/inet/tcp.c | if ((saddr ^ daddr) & default_mask(saddr)) |
saddr | 1809 | net/inet/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
saddr | 1837 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 1882 | net/inet/tcp.c | tcp_send_check(t1, daddr, saddr, sizeof(*t1)+4, newsk); |
saddr | 1991 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 2025 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2124 | net/inet/tcp.c | tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
saddr | 2495 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
saddr | 2510 | net/inet/tcp.c | if (!th->ack) tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr); |
saddr | 2517 | net/inet/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 2680 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2685 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2740 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
saddr | 2768 | net/inet/tcp.c | unsigned long saddr, struct device *dev) |
saddr | 2771 | net/inet/tcp.c | sk, th, saddr, dev)); |
saddr | 2821 | net/inet/tcp.c | sk, flags, in_ntoa(sk->saddr))); |
saddr | 2896 | net/inet/tcp.c | if(sk->saddr == sin.sin_addr.s_addr && sk->num==ntohs(sin.sin_port)) |
saddr | 2920 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 2950 | net/inet/tcp.c | if ((sk->saddr ^ sk->daddr) & default_mask(sk->saddr)) |
saddr | 2952 | net/inet/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
saddr | 2967 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 2988 | net/inet/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
saddr | 3031 | net/inet/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 3036 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 3044 | net/inet/tcp.c | unsigned long saddr, int redo, struct inet_protocol * protocol) |
saddr | 3065 | net/inet/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 3079 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) { |
saddr | 3096 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 3107 | net/inet/tcp.c | skb->saddr = daddr; |
saddr | 3108 | net/inet/tcp.c | skb->daddr = saddr; |
saddr | 3168 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) { |
saddr | 3210 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 3219 | net/inet/tcp.c | if (th->ack && !tcp_ack(sk, th, saddr, len)) { |
saddr | 3225 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3231 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3238 | net/inet/tcp.c | if (th->fin && tcp_fin(sk, th, saddr, dev)) { |
saddr | 3258 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
saddr | 3271 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
saddr | 3285 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
saddr | 3304 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) |
saddr | 3342 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
saddr | 3345 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3370 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
saddr | 3373 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3414 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3420 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
saddr | 3423 | net/inet/tcp.c | if (th->fin) tcp_fin(sk, th, saddr, dev); |
saddr | 3429 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3436 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3446 | net/inet/tcp.c | tcp_fin(sk, th, saddr, dev); |
saddr | 3482 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 3510 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 117 | net/inet/tcp.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 121 | net/inet/tcp.h | unsigned short len, unsigned long saddr, int redo, |
saddr | 107 | net/inet/udp.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 121 | net/inet/udp.c | sport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest)); |
saddr | 123 | net/inet/udp.c | sk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr); |
saddr | 151 | net/inet/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr) |
saddr | 156 | net/inet/udp.c | uh, len, saddr, daddr)); |
saddr | 164 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
saddr | 234 | net/inet/udp.c | static void udp_send_check(struct udphdr *uh, unsigned long saddr, |
saddr | 240 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
saddr | 259 | net/inet/udp.c | unsigned long saddr; |
saddr | 290 | net/inet/udp.c | saddr = 0; |
saddr | 293 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
saddr | 294 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
saddr | 309 | net/inet/udp.c | saddr = skb->saddr; /*dev->pa_addr;*/ |
saddr | 335 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
saddr | 644 | net/inet/udp.c | unsigned long saddr, int redo, struct inet_protocol *protocol) |
saddr | 657 | net/inet/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 674 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) |
saddr | 691 | net/inet/udp.c | skb->daddr = saddr; |
saddr | 692 | net/inet/udp.c | skb->saddr = daddr; |
saddr | 35 | net/inet/udp.h | unsigned long saddr, struct inet_protocol *protocol); |
saddr | 45 | net/inet/udp.h | unsigned short len, unsigned long saddr, int redo, |