/linux-2.4.37.9/net/khttpd/ |
D | sockets.c | 45 struct sockaddr_in sin; in StartListening() local 60 sin.sin_family = AF_INET; in StartListening() 61 sin.sin_addr.s_addr = INADDR_ANY; in StartListening() 62 sin.sin_port = htons((unsigned short)Port); in StartListening() 64 error = sock->ops->bind(sock,(struct sockaddr*)&sin,sizeof(sin)); in StartListening()
|
/linux-2.4.37.9/net/ipv6/ |
D | datagram.c | 108 struct sockaddr_in6 *sin; in ipv6_recv_error() local 134 sin = (struct sockaddr_in6 *)msg->msg_name; in ipv6_recv_error() 135 if (sin) { in ipv6_recv_error() 136 sin->sin6_family = AF_INET6; in ipv6_recv_error() 137 sin->sin6_flowinfo = 0; in ipv6_recv_error() 138 sin->sin6_port = serr->port; in ipv6_recv_error() 139 sin->sin6_scope_id = 0; in ipv6_recv_error() 141 memcpy(&sin->sin6_addr, skb->nh.raw + serr->addr_offset, 16); in ipv6_recv_error() 143 sin->sin6_flowinfo = *(u32*)(skb->nh.raw + serr->addr_offset - 24) & IPV6_FLOWINFO_MASK; in ipv6_recv_error() 144 if (ipv6_addr_type(&sin->sin6_addr) & IPV6_ADDR_LINKLOCAL) { in ipv6_recv_error() [all …]
|
D | af_inet6.c | 382 struct sockaddr_in6 *sin=(struct sockaddr_in6 *)uaddr; in inet6_getname() local 385 sin->sin6_family = AF_INET6; in inet6_getname() 386 sin->sin6_flowinfo = 0; in inet6_getname() 387 sin->sin6_scope_id = 0; in inet6_getname() 393 sin->sin6_port = sk->dport; in inet6_getname() 394 memcpy(&sin->sin6_addr, &sk->net_pinfo.af_inet6.daddr, in inet6_getname() 397 sin->sin6_flowinfo = sk->net_pinfo.af_inet6.flow_label; in inet6_getname() 400 memcpy(&sin->sin6_addr, in inet6_getname() 404 memcpy(&sin->sin6_addr, in inet6_getname() 408 sin->sin6_port = sk->sport; in inet6_getname() [all …]
|
D | udp.c | 274 struct sockaddr_in sin; in udpv6_connect() local 279 sin.sin_family = AF_INET; in udpv6_connect() 280 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in udpv6_connect() 281 sin.sin_port = usin->sin6_port; in udpv6_connect() 283 err = udp_connect(sk, (struct sockaddr*) &sin, sizeof(sin)); in udpv6_connect() 851 struct sockaddr_in sin; in udpv6_sendmsg() local 856 sin.sin_family = AF_INET; in udpv6_sendmsg() 857 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in udpv6_sendmsg() 858 sin.sin_port = udh.uh.dest; in udpv6_sendmsg() 859 msg->msg_name = (struct sockaddr *)(&sin); in udpv6_sendmsg() [all …]
|
/linux-2.4.37.9/fs/lockd/ |
D | host.c | 43 nlmclnt_lookup_host(struct sockaddr_in *sin, int proto, int version) in nlmclnt_lookup_host() argument 45 return nlm_lookup_host(NULL, sin, proto, version); in nlmclnt_lookup_host() 63 struct sockaddr_in *sin) in nlm_match_host() argument 67 return nlm_cmp_addr(&host->h_addr, sin); in nlm_match_host() 74 nlm_lookup_host(struct svc_client *clnt, struct sockaddr_in *sin, in nlm_lookup_host() argument 81 if (!clnt && !sin) { in nlm_lookup_host() 87 (unsigned)(sin? ntohl(sin->sin_addr.s_addr) : 0), proto, version); in nlm_lookup_host() 92 hash = NLM_ADDRHASH(sin->sin_addr.s_addr); in nlm_lookup_host() 106 if (nlm_match_host(host, clnt, sin)) { in nlm_lookup_host() 119 if (sin == NULL) in nlm_lookup_host() [all …]
|
D | mon.c | 107 struct sockaddr_in sin; in nsm_create() local 109 sin.sin_family = AF_INET; in nsm_create() 110 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in nsm_create() 111 sin.sin_port = 0; in nsm_create() 113 xprt = xprt_create_proto(IPPROTO_UDP, &sin, NULL); in nsm_create()
|
/linux-2.4.37.9/fs/nfs/ |
D | nfsroot.c | 334 set_sockaddr(struct sockaddr_in *sin, __u32 addr, __u16 port) in set_sockaddr() argument 336 sin->sin_family = AF_INET; in set_sockaddr() 337 sin->sin_addr.s_addr = addr; in set_sockaddr() 338 sin->sin_port = port; in set_sockaddr() 346 struct sockaddr_in sin; in root_nfs_getport() local 350 set_sockaddr(&sin, servaddr, 0); in root_nfs_getport() 351 return rpc_getport_external(&sin, program, version, proto); in root_nfs_getport() 411 struct sockaddr_in sin; in root_nfs_get_handle() local 418 set_sockaddr(&sin, servaddr, mount_port); in root_nfs_get_handle() 419 status = nfsroot_mount(&sin, nfs_path, &nfs_data.root, in root_nfs_get_handle()
|
/linux-2.4.37.9/fs/nfsd/ |
D | nfsctl.c | 112 struct sockaddr_in *sin; in nfsctl_getfs() local 118 sin = (struct sockaddr_in *)&data->gd_addr; in nfsctl_getfs() 122 if (!(clp = exp_getclient(sin))) in nfsctl_getfs() 133 struct sockaddr_in *sin; in nfsctl_getfd() local 142 sin = (struct sockaddr_in *)&data->gd_addr; in nfsctl_getfd() 145 if (!(clp = exp_getclient(sin))) in nfsctl_getfd() 166 struct sockaddr_in *sin; in nfsctl_getfh() local 175 sin = (struct sockaddr_in *)&data->gf_addr; in nfsctl_getfh() 178 if (!(clp = exp_getclient(sin))) in nfsctl_getfh()
|
/linux-2.4.37.9/net/sunrpc/ |
D | pmap_clnt.c | 91 rpc_getport_external(struct sockaddr_in *sin, __u32 prog, __u32 vers, int prot) in rpc_getport_external() argument 99 NIPQUAD(sin->sin_addr.s_addr), prog, vers, prot); in rpc_getport_external() 101 sprintf(hostname, "%u.%u.%u.%u", NIPQUAD(sin->sin_addr.s_addr)); in rpc_getport_external() 102 if (!(pmap_clnt = pmap_create(hostname, sin, prot))) in rpc_getport_external() 149 struct sockaddr_in sin; in rpc_register() local 157 sin.sin_family = AF_INET; in rpc_register() 158 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in rpc_register() 159 if (!(pmap_clnt = pmap_create("localhost", &sin, IPPROTO_UDP))) { in rpc_register()
|
D | svcsock.c | 682 struct sockaddr_in sin; in svc_tcp_accept() local 713 slen = sizeof(sin); in svc_tcp_accept() 714 err = ops->getname(newsock, (struct sockaddr *) &sin, &slen, 1); in svc_tcp_accept() 726 if (ntohs(sin.sin_port) >= 1024) { in svc_tcp_accept() 730 NIPQUAD(sin.sin_addr.s_addr), ntohs(sin.sin_port)); in svc_tcp_accept() 734 NIPQUAD(sin.sin_addr.s_addr), ntohs(sin.sin_port)); in svc_tcp_accept() 1243 svc_create_socket(struct svc_serv *serv, int protocol, struct sockaddr_in *sin) in svc_create_socket() argument 1252 NIPQUAD(sin->sin_addr.s_addr), in svc_create_socket() 1253 ntohs(sin->sin_port)); in svc_create_socket() 1265 if (sin != NULL) { in svc_create_socket() [all …]
|
/linux-2.4.37.9/net/ipv4/ |
D | devinet.c | 464 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; in devinet_ioctl() local 482 memcpy(&sin_orig, sin, sizeof(*sin)); in devinet_ioctl() 502 memset(sin, 0, sizeof(*sin)); in devinet_ioctl() 503 sin->sin_family = AF_INET; in devinet_ioctl() 516 if (sin->sin_family != AF_INET) in devinet_ioctl() 565 sin->sin_addr.s_addr = ifa->ifa_local; in devinet_ioctl() 569 sin->sin_addr.s_addr = ifa->ifa_broadcast; in devinet_ioctl() 573 sin->sin_addr.s_addr = ifa->ifa_address; in devinet_ioctl() 577 sin->sin_addr.s_addr = ifa->ifa_mask; in devinet_ioctl() 594 if (inet_abc_len(sin->sin_addr.s_addr) < 0) { in devinet_ioctl() [all …]
|
D | ip_sockglue.c | 302 struct sockaddr_in *sin; in ip_recv_error() local 328 sin = (struct sockaddr_in *)msg->msg_name; in ip_recv_error() 329 if (sin) { in ip_recv_error() 330 sin->sin_family = AF_INET; in ip_recv_error() 331 sin->sin_addr.s_addr = *(u32*)(skb->nh.raw + serr->addr_offset); in ip_recv_error() 332 sin->sin_port = serr->port; in ip_recv_error() 333 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in ip_recv_error() 337 sin = &errhdr.offender; in ip_recv_error() 338 sin->sin_family = AF_UNSPEC; in ip_recv_error() 340 sin->sin_family = AF_INET; in ip_recv_error() [all …]
|
D | raw.c | 489 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; in raw_recvmsg() local 496 *addr_len = sizeof(*sin); in raw_recvmsg() 520 if (sin) { in raw_recvmsg() 521 sin->sin_family = AF_INET; in raw_recvmsg() 522 sin->sin_addr.s_addr = skb->nh.iph->saddr; in raw_recvmsg() 523 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in raw_recvmsg()
|
D | af_inet.c | 710 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in inet_getname() local 712 sin->sin_family = AF_INET; in inet_getname() 718 sin->sin_port = sk->dport; in inet_getname() 719 sin->sin_addr.s_addr = sk->daddr; in inet_getname() 724 sin->sin_port = sk->sport; in inet_getname() 725 sin->sin_addr.s_addr = addr; in inet_getname() 727 memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); in inet_getname() 728 *uaddr_len = sizeof(*sin); in inet_getname()
|
D | ipconfig.c | 260 set_sockaddr(struct sockaddr_in *sin, u32 addr, u16 port) in set_sockaddr() argument 262 sin->sin_family = AF_INET; in set_sockaddr() 263 sin->sin_addr.s_addr = addr; in set_sockaddr() 264 sin->sin_port = port; in set_sockaddr() 296 struct sockaddr_in *sin = (void *) &ir.ifr_ifru.ifru_addr; in ic_setup_if() local 301 set_sockaddr(sin, ic_myaddr, 0); in ic_setup_if() 306 set_sockaddr(sin, ic_netmask, 0); in ic_setup_if() 311 set_sockaddr(sin, ic_myaddr | ~ic_netmask, 0); in ic_setup_if()
|
D | udp.c | 697 struct sockaddr_in *sin = (struct sockaddr_in *)msg->msg_name; in udp_recvmsg() local 705 *addr_len=sizeof(*sin); in udp_recvmsg() 742 if (sin) in udp_recvmsg() 744 sin->sin_family = AF_INET; in udp_recvmsg() 745 sin->sin_port = skb->h.uh->source; in udp_recvmsg() 746 sin->sin_addr.s_addr = skb->nh.iph->saddr; in udp_recvmsg() 747 memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); in udp_recvmsg()
|
/linux-2.4.37.9/net/sctp/ |
D | protocol.c | 705 struct sockaddr_in *sin; in sctp_inet_msgname() local 707 sin = (struct sockaddr_in *)msgname; in sctp_inet_msgname() 709 sin->sin_family = AF_INET; in sctp_inet_msgname() 710 memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); in sctp_inet_msgname() 717 struct sockaddr_in *sin, *sinfrom; in sctp_inet_event_msgname() local 724 sin = (struct sockaddr_in *)msgname; in sctp_inet_event_msgname() 726 sin->sin_port = htons(asoc->peer.port); in sctp_inet_event_msgname() 727 sin->sin_addr.s_addr = sinfrom->sin_addr.s_addr; in sctp_inet_event_msgname() 735 struct sockaddr_in *sin; in sctp_inet_skb_msgname() local 739 sin = (struct sockaddr_in *)msgname; in sctp_inet_skb_msgname() [all …]
|
/linux-2.4.37.9/net/econet/ |
D | af_econet.c | 778 struct sockaddr_in sin; in aun_send_response() local 785 memset(&sin, 0, sizeof(sin)); in aun_send_response() 786 sin.sin_family = AF_INET; in aun_send_response() 787 sin.sin_port = htons(AUN_PORT); in aun_send_response() 788 sin.sin_addr.s_addr = addr; in aun_send_response() 799 udpmsg.msg_name = (void *)&sin; in aun_send_response() 800 udpmsg.msg_namelen = sizeof(sin); in aun_send_response() 979 struct sockaddr_in sin; in aun_udp_initialise() local 988 memset(&sin, 0, sizeof(sin)); in aun_udp_initialise() 989 sin.sin_port = htons(AUN_PORT); in aun_udp_initialise() [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | gentbl.c | 104 sum += (v = 127.0*sin(ARGLO(i))); in gentbl_afsk1200() 116 sum += (v = 127.0*sin(ARGHI(i))); in gentbl_afsk1200() 162 return sin(x)/x; in sinc() 303 sin(M_PI*k/32768.0)); in gentbl_afsk2666() 416 x = 32767.0 * sin(k*M_PI/4.0) * in gentbl_psk4800() 602 sum += (v = 127.0*sin(ARGLO(i))*WINDOW(i)); in gentbl_afsk2400() 614 sum += (v = 127.0*sin(ARGHI(i))*WINDOW(i)); in gentbl_afsk2400()
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_sync.c | 424 struct sockaddr_in sin; in bind_mcastif_addr() local 438 sin.sin_family = AF_INET; in bind_mcastif_addr() 439 sin.sin_addr.s_addr = addr; in bind_mcastif_addr() 440 sin.sin_port = 0; in bind_mcastif_addr() 442 return sock->ops->bind(sock, (struct sockaddr*)&sin, sizeof(sin)); in bind_mcastif_addr()
|
/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ip_conntrack_core.c | 1345 struct sockaddr_in sin; in getorigdst() local 1347 sin.sin_family = AF_INET; in getorigdst() 1348 sin.sin_port = h->ctrack->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 1350 sin.sin_addr.s_addr = h->ctrack->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 1352 memset(sin.sin_zero, 0, sizeof(sin.sin_zero)); in getorigdst() 1355 NIPQUAD(sin.sin_addr.s_addr), ntohs(sin.sin_port)); in getorigdst() 1357 if (copy_to_user(user, &sin, sizeof(sin)) != 0) in getorigdst()
|
/linux-2.4.37.9/arch/m68k/fpsp040/ |
D | ssin.S | 12 | Output: The function value sin(X) or cos(X) returned in Fp0 if SIN or 13 | COS is requested. Otherwise, for SINCOS, sin(X) is returned 45 | 6. (k is even) Set j := k/2, sgn := (-1)**j. Return sgn*sin(r) 46 | where sin(r) is approximated by an odd polynomial in r 67 | SIN(X) = sgn1 * cos(r) and COS(X) = sgn2*sin(r) where 68 | sin(r) and cos(r) are computed as odd and even polynomials 72 | SIN(X) = sgn1 * sin(r) and COS(X) = sgn1*cos(r) where 73 | sin(r) and cos(r) are computed as odd and even polynomials
|
/linux-2.4.37.9/include/linux/nfsd/ |
D | export.h | 96 struct svc_client * exp_getclient(struct sockaddr_in *sin);
|
/linux-2.4.37.9/drivers/isdn/eicon/ |
D | pc_maint.h | 55 byte sin[3]; member
|
D | eicon_idi.h | 43 __u8 sin[4]; member
|