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 | 302 | net/inet/ip.c | if (saddr == 0x0100007FL && daddr != 0x0100007FL) |
saddr | 303 | net/inet/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 306 | net/inet/ip.c | DPRINTF((DBG_IP, "ip_build_header: saddr set to %s\n", in_ntoa(saddr))); |
saddr | 322 | net/inet/ip.c | if (saddr == 0x0100007FL && daddr != 0x0100007FL) |
saddr | 323 | net/inet/ip.c | saddr = src;/*rt->rt_dev->pa_addr;*/ |
saddr | 338 | net/inet/ip.c | tmp = ip_send(skb, raddr, len, *dev, saddr); |
saddr | 347 | net/inet/ip.c | skb->saddr = saddr; |
saddr | 349 | net/inet/ip.c | skb->sk->saddr = saddr; |
saddr | 369 | net/inet/ip.c | iph->saddr = saddr; |
saddr | 678 | net/inet/ip.c | if (iph->id== qp->iph->id && iph->saddr == qp->iph->saddr && |
saddr | 1193 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 1204 | net/inet/ip.c | dev->name, dev->mtu, left, in_ntoa(iph->saddr))); |
saddr | 1374 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1463 | net/inet/ip.c | DPRINTF((DBG_IP, "\nIP: *** fwd %s -> ", in_ntoa(iph->saddr))); |
saddr | 1572 | net/inet/ip.c | DPRINTF((DBG_IP, " SRC = %s ", in_ntoa(iph->saddr))); |
saddr | 1632 | net/inet/ip.c | iph->saddr,iph->daddr); |
saddr | 1658 | net/inet/ip.c | printk(" SRC = %s ", in_ntoa(iph->saddr)); |
saddr | 1732 | 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 | 246 | net/inet/raw.c | tmp = sk->prot->build_header(skb, sk->saddr, |
saddr | 273 | 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 | 848 | net/inet/sock.c | sk->saddr = ip_my_addr(); |
saddr | 1008 | net/inet/sock.c | sk->saddr = addr.sin_addr.s_addr; |
saddr | 1031 | net/inet/sock.c | if (sk2->saddr != sk->saddr) continue; /* socket per slot ! -FB */ |
saddr | 1233 | net/inet/sock.c | if (sk->saddr == 0) sin.sin_addr.s_addr = ip_my_addr(); |
saddr | 1234 | net/inet/sock.c | else sin.sin_addr.s_addr = sk->saddr; |
saddr | 1660 | net/inet/sock.c | if(ip_addr_match(s->saddr,laddr) == 0) |
saddr | 1683 | net/inet/sock.c | skb->saddr, skb->len, skb->daddr, 1, |
saddr | 103 | net/inet/sock.h | unsigned long saddr; |
saddr | 201 | net/inet/sock.h | unsigned long saddr, |
saddr | 216 | 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 | 697 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, daddr, &dev, |
saddr | 745 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, daddr, sizeof(*t1), sk); |
saddr | 1042 | net/inet/tcp.c | tmp = prot->build_header(skb, sk->saddr, sk->daddr, &dev, |
saddr | 1175 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 1202 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1556 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 1588 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 1661 | net/inet/tcp.c | static void tcp_reset(unsigned long saddr, unsigned long daddr, struct tcphdr *th, |
saddr | 1690 | net/inet/tcp.c | tmp = prot->build_header(buff, saddr, daddr, &ndev, IPPROTO_TCP, opt, |
saddr | 1733 | net/inet/tcp.c | tcp_send_check(t1, saddr, daddr, sizeof(*t1), NULL); |
saddr | 1812 | net/inet/tcp.c | unsigned long daddr, unsigned long saddr, |
saddr | 1825 | net/inet/tcp.c | sk, skb, daddr, saddr, opt, dev)); |
saddr | 1834 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt, dev, sk->ip_tos,sk->ip_ttl); |
saddr | 1912 | net/inet/tcp.c | newsk->daddr = saddr; |
saddr | 1913 | net/inet/tcp.c | newsk->saddr = daddr; |
saddr | 1938 | net/inet/tcp.c | if ((saddr ^ daddr) & default_mask(saddr)) |
saddr | 1940 | net/inet/tcp.c | if ((saddr ^ daddr) & dev->pa_mask) |
saddr | 1969 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, newsk->saddr, newsk->daddr, &ndev, |
saddr | 2014 | net/inet/tcp.c | tcp_send_check(t1, daddr, saddr, sizeof(*t1)+4, newsk); |
saddr | 2137 | net/inet/tcp.c | tmp = prot->build_header(buff,sk->saddr, sk->daddr, &dev, |
saddr | 2175 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, sizeof(*t1), sk); |
saddr | 2281 | net/inet/tcp.c | tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
saddr | 2652 | net/inet/tcp.c | unsigned long saddr, unsigned short len) |
saddr | 2667 | net/inet/tcp.c | if (!th->ack) tcp_send_ack(sk->sent_seq, sk->acked_seq,sk, th, saddr); |
saddr | 2674 | net/inet/tcp.c | tcp_reset(sk->saddr, sk->daddr, skb->h.th, |
saddr | 2837 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2842 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 2897 | net/inet/tcp.c | unsigned long saddr, unsigned long len) |
saddr | 2927 | net/inet/tcp.c | unsigned long saddr, struct device *dev) |
saddr | 2930 | net/inet/tcp.c | sk, th, saddr, dev)); |
saddr | 2983 | net/inet/tcp.c | sk, flags, in_ntoa(sk->saddr))); |
saddr | 3077 | net/inet/tcp.c | if(sk->saddr == sin.sin_addr.s_addr && sk->num==ntohs(sin.sin_port)) |
saddr | 3110 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 3143 | net/inet/tcp.c | if ((sk->saddr ^ sk->daddr) & default_mask(sk->saddr)) |
saddr | 3145 | net/inet/tcp.c | if ((sk->saddr ^ sk->daddr) & dev->pa_mask) |
saddr | 3166 | net/inet/tcp.c | tcp_send_check(t1, sk->saddr, sk->daddr, |
saddr | 3190 | net/inet/tcp.c | struct options *opt, unsigned long saddr, struct device *dev) |
saddr | 3233 | net/inet/tcp.c | tcp_reset(sk->saddr,sk->daddr,th,sk->prot,NULL,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 3238 | net/inet/tcp.c | tcp_send_ack(sk->sent_seq, sk->acked_seq, sk, th, saddr); |
saddr | 3246 | net/inet/tcp.c | unsigned long saddr, int redo, struct inet_protocol * protocol) |
saddr | 3267 | net/inet/tcp.c | sk = get_sock(&tcp_prot, th->dest, saddr, th->source, daddr); |
saddr | 3281 | net/inet/tcp.c | if (tcp_check(th, len, saddr, daddr )) { |
saddr | 3298 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, &tcp_prot, opt,dev,skb->ip_hdr->tos,255); |
saddr | 3309 | net/inet/tcp.c | skb->saddr = daddr; |
saddr | 3310 | net/inet/tcp.c | skb->daddr = saddr; |
saddr | 3370 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) { |
saddr | 3412 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev, sk->ip_tos,sk->ip_ttl); |
saddr | 3421 | net/inet/tcp.c | if (th->ack && !tcp_ack(sk, th, saddr, len)) { |
saddr | 3427 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3433 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3440 | net/inet/tcp.c | if (th->fin && tcp_fin(sk, th, saddr, dev)) { |
saddr | 3460 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
saddr | 3473 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, sk->prot, opt,dev,sk->ip_tos,sk->ip_ttl); |
saddr | 3487 | net/inet/tcp.c | tcp_conn_request(sk, skb, daddr, saddr, opt, dev); |
saddr | 3506 | net/inet/tcp.c | if (!tcp_sequence(sk, th, len, opt, saddr,dev)) |
saddr | 3544 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
saddr | 3547 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3572 | net/inet/tcp.c | if (!tcp_ack(sk, th, saddr, len)) |
saddr | 3575 | net/inet/tcp.c | tcp_reset(daddr, saddr, th, |
saddr | 3616 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3622 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) |
saddr | 3625 | net/inet/tcp.c | if (th->fin) tcp_fin(sk, th, saddr, dev); |
saddr | 3631 | net/inet/tcp.c | if (tcp_urg(sk, th, saddr, len)) { |
saddr | 3638 | net/inet/tcp.c | if (tcp_data(skb, sk, saddr, len)) { |
saddr | 3648 | net/inet/tcp.c | tcp_fin(sk, th, saddr, dev); |
saddr | 3687 | net/inet/tcp.c | tmp = sk->prot->build_header(buff, sk->saddr, sk->daddr, &dev, |
saddr | 3716 | 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 | 108 | net/inet/udp.c | unsigned long saddr, struct inet_protocol *protocol) |
saddr | 122 | net/inet/udp.c | sport=%d,dport=%d", err, header, daddr, saddr, protocol, (int)th->source,(int)th->dest)); |
saddr | 124 | net/inet/udp.c | sk = get_sock(&udp_prot, th->source, daddr, th->dest, saddr); |
saddr | 152 | net/inet/udp.c | static unsigned short udp_check(struct udphdr *uh, int len, unsigned long saddr, unsigned long daddr) |
saddr | 157 | net/inet/udp.c | uh, len, saddr, daddr)); |
saddr | 165 | net/inet/udp.c | : "0"(daddr), "c"(saddr), "d"((ntohs(len) << 16) + IPPROTO_UDP*256) |
saddr | 235 | net/inet/udp.c | static void udp_send_check(struct udphdr *uh, unsigned long saddr, |
saddr | 241 | net/inet/udp.c | uh->check = udp_check(uh, len, saddr, daddr); |
saddr | 260 | net/inet/udp.c | unsigned long saddr; |
saddr | 292 | net/inet/udp.c | saddr = 0; |
saddr | 295 | net/inet/udp.c | saddr, sin->sin_addr.s_addr, dev, IPPROTO_UDP, skb->mem_len)); |
saddr | 296 | net/inet/udp.c | tmp = sk->prot->build_header(skb, saddr, sin->sin_addr.s_addr, |
saddr | 311 | net/inet/udp.c | saddr = skb->saddr; /*dev->pa_addr;*/ |
saddr | 337 | net/inet/udp.c | udp_send_check(uh, saddr, sin->sin_addr.s_addr, skb->len - tmp, sk); |
saddr | 652 | net/inet/udp.c | unsigned long saddr, int redo, struct inet_protocol *protocol) |
saddr | 665 | net/inet/udp.c | sk = get_sock(&udp_prot, uh->dest, saddr, uh->source, daddr); |
saddr | 682 | net/inet/udp.c | if (uh->check && udp_check(uh, len, saddr, daddr)) |
saddr | 699 | net/inet/udp.c | skb->daddr = saddr; |
saddr | 700 | 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, |