tag | line | file | source code |
sock | 114 | drivers/net/de600.c | static unsigned long de600_rspace(struct sock *sk); |
sock | 807 | drivers/net/de600.c | de600_rspace(struct sock *sk) |
sock | 145 | fs/nfs/inode.c | struct socket *sock; |
sock | 150 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
sock | 153 | fs/nfs/inode.c | sock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ; |
sock | 640 | fs/nfs/nfsroot.c | struct socket *sock; |
sock | 657 | fs/nfs/nfsroot.c | sock = &((filp->f_inode)->u.socket_i); |
sock | 660 | fs/nfs/nfsroot.c | sock->ops->getname(sock, &(s.toaddr), &dummylen, 1) ; |
sock | 82 | fs/nfs/rpcsock.c | struct socket *sock = rsock->sock; |
sock | 89 | fs/nfs/rpcsock.c | result = sock->ops->sendmsg(sock, msg, len, 0, 0); |
sock | 130 | fs/nfs/rpcsock.c | struct socket *sock = rsock->sock; |
sock | 139 | fs/nfs/rpcsock.c | result = sock->ops->recvmsg(sock, msg, len, 1, flags, &alen); |
sock | 364 | fs/nfs/rpcsock.c | rsock->sock = &file->f_inode->u.socket_i; |
sock | 159 | fs/read_write.c | struct socket *sock; |
sock | 161 | fs/read_write.c | sock = &inode->u.socket_i; |
sock | 162 | fs/read_write.c | if (!sock->ops) |
sock | 172 | fs/read_write.c | if (!sock->ops->recvmsg) |
sock | 174 | fs/read_write.c | return sock->ops->recvmsg(sock, &msg, size, |
sock | 177 | fs/read_write.c | if (!sock->ops->sendmsg) |
sock | 179 | fs/read_write.c | return sock->ops->sendmsg(sock, &msg, size, |
sock | 27 | fs/smbfs/sock.c | static int _recvfrom(struct socket *sock, unsigned char *ubuf, int size, int noblock, unsigned flags, |
sock | 44 | fs/smbfs/sock.c | return sock->ops->recvmsg(sock, &msg, size, noblock, flags, addr_len); |
sock | 47 | fs/smbfs/sock.c | static int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) { |
sock | 60 | fs/smbfs/sock.c | return sock->ops->sendmsg(sock, &msg, len, nonblock, flags); |
sock | 64 | fs/smbfs/sock.c | smb_data_callback(struct sock *sk,int len) |
sock | 66 | fs/smbfs/sock.c | struct socket *sock = sk->socket; |
sock | 77 | fs/smbfs/sock.c | result = _recvfrom(sock, (void *)peek_buf, 1, 1, |
sock | 83 | fs/smbfs/sock.c | result = _recvfrom(sock, (void *)peek_buf, |
sock | 92 | fs/smbfs/sock.c | result = _recvfrom(sock, (void *)peek_buf, |
sock | 111 | fs/smbfs/sock.c | struct socket *sock; |
sock | 112 | fs/smbfs/sock.c | struct sock *sk; |
sock | 124 | fs/smbfs/sock.c | sock = &(inode->u.socket_i); |
sock | 126 | fs/smbfs/sock.c | if (sock->type != SOCK_STREAM) { |
sock | 132 | fs/smbfs/sock.c | sk = (struct sock *)(sock->data); |
sock | 159 | fs/smbfs/sock.c | struct socket *sock; |
sock | 160 | fs/smbfs/sock.c | struct sock *sk; |
sock | 172 | fs/smbfs/sock.c | sock = &(inode->u.socket_i); |
sock | 174 | fs/smbfs/sock.c | if (sock->type != SOCK_STREAM) { |
sock | 179 | fs/smbfs/sock.c | sk = (struct sock *)(sock->data); |
sock | 213 | fs/smbfs/sock.c | smb_receive_raw(struct socket *sock, unsigned char *target, |
sock | 227 | fs/smbfs/sock.c | result = _recvfrom(sock, (void *)peek_buf, 4, 0, |
sock | 273 | fs/smbfs/sock.c | result = _recvfrom(sock, |
sock | 294 | fs/smbfs/sock.c | smb_receive(struct smb_server *server, struct socket *sock) |
sock | 298 | fs/smbfs/sock.c | result = smb_receive_raw(sock, server->packet, |
sock | 324 | fs/smbfs/sock.c | smb_receive_trans2(struct smb_server *server, struct socket *sock, |
sock | 337 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 412 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 451 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 454 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 457 | fs/smbfs/sock.c | result = sock->ops->release(sock, NULL); |
sock | 463 | fs/smbfs/sock.c | sock->state = SS_UNCONNECTED; |
sock | 465 | fs/smbfs/sock.c | result = sock->ops->create(sock, 0); |
sock | 473 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 474 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 476 | fs/smbfs/sock.c | if (sock->state != SS_UNCONNECTED) { |
sock | 478 | fs/smbfs/sock.c | sock->state); |
sock | 480 | fs/smbfs/sock.c | return sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr), |
sock | 498 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 501 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 524 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
sock | 529 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
sock | 566 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 569 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 592 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
sock | 597 | fs/smbfs/sock.c | result = smb_receive_trans2(server, sock, |
sock | 632 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 635 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 661 | fs/smbfs/sock.c | (unsigned int)buffer, (unsigned int)sock); |
sock | 663 | fs/smbfs/sock.c | result = _send(sock, (void *)buffer, len, 0, 0); |
sock | 673 | fs/smbfs/sock.c | result = smb_receive_raw(sock, target, max_len, 0); |
sock | 707 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 710 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 731 | fs/smbfs/sock.c | result = _send(sock, (void *)nb_header, 4, 0, 0); |
sock | 735 | fs/smbfs/sock.c | result = _send(sock, (void *)source, length, 0, 0); |
sock | 744 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
sock | 128 | include/linux/atalk.h | typedef struct sock atalk_socket; |
sock | 90 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
sock | 91 | include/linux/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
sock | 92 | include/linux/igmp.h | extern void ip_mc_drop_socket(struct sock *sk); |
sock | 119 | include/linux/mroute.h | extern struct sock *mroute_socket; |
sock | 120 | include/linux/mroute.h | extern int ip_mroute_setsockopt(struct sock *, int, char *, int); |
sock | 121 | include/linux/mroute.h | extern int ip_mroute_getsockopt(struct sock *, int, char *, int *); |
sock | 122 | include/linux/mroute.h | extern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 123 | include/linux/mroute.h | extern void mroute_close(struct sock *sk); |
sock | 93 | include/linux/net.h | int (*create) (struct socket *sock, int protocol); |
sock | 95 | include/linux/net.h | int (*release) (struct socket *sock, struct socket *peer); |
sock | 96 | include/linux/net.h | int (*bind) (struct socket *sock, struct sockaddr *umyaddr, |
sock | 98 | include/linux/net.h | int (*connect) (struct socket *sock, struct sockaddr *uservaddr, |
sock | 101 | include/linux/net.h | int (*accept) (struct socket *sock, struct socket *newsock, |
sock | 103 | include/linux/net.h | int (*getname) (struct socket *sock, struct sockaddr *uaddr, |
sock | 105 | include/linux/net.h | int (*select) (struct socket *sock, int sel_type, |
sock | 107 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
sock | 109 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
sock | 110 | include/linux/net.h | int (*shutdown) (struct socket *sock, int flags); |
sock | 111 | include/linux/net.h | int (*setsockopt) (struct socket *sock, int level, int optname, |
sock | 113 | include/linux/net.h | int (*getsockopt) (struct socket *sock, int level, int optname, |
sock | 115 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
sock | 117 | include/linux/net.h | int (*sendmsg) (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags); |
sock | 118 | include/linux/net.h | int (*recvmsg) (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len); |
sock | 126 | include/linux/net.h | extern int sock_wake_async(struct socket *sock, int how); |
sock | 130 | include/linux/net.h | extern void sock_release(struct socket *sock); |
sock | 39 | include/linux/rpcsock.h | struct socket *sock; |
sock | 47 | include/linux/skbuff.h | struct sock *sk; /* Socket we are owned by */ |
sock | 365 | include/linux/skbuff.h | extern struct sk_buff * skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err); |
sock | 366 | include/linux/skbuff.h | extern int datagram_select(struct sock *sk, int sel_type, select_table *wait); |
sock | 3 | include/net/af_unix.h | typedef struct sock unix_socket; |
sock | 159 | include/net/ax25.h | struct sock *sk; /* Backlink to socket */ |
sock | 32 | include/net/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
sock | 45 | include/net/ip.h | extern void ip_mc_dropsocket(struct sock *); |
sock | 86 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 103 | include/net/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 107 | include/net/ip.h | extern int ip_build_xmit(struct sock *sk, |
sock | 129 | include/net/ip.h | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag); |
sock | 150 | include/net/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 151 | include/net/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 22 | include/net/ipx.h | unsigned short sock; |
sock | 45 | include/net/ipx.h | typedef struct sock ipx_socket; |
sock | 63 | include/net/netrom.h | struct sock *sk; /* Backlink to socket */ |
sock | 95 | include/net/netrom.h | extern void nr_destroy_socket(struct sock *); |
sock | 104 | include/net/netrom.h | extern int nr_process_rx_frame(struct sock *, struct sk_buff *); |
sock | 107 | include/net/netrom.h | extern void nr_output(struct sock *, struct sk_buff *); |
sock | 108 | include/net/netrom.h | extern void nr_send_nak_frame(struct sock *); |
sock | 109 | include/net/netrom.h | extern void nr_kick(struct sock *); |
sock | 110 | include/net/netrom.h | extern void nr_transmit_buffer(struct sock *, struct sk_buff *); |
sock | 111 | include/net/netrom.h | extern void nr_establish_data_link(struct sock *); |
sock | 112 | include/net/netrom.h | extern void nr_enquiry_response(struct sock *); |
sock | 113 | include/net/netrom.h | extern void nr_check_iframes_acked(struct sock *, unsigned short); |
sock | 126 | include/net/netrom.h | extern void nr_clear_queues(struct sock *); |
sock | 127 | include/net/netrom.h | extern void nr_frames_acked(struct sock *, unsigned short); |
sock | 128 | include/net/netrom.h | extern void nr_requeue_frames(struct sock *); |
sock | 129 | include/net/netrom.h | extern int nr_validate_nr(struct sock *, unsigned short); |
sock | 130 | include/net/netrom.h | extern int nr_in_rx_window(struct sock *, unsigned short); |
sock | 131 | include/net/netrom.h | extern void nr_write_internal(struct sock *, int); |
sock | 133 | include/net/netrom.h | extern unsigned short nr_calculate_t1(struct sock *); |
sock | 134 | include/net/netrom.h | extern void nr_calculate_rtt(struct sock *); |
sock | 137 | include/net/netrom.h | extern void nr_set_timer(struct sock *); |
sock | 26 | include/net/raw.h | extern int raw_recvfrom(struct sock *sk, unsigned char *to, |
sock | 29 | include/net/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
sock | 31 | include/net/raw.h | extern int raw_rcv(struct sock *, struct sk_buff *, struct device *, |
sock | 73 | include/net/sock.h | struct sock * other; |
sock | 133 | include/net/sock.h | struct sock *next; |
sock | 134 | include/net/sock.h | struct sock *prev; /* Doubly linked chain.. */ |
sock | 135 | include/net/sock.h | struct sock *pair; |
sock | 258 | include/net/sock.h | void (*state_change)(struct sock *sk); |
sock | 259 | include/net/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 260 | include/net/sock.h | void (*write_space)(struct sock *sk); |
sock | 261 | include/net/sock.h | void (*error_report)(struct sock *sk); |
sock | 271 | include/net/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 278 | include/net/sock.h | int (*connect)(struct sock *sk, |
sock | 280 | include/net/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 281 | include/net/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 284 | include/net/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 285 | include/net/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 286 | include/net/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 291 | include/net/sock.h | int (*select)(struct sock *sk, int which, |
sock | 293 | include/net/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 295 | include/net/sock.h | int (*init)(struct sock *sk); |
sock | 296 | include/net/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 297 | include/net/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 299 | include/net/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 301 | include/net/sock.h | int (*sendmsg)(struct sock *sk, struct msghdr *msg, int len, |
sock | 303 | include/net/sock.h | int (*recvmsg)(struct sock *sk, struct msghdr *msg, int len, |
sock | 305 | include/net/sock.h | int (*bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len); |
sock | 310 | include/net/sock.h | struct sock * sock_array[SOCK_ARRAY_SIZE]; |
sock | 337 | include/net/sock.h | extern void destroy_sock(struct sock *sk); |
sock | 340 | include/net/sock.h | extern void put_sock(unsigned short, struct sock *); |
sock | 341 | include/net/sock.h | extern void release_sock(struct sock *sk); |
sock | 342 | include/net/sock.h | extern struct sock *get_sock(struct proto *, unsigned short, |
sock | 345 | include/net/sock.h | extern struct sock *get_sock_mcast(struct sock *, unsigned short, |
sock | 348 | include/net/sock.h | extern struct sock *get_sock_raw(struct sock *, unsigned short, |
sock | 351 | include/net/sock.h | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
sock | 354 | include/net/sock.h | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
sock | 357 | include/net/sock.h | extern void sock_wfree(struct sock *sk, |
sock | 359 | include/net/sock.h | extern void sock_rfree(struct sock *sk, |
sock | 361 | include/net/sock.h | extern unsigned long sock_rspace(struct sock *sk); |
sock | 362 | include/net/sock.h | extern unsigned long sock_wspace(struct sock *sk); |
sock | 364 | include/net/sock.h | extern int sock_setsockopt(struct sock *sk, int level, |
sock | 368 | include/net/sock.h | extern int sock_getsockopt(struct sock *sk, int level, |
sock | 371 | include/net/sock.h | extern struct sk_buff *sock_alloc_send_skb(struct sock *skb, |
sock | 386 | include/net/sock.h | extern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
sock | 406 | include/net/sock.h | extern __inline__ int sock_error(struct sock *sk) |
sock | 416 | include/net/sock.h | extern struct sock *timer_base; |
sock | 418 | include/net/sock.h | extern void delete_timer (struct sock *); |
sock | 419 | include/net/sock.h | extern void reset_timer (struct sock *, int, unsigned long); |
sock | 128 | include/net/tcp.h | extern void tcp_shutdown (struct sock *sk, int how); |
sock | 134 | include/net/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 136 | include/net/tcp.h | extern int tcp_select_window(struct sock *sk); |
sock | 138 | include/net/tcp.h | unsigned long daddr, int len, struct sock *sk); |
sock | 139 | include/net/tcp.h | extern void tcp_send_probe0(struct sock *sk); |
sock | 140 | include/net/tcp.h | extern void tcp_enqueue_partial(struct sk_buff *, struct sock *); |
sock | 141 | include/net/tcp.h | extern struct sk_buff * tcp_dequeue_partial(struct sock *); |
sock | 37 | include/net/udp.h | __u32 daddr, int len, struct sock *sk); |
sock | 38 | include/net/udp.h | extern int udp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 41 | include/net/udp.h | extern int udp_read(struct sock *sk, unsigned char *buff, |
sock | 43 | include/net/udp.h | extern int udp_connect(struct sock *sk, |
sock | 49 | include/net/udp.h | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 6 | net/802/llc.c | int llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 36 | net/802/llc.c | int llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 70 | net/802/llc.c | int llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 114 | net/802/llc.c | int llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 150 | net/802/llc.c | int llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 199 | net/802/llc.c | int llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 288 | net/802/llc.c | int llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns) |
sock | 951 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 966 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 971 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1004 | net/appletalk/ddp.c | static int atalk_getsockopt(struct socket *sock, int level, int optname, |
sock | 1011 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1043 | net/appletalk/ddp.c | static int atalk_listen(struct socket *sock, int backlog) |
sock | 1052 | net/appletalk/ddp.c | static void def_callback1(struct sock *sk) |
sock | 1058 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
sock | 1072 | net/appletalk/ddp.c | static int atalk_create(struct socket *sock, int protocol) |
sock | 1078 | net/appletalk/ddp.c | switch(sock->type) |
sock | 1112 | net/appletalk/ddp.c | sk->socket=sock; |
sock | 1113 | net/appletalk/ddp.c | sk->type=sock->type; |
sock | 1126 | net/appletalk/ddp.c | if(sock!=NULL) |
sock | 1128 | net/appletalk/ddp.c | sock->data=(void *)sk; |
sock | 1129 | net/appletalk/ddp.c | sk->sleep=sock->wait; |
sock | 1154 | net/appletalk/ddp.c | static int atalk_release(struct socket *sock, struct socket *peer) |
sock | 1156 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1162 | net/appletalk/ddp.c | sock->data=NULL; |
sock | 1205 | net/appletalk/ddp.c | static int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1210 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1259 | net/appletalk/ddp.c | static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1262 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1266 | net/appletalk/ddp.c | sock->state = SS_UNCONNECTED; |
sock | 1290 | net/appletalk/ddp.c | sock->state = SS_CONNECTED; |
sock | 1308 | net/appletalk/ddp.c | static int atalk_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1320 | net/appletalk/ddp.c | static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1326 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1362 | net/appletalk/ddp.c | atalk_socket *sock; |
sock | 1489 | net/appletalk/ddp.c | sock=atalk_search_socket( &tosat, atif ); |
sock | 1491 | net/appletalk/ddp.c | if(sock==NULL) /* But not one of our sockets */ |
sock | 1502 | net/appletalk/ddp.c | skb->sk = sock; |
sock | 1504 | net/appletalk/ddp.c | if(sock_queue_rcv_skb(sock,skb)<0) |
sock | 1512 | net/appletalk/ddp.c | static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
sock | 1514 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1699 | net/appletalk/ddp.c | static int atalk_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len) |
sock | 1701 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1750 | net/appletalk/ddp.c | static int atalk_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1752 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1761 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1765 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 267 | net/ax25/af_ax25.c | static struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type) |
sock | 292 | net/ax25/af_ax25.c | static struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type) |
sock | 341 | net/ax25/af_ax25.c | static struct sock *ax25_addr_match(ax25_address *addr) |
sock | 361 | net/ax25/af_ax25.c | static void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto) |
sock | 683 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 692 | net/ax25/af_ax25.c | static int ax25_setsockopt(struct socket *sock, int level, int optname, |
sock | 695 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 698 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 767 | net/ax25/af_ax25.c | static int ax25_getsockopt(struct socket *sock, int level, int optname, |
sock | 770 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 774 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 832 | net/ax25/af_ax25.c | static int ax25_listen(struct socket *sock, int backlog) |
sock | 834 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 845 | net/ax25/af_ax25.c | static void def_callback1(struct sock *sk) |
sock | 851 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
sock | 857 | net/ax25/af_ax25.c | static int ax25_create(struct socket *sock, int protocol) |
sock | 859 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 862 | net/ax25/af_ax25.c | switch (sock->type) { |
sock | 892 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 904 | net/ax25/af_ax25.c | sk->socket = sock; |
sock | 905 | net/ax25/af_ax25.c | sk->type = sock->type; |
sock | 934 | net/ax25/af_ax25.c | if (sock != NULL) { |
sock | 935 | net/ax25/af_ax25.c | sock->data = (void *)sk; |
sock | 936 | net/ax25/af_ax25.c | sk->sleep = sock->wait; |
sock | 945 | net/ax25/af_ax25.c | static struct sock *ax25_make_new(struct sock *osk, struct device *dev) |
sock | 947 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 950 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 1037 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 1042 | net/ax25/af_ax25.c | static int ax25_release(struct socket *sock, struct socket *peer) |
sock | 1044 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1099 | net/ax25/af_ax25.c | sock->data = NULL; |
sock | 1111 | net/ax25/af_ax25.c | static int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1113 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1118 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1168 | net/ax25/af_ax25.c | static int ax25_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1171 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1175 | net/ax25/af_ax25.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 1176 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1180 | net/ax25/af_ax25.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 1181 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1189 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1230 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1236 | net/ax25/af_ax25.c | sock->state = SS_CONNECTING; |
sock | 1261 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1265 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1277 | net/ax25/af_ax25.c | static int ax25_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1279 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1280 | net/ax25/af_ax25.c | struct sock *newsk; |
sock | 1284 | net/ax25/af_ax25.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 1288 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1326 | net/ax25/af_ax25.c | static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1331 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1334 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1363 | net/ax25/af_ax25.c | struct sock *make; |
sock | 1364 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1369 | net/ax25/af_ax25.c | struct sock *raw; |
sock | 1685 | net/ax25/af_ax25.c | static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
sock | 1687 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1823 | net/ax25/af_ax25.c | static int ax25_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len) |
sock | 1825 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1905 | net/ax25/af_ax25.c | static int ax25_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1907 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1912 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1914 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 55 | net/core/datagram.c | struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err) |
sock | 189 | net/core/datagram.c | int datagram_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 381 | net/core/dev.c | ((struct sock *)ptype->data != skb->sk)) |
sock | 119 | net/core/sock.c | int sock_setsockopt(struct sock *sk, int level, int optname, |
sock | 217 | net/core/sock.c | int sock_getsockopt(struct sock *sk, int level, int optname, |
sock | 307 | net/core/sock.c | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 330 | net/core/sock.c | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 353 | net/core/sock.c | unsigned long sock_rspace(struct sock *sk) |
sock | 370 | net/core/sock.c | unsigned long sock_wspace(struct sock *sk) |
sock | 384 | net/core/sock.c | void sock_wfree(struct sock *sk, struct sk_buff *skb) |
sock | 405 | net/core/sock.c | void sock_rfree(struct sock *sk, struct sk_buff *skb) |
sock | 426 | net/core/sock.c | struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, unsigned long fallback, int noblock, int *errcode) |
sock | 524 | net/core/sock.c | void release_sock(struct sock *sk) |
sock | 109 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 137 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 184 | net/ipv4/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 186 | net/ipv4/af_inet.c | struct sock **skp, *tmp; |
sock | 245 | net/ipv4/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 247 | net/ipv4/af_inet.c | struct sock **p; |
sock | 282 | net/ipv4/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 430 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 432 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 434 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 459 | net/ipv4/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 462 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 475 | net/ipv4/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 478 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 491 | net/ipv4/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 511 | net/ipv4/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 513 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 543 | net/ipv4/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 549 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 558 | net/ipv4/af_inet.c | static void def_callback3(struct sock *sk) |
sock | 574 | net/ipv4/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 576 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 580 | net/ipv4/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 586 | net/ipv4/af_inet.c | switch(sock->type) |
sock | 647 | net/ipv4/af_inet.c | sk->socket = sock; |
sock | 653 | net/ipv4/af_inet.c | sk->type = sock->type; |
sock | 670 | net/ipv4/af_inet.c | sk->sleep = sock->wait; |
sock | 676 | net/ipv4/af_inet.c | sock->data =(void *) sk; |
sock | 726 | net/ipv4/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 733 | net/ipv4/af_inet.c | static inline int closing(struct sock * sk) |
sock | 751 | net/ipv4/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 753 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 806 | net/ipv4/af_inet.c | sock->data = NULL; |
sock | 819 | net/ipv4/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 823 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 840 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 881 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 910 | net/ipv4/af_inet.c | if(sock->type==SOCK_DGRAM) |
sock | 912 | net/ipv4/af_inet.c | if(sock->type==SOCK_STREAM) |
sock | 929 | net/ipv4/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 932 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 934 | net/ipv4/af_inet.c | sock->conn = NULL; |
sock | 936 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 938 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 943 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 949 | net/ipv4/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 959 | net/ipv4/af_inet.c | sock->state = SS_CONNECTING; |
sock | 962 | net/ipv4/af_inet.c | if (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING) |
sock | 964 | net/ipv4/af_inet.c | sock->state=SS_UNCONNECTED; |
sock | 984 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 990 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 994 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1011 | net/ipv4/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1013 | net/ipv4/af_inet.c | struct sock *sk1, *sk2; |
sock | 1016 | net/ipv4/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 1025 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 1088 | net/ipv4/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1092 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 1095 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1120 | net/ipv4/af_inet.c | static int inet_recvmsg(struct socket *sock, struct msghdr *ubuf, int size, int noblock, |
sock | 1123 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1136 | net/ipv4/af_inet.c | static int inet_sendmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, |
sock | 1139 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1157 | net/ipv4/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1159 | net/ipv4/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1170 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1171 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1181 | net/ipv4/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1183 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1201 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1203 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1300 | net/ipv4/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1304 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1305 | net/ipv4/af_inet.c | struct sock *result = NULL; |
sock | 1364 | net/ipv4/af_inet.c | struct sock *get_sock_raw(struct sock *sk, |
sock | 1369 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1393 | net/ipv4/af_inet.c | struct sock *get_sock_mcast(struct sock *sk, |
sock | 1398 | net/ipv4/af_inet.c | struct sock *s; |
sock | 233 | net/ipv4/icmp.c | struct sock *sk=icmp_socket.data; |
sock | 742 | net/ipv4/icmp.c | struct sock *sk; |
sock | 346 | net/ipv4/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
sock | 380 | net/ipv4/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
sock | 406 | net/ipv4/igmp.c | void ip_mc_drop_socket(struct sock *sk) |
sock | 618 | net/ipv4/ip_fragment.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 156 | net/ipv4/ip_input.c | extern void sort_send(struct sock *sk); |
sock | 176 | net/ipv4/ip_input.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 197 | net/ipv4/ip_input.c | struct sock *raw_sk=NULL; |
sock | 460 | net/ipv4/ip_input.c | struct sock *sknext=NULL; |
sock | 331 | net/ipv4/ip_output.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 558 | net/ipv4/ip_output.c | int ip_build_xmit(struct sock *sk, |
sock | 111 | net/ipv4/ip_sockglue.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 420 | net/ipv4/ip_sockglue.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 425 | net/ipv4/ipmr.c | int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) |
sock | 566 | net/ipv4/ipmr.c | int ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen) |
sock | 594 | net/ipv4/ipmr.c | int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 637 | net/ipv4/ipmr.c | void mroute_close(struct sock *sk) |
sock | 76 | net/ipv4/packet.c | struct sock *sk; |
sock | 83 | net/ipv4/packet.c | sk = (struct sock *) pt->data; |
sock | 123 | net/ipv4/packet.c | static int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len, |
sock | 208 | net/ipv4/packet.c | static void packet_close(struct sock *sk, int timeout) |
sock | 246 | net/ipv4/packet.c | int packet_attach(struct sock *sk) |
sock | 270 | net/ipv4/packet.c | static int packet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) |
sock | 351 | net/ipv4/packet.c | static int packet_init(struct sock *sk) |
sock | 379 | net/ipv4/packet.c | int packet_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
sock | 61 | net/ipv4/proc.c | struct sock **s_array; |
sock | 62 | net/ipv4/proc.c | struct sock *sp; |
sock | 63 | net/ipv4/raw.c | struct sock *mroute_socket=NULL; |
sock | 81 | net/ipv4/raw.c | struct sock *sk; |
sock | 85 | net/ipv4/raw.c | sk = (struct sock *) protocol->data; |
sock | 118 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
sock | 180 | net/ipv4/raw.c | static int raw_sendto(struct sock *sk, const unsigned char *from, |
sock | 243 | net/ipv4/raw.c | static int raw_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, |
sock | 274 | net/ipv4/raw.c | static void raw_close(struct sock *sk, int timeout) |
sock | 287 | net/ipv4/raw.c | static int raw_init(struct sock *sk) |
sock | 298 | net/ipv4/raw.c | int raw_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
sock | 455 | net/ipv4/tcp.c | volatile struct sock *th_cache_sk; |
sock | 470 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout); |
sock | 496 | net/ipv4/tcp.c | static __inline__ void tcp_set_state(struct sock *sk, int state) |
sock | 533 | net/ipv4/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 562 | net/ipv4/tcp.c | static struct sk_buff *tcp_find_established(struct sock *s) |
sock | 582 | net/ipv4/tcp.c | static struct sk_buff *tcp_dequeue_established(struct sock *s) |
sock | 601 | net/ipv4/tcp.c | static void tcp_close_pending (struct sock *sk) |
sock | 618 | net/ipv4/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 632 | net/ipv4/tcp.c | void tcp_do_retransmit(struct sock *sk, int all) |
sock | 796 | net/ipv4/tcp.c | static void reset_xmit_timer(struct sock *sk, int why, unsigned long when) |
sock | 817 | net/ipv4/tcp.c | void tcp_retransmit_time(struct sock *sk, int all) |
sock | 853 | net/ipv4/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 875 | net/ipv4/tcp.c | static int tcp_write_timeout(struct sock *sk) |
sock | 946 | net/ipv4/tcp.c | struct sock *sk = (struct sock*)data; |
sock | 1058 | net/ipv4/tcp.c | struct sock *sk; |
sock | 1136 | net/ipv4/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 1210 | net/ipv4/tcp.c | static int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1233 | net/ipv4/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1282 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1351 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 1364 | net/ipv4/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 1483 | net/ipv4/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 1503 | net/ipv4/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 1517 | net/ipv4/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 1547 | net/ipv4/tcp.c | struct sock *sk, |
sock | 1662 | net/ipv4/tcp.c | extern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 1686 | net/ipv4/tcp.c | static int tcp_sendmsg(struct sock *sk, struct msghdr *msg, |
sock | 2054 | net/ipv4/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 2136 | net/ipv4/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 2224 | net/ipv4/tcp.c | static int tcp_recv_urg(struct sock * sk, int nonblock, |
sock | 2287 | net/ipv4/tcp.c | static int tcp_recvmsg(struct sock *sk, struct msghdr *msg, |
sock | 2532 | net/ipv4/tcp.c | static int tcp_close_state(struct sock *sk, int dead) |
sock | 2586 | net/ipv4/tcp.c | static void tcp_send_fin(struct sock *sk) |
sock | 2687 | net/ipv4/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 2833 | net/ipv4/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 2918 | net/ipv4/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 2925 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 2968 | net/ipv4/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 2983 | net/ipv4/tcp.c | kfree_s(newsk, sizeof(struct sock)); |
sock | 2990 | net/ipv4/tcp.c | kfree_s(newsk, sizeof(struct sock)); |
sock | 3214 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 3287 | net/ipv4/tcp.c | static void tcp_write_xmit(struct sock *sk) |
sock | 3383 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 3986 | net/ipv4/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) |
sock | 4073 | net/ipv4/tcp.c | extern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 4400 | net/ipv4/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 4432 | net/ipv4/tcp.c | extern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 4473 | net/ipv4/tcp.c | static struct sock *tcp_accept(struct sock *sk, int flags) |
sock | 4475 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 4532 | net/ipv4/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 4704 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 4760 | net/ipv4/tcp.c | static int tcp_std_reset(struct sock *sk, struct sk_buff *skb) |
sock | 4798 | net/ipv4/tcp.c | struct sock *sk; |
sock | 4816 | net/ipv4/tcp.c | sk=(struct sock *)th_cache_sk; |
sock | 5208 | net/ipv4/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 5433 | net/ipv4/tcp.c | void tcp_send_probe0(struct sock *sk) |
sock | 5451 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 5487 | net/ipv4/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 53 | net/ipv4/timer.c | void delete_timer (struct sock *t) |
sock | 66 | net/ipv4/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
sock | 88 | net/ipv4/timer.c | struct sock *sk = (struct sock*)data; |
sock | 123 | net/ipv4/udp.c | volatile struct sock *uh_cache_sk; |
sock | 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); |
sock | 158 | net/ipv4/udp.c | struct sock *sk; |
sock | 294 | net/ipv4/udp.c | static int udp_send(struct sock *sk, struct sockaddr_in *sin, |
sock | 332 | net/ipv4/udp.c | static int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock, |
sock | 403 | net/ipv4/udp.c | static int udp_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, |
sock | 438 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 493 | net/ipv4/udp.c | int udp_recvmsg(struct sock *sk, struct msghdr *msg, int len, |
sock | 541 | net/ipv4/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 571 | net/ipv4/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 592 | net/ipv4/udp.c | struct sock *sk; |
sock | 659 | net/ipv4/udp.c | struct sock *sknext=NULL; |
sock | 685 | net/ipv4/udp.c | sk=(struct sock *)uh_cache_sk; |
sock | 714 | 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) |
sock | 328 | net/ipx/af_ipx.c | ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb) |
sock | 332 | net/ipx/af_ipx.c | if((retval = sock_queue_rcv_skb(sock, skb))<0) { |
sock | 353 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
sock | 363 | net/ipx/af_ipx.c | switch (ntohs(ipx->ipx_dest.sock)) { |
sock | 374 | net/ipx/af_ipx.c | ipx->ipx_dest.sock); |
sock | 1071 | net/ipx/af_ipx.c | ipx->ipx_source.sock = sk->ipx_port; |
sock | 1074 | net/ipx/af_ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1243 | net/ipx/af_ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 1317 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1326 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 1331 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1362 | net/ipx/af_ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 1369 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1400 | net/ipx/af_ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 1405 | net/ipx/af_ipx.c | static void def_callback1(struct sock *sk) |
sock | 1411 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 1421 | net/ipx/af_ipx.c | ipx_create(struct socket *sock, int protocol) |
sock | 1427 | net/ipx/af_ipx.c | switch(sock->type) |
sock | 1451 | net/ipx/af_ipx.c | sk->socket=sock; |
sock | 1452 | net/ipx/af_ipx.c | sk->type=sock->type; |
sock | 1460 | net/ipx/af_ipx.c | if(sock!=NULL) |
sock | 1462 | net/ipx/af_ipx.c | sock->data=(void *)sk; |
sock | 1463 | net/ipx/af_ipx.c | sk->sleep=sock->wait; |
sock | 1475 | net/ipx/af_ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 1477 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1483 | net/ipx/af_ipx.c | sock->data=NULL; |
sock | 1511 | net/ipx/af_ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1517 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1556 | net/ipx/af_ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1559 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1563 | net/ipx/af_ipx.c | sock->state = SS_UNCONNECTED; |
sock | 1577 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1584 | net/ipx/af_ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 1587 | net/ipx/af_ipx.c | sock->state = SS_CONNECTED; |
sock | 1597 | net/ipx/af_ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1604 | net/ipx/af_ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1611 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1621 | net/ipx/af_ipx.c | sipx.sipx_port = addr->sock; |
sock | 1678 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
sock | 1737 | net/ipx/af_ipx.c | static int ipx_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, |
sock | 1740 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1755 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1769 | net/ipx/af_ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1781 | net/ipx/af_ipx.c | static int ipx_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, |
sock | 1784 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1814 | net/ipx/af_ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1828 | net/ipx/af_ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1830 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1835 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1839 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 73 | net/netrom/af_netrom.c | static struct sock *volatile nr_list = NULL; |
sock | 78 | net/netrom/af_netrom.c | static void nr_remove_socket(struct sock *sk) |
sock | 80 | net/netrom/af_netrom.c | struct sock *s; |
sock | 110 | net/netrom/af_netrom.c | struct sock *s; |
sock | 143 | net/netrom/af_netrom.c | static void nr_insert_socket(struct sock *sk) |
sock | 160 | net/netrom/af_netrom.c | static struct sock *nr_find_listener(ax25_address *addr, int type) |
sock | 163 | net/netrom/af_netrom.c | struct sock *s; |
sock | 182 | net/netrom/af_netrom.c | static struct sock *nr_find_socket(unsigned char index, unsigned char id, int type) |
sock | 184 | net/netrom/af_netrom.c | struct sock *s; |
sock | 205 | net/netrom/af_netrom.c | static struct sock *nr_find_peer(unsigned char index, unsigned char id, int type) |
sock | 207 | net/netrom/af_netrom.c | struct sock *s; |
sock | 228 | net/netrom/af_netrom.c | void nr_destory_socket(struct sock *); |
sock | 235 | net/netrom/af_netrom.c | nr_destroy_socket((struct sock *)data); |
sock | 244 | net/netrom/af_netrom.c | void nr_destroy_socket(struct sock *sk) /* Not static as its used by the timer */ |
sock | 287 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 296 | net/netrom/af_netrom.c | static int nr_setsockopt(struct socket *sock, int level, int optname, |
sock | 299 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 302 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 346 | net/netrom/af_netrom.c | static int nr_getsockopt(struct socket *sock, int level, int optname, |
sock | 349 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 353 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 395 | net/netrom/af_netrom.c | static int nr_listen(struct socket *sock, int backlog) |
sock | 397 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 409 | net/netrom/af_netrom.c | static void def_callback1(struct sock *sk) |
sock | 415 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
sock | 421 | net/netrom/af_netrom.c | static int nr_create(struct socket *sock, int protocol) |
sock | 423 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 426 | net/netrom/af_netrom.c | if (sock->type != SOCK_SEQPACKET || protocol != 0) |
sock | 429 | net/netrom/af_netrom.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 443 | net/netrom/af_netrom.c | sk->socket = sock; |
sock | 444 | net/netrom/af_netrom.c | sk->type = sock->type; |
sock | 474 | net/netrom/af_netrom.c | if (sock != NULL) { |
sock | 475 | net/netrom/af_netrom.c | sock->data = (void *)sk; |
sock | 476 | net/netrom/af_netrom.c | sk->sleep = sock->wait; |
sock | 522 | net/netrom/af_netrom.c | static struct sock *nr_make_new(struct sock *osk) |
sock | 524 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 530 | net/netrom/af_netrom.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 607 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 612 | net/netrom/af_netrom.c | static int nr_release(struct socket *sock, struct socket *peer) |
sock | 614 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 668 | net/netrom/af_netrom.c | sock->data = NULL; |
sock | 674 | net/netrom/af_netrom.c | static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 676 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 681 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 735 | net/netrom/af_netrom.c | static int nr_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 738 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 743 | net/netrom/af_netrom.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 744 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 748 | net/netrom/af_netrom.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 749 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 757 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 795 | net/netrom/af_netrom.c | sock->state = SS_CONNECTING; |
sock | 820 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 824 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 836 | net/netrom/af_netrom.c | static int nr_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 838 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 839 | net/netrom/af_netrom.c | struct sock *newsk; |
sock | 843 | net/netrom/af_netrom.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 847 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 885 | net/netrom/af_netrom.c | static int nr_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 889 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 891 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 913 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 914 | net/netrom/af_netrom.c | struct sock *make; |
sock | 1028 | net/netrom/af_netrom.c | static int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
sock | 1030 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1131 | net/netrom/af_netrom.c | static int nr_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, |
sock | 1134 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1186 | net/netrom/af_netrom.c | static int nr_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1188 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1193 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1195 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1283 | net/netrom/af_netrom.c | struct sock *s; |
sock | 53 | net/netrom/nr_in.c | static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) |
sock | 97 | net/netrom/nr_in.c | static int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 143 | net/netrom/nr_in.c | static int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 171 | net/netrom/nr_in.c | static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 310 | net/netrom/nr_in.c | int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) |
sock | 49 | net/netrom/nr_out.c | void nr_output(struct sock *sk, struct sk_buff *skb) |
sock | 104 | net/netrom/nr_out.c | static void nr_send_iframe(struct sock *sk, struct sk_buff *skb) |
sock | 118 | net/netrom/nr_out.c | void nr_send_nak_frame(struct sock *sk) |
sock | 141 | net/netrom/nr_out.c | void nr_kick(struct sock *sk) |
sock | 202 | net/netrom/nr_out.c | void nr_transmit_buffer(struct sock *sk, struct sk_buff *skb) |
sock | 243 | net/netrom/nr_out.c | void nr_establish_data_link(struct sock *sk) |
sock | 257 | net/netrom/nr_out.c | void nr_enquiry_response(struct sock *sk) |
sock | 275 | net/netrom/nr_out.c | void nr_check_iframes_acked(struct sock *sk, unsigned short nr) |
sock | 47 | net/netrom/nr_subr.c | void nr_clear_queues(struct sock *sk) |
sock | 77 | net/netrom/nr_subr.c | void nr_frames_acked(struct sock *sk, unsigned short nr) |
sock | 100 | net/netrom/nr_subr.c | void nr_requeue_frames(struct sock *sk) |
sock | 117 | net/netrom/nr_subr.c | int nr_validate_nr(struct sock *sk, unsigned short nr) |
sock | 134 | net/netrom/nr_subr.c | int nr_in_rx_window(struct sock *sk, unsigned short ns) |
sock | 151 | net/netrom/nr_subr.c | void nr_write_internal(struct sock *sk, int frametype) |
sock | 292 | net/netrom/nr_subr.c | unsigned short nr_calculate_t1(struct sock *sk) |
sock | 307 | net/netrom/nr_subr.c | void nr_calculate_rtt(struct sock *sk) |
sock | 48 | net/netrom/nr_timer.c | void nr_set_timer(struct sock *sk) |
sock | 65 | net/netrom/nr_timer.c | static void nr_reset_timer(struct sock *sk) |
sock | 88 | net/netrom/nr_timer.c | struct sock *sk = (struct sock *)param; |
sock | 239 | net/socket.c | struct socket * sock; |
sock | 250 | net/socket.c | sock = &inode->u.socket_i; |
sock | 251 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 252 | net/socket.c | sock->flags = 0; |
sock | 253 | net/socket.c | sock->ops = NULL; |
sock | 254 | net/socket.c | sock->data = NULL; |
sock | 255 | net/socket.c | sock->conn = NULL; |
sock | 256 | net/socket.c | sock->iconn = NULL; |
sock | 257 | net/socket.c | sock->next = NULL; |
sock | 258 | net/socket.c | sock->wait = &inode->i_wait; |
sock | 259 | net/socket.c | sock->inode = inode; /* "backlink": we could use pointer arithmetic instead */ |
sock | 260 | net/socket.c | sock->fasync_list = NULL; |
sock | 262 | net/socket.c | return sock; |
sock | 276 | net/socket.c | void sock_release(struct socket *sock) |
sock | 281 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 282 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 288 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 299 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 300 | net/socket.c | if (sock->ops) |
sock | 301 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 305 | net/socket.c | iput(SOCK_INODE(sock)); |
sock | 324 | net/socket.c | struct socket *sock; |
sock | 329 | net/socket.c | sock = socki_lookup(inode); |
sock | 330 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 346 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), 0,&msg.msg_namelen)); |
sock | 356 | net/socket.c | struct socket *sock; |
sock | 361 | net/socket.c | sock = socki_lookup(inode); |
sock | 363 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 381 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK),0)); |
sock | 392 | net/socket.c | struct socket *sock; |
sock | 393 | net/socket.c | sock = socki_lookup(inode); |
sock | 394 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 400 | net/socket.c | struct socket *sock; |
sock | 402 | net/socket.c | sock = socki_lookup(inode); |
sock | 408 | net/socket.c | if (sock->ops->select) |
sock | 409 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 433 | net/socket.c | struct socket *sock; |
sock | 443 | net/socket.c | sock = socki_lookup(inode); |
sock | 445 | net/socket.c | prev=&(sock->fasync_list); |
sock | 464 | net/socket.c | fna->fa_next=sock->fasync_list; |
sock | 465 | net/socket.c | sock->fasync_list=fna; |
sock | 479 | net/socket.c | int sock_wake_async(struct socket *sock, int how) |
sock | 481 | net/socket.c | if (!sock || !sock->fasync_list) |
sock | 486 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 489 | net/socket.c | if (!(sock->flags & SO_WAITDATA)) |
sock | 490 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 493 | net/socket.c | if (sock->flags & SO_NOSPACE) |
sock | 495 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 496 | net/socket.c | sock->flags &= ~SO_NOSPACE; |
sock | 512 | net/socket.c | struct socket *sock; |
sock | 547 | net/socket.c | if (!(sock = sock_alloc())) |
sock | 554 | net/socket.c | sock->type = type; |
sock | 555 | net/socket.c | sock->ops = ops; |
sock | 556 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 558 | net/socket.c | sock_release(sock); |
sock | 562 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 564 | net/socket.c | sock_release(sock); |
sock | 642 | net/socket.c | struct socket *sock; |
sock | 650 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 656 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 672 | net/socket.c | struct socket *sock; |
sock | 676 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 679 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 684 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 685 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 686 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 702 | net/socket.c | struct socket *sock, *newsock; |
sock | 709 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 711 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 715 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 726 | net/socket.c | newsock->type = sock->type; |
sock | 727 | net/socket.c | newsock->ops = sock->ops; |
sock | 728 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 734 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 763 | net/socket.c | struct socket *sock; |
sock | 771 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 777 | net/socket.c | switch(sock->state) |
sock | 784 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 799 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 814 | net/socket.c | struct socket *sock; |
sock | 821 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 824 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 839 | net/socket.c | struct socket *sock; |
sock | 846 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 849 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 864 | net/socket.c | struct socket *sock; |
sock | 872 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 887 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 899 | net/socket.c | struct socket *sock; |
sock | 908 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 927 | net/socket.c | return(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), |
sock | 940 | net/socket.c | struct socket *sock; |
sock | 947 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 965 | net/socket.c | return(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), flags,&msg.msg_namelen)); |
sock | 977 | net/socket.c | struct socket *sock; |
sock | 986 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1004 | net/socket.c | size=sock->ops->recvmsg(sock, &msg, size, (file->f_flags & O_NONBLOCK), |
sock | 1022 | net/socket.c | struct socket *sock; |
sock | 1027 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1030 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 1040 | net/socket.c | struct socket *sock; |
sock | 1045 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1048 | net/socket.c | if (!sock->ops->getsockopt) |
sock | 1050 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1060 | net/socket.c | struct socket *sock; |
sock | 1065 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1068 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1077 | net/socket.c | struct socket *sock; |
sock | 1087 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1101 | net/socket.c | if(sock->ops->sendmsg==NULL) |
sock | 1103 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
sock | 1112 | net/socket.c | struct socket *sock; |
sock | 1124 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1138 | net/socket.c | if(sock->ops->recvmsg==NULL) |
sock | 1140 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
sock | 1158 | net/socket.c | struct socket *sock; |
sock | 1160 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1161 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1162 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 209 | net/unix/af_unix.c | static int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 218 | net/unix/af_unix.c | static int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 220 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 226 | net/unix/af_unix.c | static int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) |
sock | 228 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 234 | net/unix/af_unix.c | static int unix_listen(struct socket *sock, int backlog) |
sock | 236 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 246 | net/unix/af_unix.c | static void def_callback1(struct sock *sk) |
sock | 252 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
sock | 261 | net/unix/af_unix.c | static void def_callback3(struct sock *sk) |
sock | 270 | net/unix/af_unix.c | static int unix_create(struct socket *sock, int protocol) |
sock | 279 | net/unix/af_unix.c | switch(sock->type) |
sock | 288 | net/unix/af_unix.c | sock->type=SOCK_DGRAM; |
sock | 295 | net/unix/af_unix.c | sk->type=sock->type; |
sock | 330 | net/unix/af_unix.c | sk->socket=sock; |
sock | 331 | net/unix/af_unix.c | sock->data=(void *)sk; |
sock | 332 | net/unix/af_unix.c | sk->sleep=sock->wait; |
sock | 343 | net/unix/af_unix.c | static int unix_release(struct socket *sock, struct socket *peer) |
sock | 345 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 402 | net/unix/af_unix.c | static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 405 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 449 | net/unix/af_unix.c | static int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) |
sock | 451 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 459 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED) |
sock | 461 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 464 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE) |
sock | 466 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 469 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING) |
sock | 483 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 486 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 495 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 501 | net/unix/af_unix.c | if(sock->state==SS_UNCONNECTED) |
sock | 530 | net/unix/af_unix.c | sock->state=SS_CONNECTING; |
sock | 562 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 571 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 594 | net/unix/af_unix.c | static int unix_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 596 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 655 | net/unix/af_unix.c | static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer) |
sock | 657 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 678 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
sock | 680 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 699 | net/unix/af_unix.c | if(sock->type==SOCK_STREAM) |
sock | 725 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 735 | net/unix/af_unix.c | if(size > 4000 && sock->type!=SOCK_DGRAM) |
sock | 766 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM && other->dead) |
sock | 770 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 814 | net/unix/af_unix.c | static int unix_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len) |
sock | 816 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 891 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 900 | net/unix/af_unix.c | static int unix_shutdown(struct socket *sock, int mode) |
sock | 902 | net/unix/af_unix.c | unix_socket *sk=(unix_socket *)sock->data; |
sock | 929 | net/unix/af_unix.c | static int unix_select(struct socket *sock, int sel_type, select_table *wait) |
sock | 931 | net/unix/af_unix.c | return datagram_select(sock->data,sel_type,wait); |
sock | 934 | net/unix/af_unix.c | static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 936 | net/unix/af_unix.c | unix_socket *sk=sock->data; |