tag | line | file | source code |
sock | 117 | drivers/net/de600.c | static unsigned long de600_rspace(struct sock *sk); |
sock | 811 | drivers/net/de600.c | de600_rspace(struct sock *sk) |
sock | 149 | fs/nfs/inode.c | struct socket *sock; |
sock | 154 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
sock | 157 | fs/nfs/inode.c | sock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ; |
sock | 56 | fs/nfs/sock.c | struct socket *sock; |
sock | 81 | fs/nfs/sock.c | sock = &inode->u.socket_i; |
sock | 82 | fs/nfs/sock.c | if (!sock) { |
sock | 107 | fs/nfs/sock.c | result = sock->ops->sendto(sock, (void *) start, len, 0, 0, |
sock | 166 | fs/nfs/sock.c | result = sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 197 | fs/nfs/sock.c | (void)sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 211 | fs/nfs/sock.c | result=sock->ops->recvfrom(sock, (void *)start, |
sock | 34 | fs/smbfs/sock.c | smb_data_callback(struct sock *sk,int len) |
sock | 36 | fs/smbfs/sock.c | struct socket *sock = sk->socket; |
sock | 47 | fs/smbfs/sock.c | result = sock->ops->recvfrom(sock, (void *)peek_buf, 1, 1, |
sock | 53 | fs/smbfs/sock.c | result = sock->ops->recvfrom(sock, (void *)peek_buf, |
sock | 62 | fs/smbfs/sock.c | result = sock->ops->recvfrom(sock, (void *)peek_buf, |
sock | 81 | fs/smbfs/sock.c | struct socket *sock; |
sock | 82 | fs/smbfs/sock.c | struct sock *sk; |
sock | 94 | fs/smbfs/sock.c | sock = &(inode->u.socket_i); |
sock | 96 | fs/smbfs/sock.c | if (sock->type != SOCK_STREAM) { |
sock | 102 | fs/smbfs/sock.c | sk = (struct sock *)(sock->data); |
sock | 129 | fs/smbfs/sock.c | struct socket *sock; |
sock | 130 | fs/smbfs/sock.c | struct sock *sk; |
sock | 142 | fs/smbfs/sock.c | sock = &(inode->u.socket_i); |
sock | 144 | fs/smbfs/sock.c | if (sock->type != SOCK_STREAM) { |
sock | 149 | fs/smbfs/sock.c | sk = (struct sock *)(sock->data); |
sock | 182 | fs/smbfs/sock.c | smb_receive(struct smb_server *server, struct socket *sock) |
sock | 189 | fs/smbfs/sock.c | result = sock->ops->recvfrom(sock, (void *)peek_buf, 4, 0, |
sock | 210 | fs/smbfs/sock.c | sock->ops->recvfrom(sock, (void *)peek_buf, 4, 1, |
sock | 232 | fs/smbfs/sock.c | result = sock->ops-> |
sock | 233 | fs/smbfs/sock.c | recvfrom(sock, |
sock | 265 | fs/smbfs/sock.c | smb_receive_trans2(struct smb_server *server, struct socket *sock, |
sock | 278 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 353 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 392 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 395 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 398 | fs/smbfs/sock.c | result = sock->ops->release(sock, NULL); |
sock | 404 | fs/smbfs/sock.c | sock->state = SS_UNCONNECTED; |
sock | 406 | fs/smbfs/sock.c | result = sock->ops->create(sock, 0); |
sock | 414 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 415 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 417 | fs/smbfs/sock.c | if (sock->state != SS_UNCONNECTED) { |
sock | 419 | fs/smbfs/sock.c | sock->state); |
sock | 421 | fs/smbfs/sock.c | return sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr), |
sock | 439 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 442 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 471 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
sock | 476 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
sock | 518 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 521 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 550 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
sock | 555 | fs/smbfs/sock.c | result = smb_receive_trans2(server, sock, |
sock | 128 | include/linux/atalk.h | typedef struct sock atalk_socket; |
sock | 37 | include/linux/etherdevice.h | extern void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
sock | 80 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
sock | 81 | include/linux/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
sock | 82 | include/linux/igmp.h | extern void ip_mc_drop_socket(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 (*read) (struct socket *sock, char *ubuf, int size, |
sock | 107 | include/linux/net.h | int (*write) (struct socket *sock, const char *ubuf, int size, |
sock | 109 | include/linux/net.h | int (*select) (struct socket *sock, int sel_type, |
sock | 111 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
sock | 113 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
sock | 114 | include/linux/net.h | int (*send) (struct socket *sock, const void *buff, int len, int nonblock, |
sock | 116 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 118 | include/linux/net.h | int (*sendto) (struct socket *sock, const void *buff, int len, int nonblock, |
sock | 120 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 122 | include/linux/net.h | int (*shutdown) (struct socket *sock, int flags); |
sock | 123 | include/linux/net.h | int (*setsockopt) (struct socket *sock, int level, int optname, |
sock | 125 | include/linux/net.h | int (*getsockopt) (struct socket *sock, int level, int optname, |
sock | 127 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
sock | 129 | include/linux/net.h | int (*sendmsg) (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags); |
sock | 130 | include/linux/net.h | int (*recvmsg) (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len); |
sock | 139 | include/linux/net.h | extern int sock_wake_async(struct socket *sock, int how); |
sock | 143 | include/linux/net.h | extern void sock_release(struct socket *sock); |
sock | 163 | include/linux/netdevice.h | void (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr); |
sock | 47 | include/linux/skbuff.h | struct sock *sk; /* Socket we are owned by */ |
sock | 363 | include/linux/skbuff.h | extern struct sk_buff * skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err); |
sock | 364 | 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 | 143 | include/net/ax25.h | struct sock *sk; /* Backlink to socket */ |
sock | 35 | include/net/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
sock | 44 | include/net/ip.h | extern void ip_mc_dropsocket(struct sock *); |
sock | 79 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
sock | 94 | include/net/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 97 | include/net/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 98 | include/net/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 100 | include/net/ip.h | extern int ip_build_xmit(struct sock *sk, |
sock | 22 | include/net/ipx.h | unsigned short sock; |
sock | 45 | include/net/ipx.h | typedef struct sock ipx_socket; |
sock | 61 | include/net/netrom.h | struct sock *sk; /* Backlink to socket */ |
sock | 93 | include/net/netrom.h | extern void nr_destroy_socket(struct sock *); |
sock | 103 | include/net/netrom.h | extern int nr_process_rx_frame(struct sock *, struct sk_buff *); |
sock | 106 | include/net/netrom.h | extern void nr_output(struct sock *, struct sk_buff *); |
sock | 107 | include/net/netrom.h | extern void nr_send_nak_frame(struct sock *); |
sock | 108 | include/net/netrom.h | extern void nr_kick(struct sock *); |
sock | 109 | include/net/netrom.h | extern void nr_transmit_buffer(struct sock *, struct sk_buff *); |
sock | 110 | include/net/netrom.h | extern void nr_nr_error_recovery(struct sock *); |
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 | 71 | include/net/sock.h | struct sock * other; |
sock | 116 | include/net/sock.h | struct sock *next; |
sock | 117 | include/net/sock.h | struct sock *prev; /* Doubly linked chain.. */ |
sock | 118 | include/net/sock.h | struct sock *pair; |
sock | 230 | include/net/sock.h | void (*state_change)(struct sock *sk); |
sock | 231 | include/net/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 232 | include/net/sock.h | void (*write_space)(struct sock *sk); |
sock | 233 | include/net/sock.h | void (*error_report)(struct sock *sk); |
sock | 238 | include/net/sock.h | struct sk_buff * (*wmalloc)(struct sock *sk, |
sock | 241 | include/net/sock.h | struct sk_buff * (*rmalloc)(struct sock *sk, |
sock | 244 | include/net/sock.h | void (*wfree)(struct sock *sk, struct sk_buff *skb); |
sock | 245 | include/net/sock.h | void (*rfree)(struct sock *sk, struct sk_buff *skb); |
sock | 246 | include/net/sock.h | unsigned long (*rspace)(struct sock *sk); |
sock | 247 | include/net/sock.h | unsigned long (*wspace)(struct sock *sk); |
sock | 248 | include/net/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 249 | include/net/sock.h | int (*read)(struct sock *sk, unsigned char *to, |
sock | 251 | include/net/sock.h | int (*write)(struct sock *sk, const unsigned char *to, |
sock | 253 | include/net/sock.h | int (*sendto)(struct sock *sk, |
sock | 257 | include/net/sock.h | int (*recvfrom)(struct sock *sk, |
sock | 267 | include/net/sock.h | int (*connect)(struct sock *sk, |
sock | 269 | include/net/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 270 | include/net/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 273 | include/net/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 274 | include/net/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 275 | include/net/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 280 | include/net/sock.h | int (*select)(struct sock *sk, int which, |
sock | 282 | include/net/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 284 | include/net/sock.h | int (*init)(struct sock *sk); |
sock | 285 | include/net/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 286 | include/net/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 288 | include/net/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 295 | include/net/sock.h | struct sock * sock_array[SOCK_ARRAY_SIZE]; |
sock | 318 | include/net/sock.h | extern void destroy_sock(struct sock *sk); |
sock | 321 | include/net/sock.h | extern void put_sock(unsigned short, struct sock *); |
sock | 322 | include/net/sock.h | extern void release_sock(struct sock *sk); |
sock | 323 | include/net/sock.h | extern struct sock *get_sock(struct proto *, unsigned short, |
sock | 326 | include/net/sock.h | extern struct sock *get_sock_mcast(struct sock *, unsigned short, |
sock | 329 | include/net/sock.h | extern struct sock *get_sock_raw(struct sock *, unsigned short, |
sock | 332 | include/net/sock.h | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
sock | 335 | include/net/sock.h | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
sock | 338 | include/net/sock.h | extern void sock_wfree(struct sock *sk, |
sock | 340 | include/net/sock.h | extern void sock_rfree(struct sock *sk, |
sock | 342 | include/net/sock.h | extern unsigned long sock_rspace(struct sock *sk); |
sock | 343 | include/net/sock.h | extern unsigned long sock_wspace(struct sock *sk); |
sock | 345 | include/net/sock.h | extern int sock_setsockopt(struct sock *sk, int level, |
sock | 349 | include/net/sock.h | extern int sock_getsockopt(struct sock *sk, int level, |
sock | 352 | include/net/sock.h | extern struct sk_buff *sock_alloc_send_skb(struct sock *skb, |
sock | 366 | include/net/sock.h | extern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
sock | 383 | include/net/sock.h | extern struct sock *timer_base; |
sock | 385 | include/net/sock.h | extern void delete_timer (struct sock *); |
sock | 386 | 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 | unsigned long 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 | 927 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 942 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 947 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 980 | net/appletalk/ddp.c | static int atalk_getsockopt(struct socket *sock, int level, int optname, |
sock | 987 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1019 | net/appletalk/ddp.c | static int atalk_listen(struct socket *sock, int backlog) |
sock | 1028 | net/appletalk/ddp.c | static void def_callback1(struct sock *sk) |
sock | 1034 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
sock | 1048 | net/appletalk/ddp.c | static int atalk_create(struct socket *sock, int protocol) |
sock | 1054 | net/appletalk/ddp.c | switch(sock->type) |
sock | 1087 | net/appletalk/ddp.c | sk->socket=sock; |
sock | 1088 | net/appletalk/ddp.c | sk->type=sock->type; |
sock | 1101 | net/appletalk/ddp.c | if(sock!=NULL) |
sock | 1103 | net/appletalk/ddp.c | sock->data=(void *)sk; |
sock | 1104 | net/appletalk/ddp.c | sk->sleep=sock->wait; |
sock | 1129 | net/appletalk/ddp.c | static int atalk_release(struct socket *sock, struct socket *peer) |
sock | 1131 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1137 | net/appletalk/ddp.c | sock->data=NULL; |
sock | 1179 | net/appletalk/ddp.c | static int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1184 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1234 | net/appletalk/ddp.c | static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1237 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1241 | net/appletalk/ddp.c | sock->state = SS_UNCONNECTED; |
sock | 1265 | net/appletalk/ddp.c | sock->state = SS_CONNECTED; |
sock | 1283 | net/appletalk/ddp.c | static int atalk_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1295 | net/appletalk/ddp.c | static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1301 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1337 | net/appletalk/ddp.c | atalk_socket *sock; |
sock | 1443 | net/appletalk/ddp.c | sock=atalk_search_socket( &tosat, atif ); |
sock | 1445 | net/appletalk/ddp.c | if(sock==NULL) /* But not one of our sockets */ |
sock | 1456 | net/appletalk/ddp.c | skb->sk = sock; |
sock | 1458 | net/appletalk/ddp.c | if(sock_queue_rcv_skb(sock,skb)<0) |
sock | 1466 | net/appletalk/ddp.c | static int atalk_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
sock | 1469 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1643 | net/appletalk/ddp.c | static int atalk_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1645 | net/appletalk/ddp.c | return atalk_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1648 | net/appletalk/ddp.c | static int atalk_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1651 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1699 | net/appletalk/ddp.c | static int atalk_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1701 | net/appletalk/ddp.c | return atalk_send(sock,ubuf,size,noblock,0); |
sock | 1705 | net/appletalk/ddp.c | static int atalk_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1708 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1711 | net/appletalk/ddp.c | return atalk_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1714 | net/appletalk/ddp.c | static int atalk_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1716 | net/appletalk/ddp.c | return atalk_recv(sock,ubuf,size,noblock,0); |
sock | 1725 | net/appletalk/ddp.c | static int atalk_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1727 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1736 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1740 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 253 | net/ax25/af_ax25.c | static struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type) |
sock | 278 | net/ax25/af_ax25.c | static struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type) |
sock | 327 | net/ax25/af_ax25.c | static struct sock *ax25_addr_match(ax25_address *addr) |
sock | 347 | net/ax25/af_ax25.c | static void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto) |
sock | 637 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 646 | net/ax25/af_ax25.c | static int ax25_setsockopt(struct socket *sock, int level, int optname, |
sock | 649 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 652 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 717 | net/ax25/af_ax25.c | static int ax25_getsockopt(struct socket *sock, int level, int optname, |
sock | 720 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 724 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 778 | net/ax25/af_ax25.c | static int ax25_listen(struct socket *sock, int backlog) |
sock | 780 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 791 | net/ax25/af_ax25.c | static void def_callback1(struct sock *sk) |
sock | 797 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
sock | 803 | net/ax25/af_ax25.c | static int ax25_create(struct socket *sock, int protocol) |
sock | 805 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 808 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 816 | net/ax25/af_ax25.c | sk->type = sock->type; |
sock | 818 | net/ax25/af_ax25.c | switch (sock->type) { |
sock | 836 | net/ax25/af_ax25.c | sk->socket = sock; |
sock | 863 | net/ax25/af_ax25.c | if (sock != NULL) { |
sock | 864 | net/ax25/af_ax25.c | sock->data = (void *)sk; |
sock | 865 | net/ax25/af_ax25.c | sk->sleep = sock->wait; |
sock | 874 | net/ax25/af_ax25.c | static struct sock *ax25_make_new(struct sock *osk, struct device *dev) |
sock | 876 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 879 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 963 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 968 | net/ax25/af_ax25.c | static int ax25_release(struct socket *sock, struct socket *peer) |
sock | 970 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1019 | net/ax25/af_ax25.c | sock->data = NULL; |
sock | 1030 | net/ax25/af_ax25.c | static int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1032 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1037 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1087 | net/ax25/af_ax25.c | static int ax25_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1090 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1094 | net/ax25/af_ax25.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 1095 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1099 | net/ax25/af_ax25.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 1100 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1108 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1158 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1164 | net/ax25/af_ax25.c | sock->state = SS_CONNECTING; |
sock | 1187 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1191 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1203 | net/ax25/af_ax25.c | static int ax25_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1205 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1206 | net/ax25/af_ax25.c | struct sock *newsk; |
sock | 1210 | net/ax25/af_ax25.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 1214 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1252 | net/ax25/af_ax25.c | static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1257 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1260 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1289 | net/ax25/af_ax25.c | struct sock *make; |
sock | 1290 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1295 | net/ax25/af_ax25.c | struct sock *raw; |
sock | 1570 | net/ax25/af_ax25.c | static int ax25_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
sock | 1573 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1720 | net/ax25/af_ax25.c | static int ax25_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1722 | net/ax25/af_ax25.c | return ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0); |
sock | 1725 | net/ax25/af_ax25.c | static int ax25_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1727 | net/ax25/af_ax25.c | return ax25_send(sock, ubuf, size, noblock, 0); |
sock | 1730 | net/ax25/af_ax25.c | static int ax25_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1733 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1791 | net/ax25/af_ax25.c | static int ax25_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1794 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1799 | net/ax25/af_ax25.c | return ax25_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL); |
sock | 1802 | net/ax25/af_ax25.c | static int ax25_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1804 | net/ax25/af_ax25.c | return ax25_recv(sock, ubuf, size, noblock, 0); |
sock | 1813 | net/ax25/af_ax25.c | static int ax25_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1815 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1820 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1822 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 54 | net/core/datagram.c | struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err) |
sock | 177 | net/core/datagram.c | int datagram_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 380 | net/core/dev.c | ((struct sock *)ptype->data != skb->sk)) |
sock | 117 | net/core/sock.c | int sock_setsockopt(struct sock *sk, int level, int optname, |
sock | 215 | net/core/sock.c | int sock_getsockopt(struct sock *sk, int level, int optname, |
sock | 305 | net/core/sock.c | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 328 | net/core/sock.c | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 351 | net/core/sock.c | unsigned long sock_rspace(struct sock *sk) |
sock | 368 | net/core/sock.c | unsigned long sock_wspace(struct sock *sk) |
sock | 382 | net/core/sock.c | void sock_wfree(struct sock *sk, struct sk_buff *skb) |
sock | 403 | net/core/sock.c | void sock_rfree(struct sock *sk, struct sk_buff *skb) |
sock | 424 | net/core/sock.c | struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) |
sock | 495 | net/core/sock.c | void release_sock(struct sock *sk) |
sock | 217 | net/ethernet/eth.c | void eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr) |
sock | 106 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 134 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 178 | net/ipv4/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 180 | net/ipv4/af_inet.c | struct sock *sk1; |
sock | 181 | net/ipv4/af_inet.c | struct sock *sk2; |
sock | 247 | net/ipv4/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 249 | net/ipv4/af_inet.c | struct sock *sk2; |
sock | 292 | net/ipv4/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 410 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 412 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 414 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 439 | net/ipv4/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 442 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 455 | net/ipv4/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 458 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 471 | net/ipv4/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 491 | net/ipv4/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 493 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 523 | net/ipv4/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 529 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 538 | net/ipv4/af_inet.c | static void def_callback3(struct sock *sk) |
sock | 554 | net/ipv4/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 556 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 560 | net/ipv4/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 566 | net/ipv4/af_inet.c | switch(sock->type) |
sock | 627 | net/ipv4/af_inet.c | sk->socket = sock; |
sock | 633 | net/ipv4/af_inet.c | sk->type = sock->type; |
sock | 720 | net/ipv4/af_inet.c | sk->sleep = sock->wait; |
sock | 726 | net/ipv4/af_inet.c | sock->data =(void *) sk; |
sock | 772 | net/ipv4/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 778 | net/ipv4/af_inet.c | static inline int closing(struct sock * sk) |
sock | 796 | net/ipv4/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 798 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 851 | net/ipv4/af_inet.c | sock->data = NULL; |
sock | 858 | net/ipv4/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 862 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 872 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 900 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 929 | net/ipv4/af_inet.c | if(sock->type==SOCK_DGRAM) |
sock | 931 | net/ipv4/af_inet.c | if(sock->type==SOCK_STREAM) |
sock | 946 | net/ipv4/af_inet.c | static int inet_error(struct sock *sk) |
sock | 963 | net/ipv4/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 966 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 968 | net/ipv4/af_inet.c | sock->conn = NULL; |
sock | 970 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 972 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 977 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 987 | net/ipv4/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 997 | net/ipv4/af_inet.c | sock->state = SS_CONNECTING; |
sock | 1000 | net/ipv4/af_inet.c | if (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING) |
sock | 1002 | net/ipv4/af_inet.c | sock->state=SS_UNCONNECTED; |
sock | 1027 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1034 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1038 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1057 | net/ipv4/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1059 | net/ipv4/af_inet.c | struct sock *sk1, *sk2; |
sock | 1062 | net/ipv4/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 1071 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 1137 | net/ipv4/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1141 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 1144 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1169 | net/ipv4/af_inet.c | static int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1172 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1186 | net/ipv4/af_inet.c | static int inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1190 | net/ipv4/af_inet.c | return inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1193 | net/ipv4/af_inet.c | static int inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1195 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1205 | net/ipv4/af_inet.c | static int inet_send(struct socket *sock, const void *ubuf, int size, int noblock, |
sock | 1208 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1222 | net/ipv4/af_inet.c | static int inet_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1224 | net/ipv4/af_inet.c | return inet_send(sock,ubuf,size,noblock,0); |
sock | 1227 | net/ipv4/af_inet.c | static int inet_sendto(struct socket *sock, const void *ubuf, int size, int noblock, |
sock | 1230 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1248 | net/ipv4/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1250 | net/ipv4/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1261 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1262 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1272 | net/ipv4/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1274 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1292 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1294 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1389 | net/ipv4/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1393 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1394 | net/ipv4/af_inet.c | struct sock *result = NULL; |
sock | 1453 | net/ipv4/af_inet.c | struct sock *get_sock_raw(struct sock *sk, |
sock | 1458 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1482 | net/ipv4/af_inet.c | struct sock *get_sock_mcast(struct sock *sk, |
sock | 1487 | net/ipv4/af_inet.c | struct sock *s; |
sock | 568 | net/ipv4/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 654 | net/ipv4/icmp.c | ip_queue_xmit((struct sock *) NULL, ndev, skb2, 1); |
sock | 746 | net/ipv4/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 887 | net/ipv4/icmp.c | int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 319 | net/ipv4/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
sock | 353 | net/ipv4/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
sock | 379 | net/ipv4/igmp.c | void ip_mc_drop_socket(struct sock *sk) |
sock | 149 | net/ipv4/ip.c | extern void sort_send(struct sock *sk); |
sock | 169 | net/ipv4/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 844 | net/ipv4/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 1290 | net/ipv4/ip.c | struct sock *raw_sk=NULL; |
sock | 1571 | net/ipv4/ip.c | struct sock *sknext=NULL; |
sock | 1746 | net/ipv4/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 2032 | net/ipv4/ip.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 2285 | net/ipv4/ip.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 2358 | net/ipv4/ip.c | int ip_build_xmit(struct sock *sk, |
sock | 75 | net/ipv4/packet.c | struct sock *sk; |
sock | 83 | net/ipv4/packet.c | sk = (struct sock *) pt->data; |
sock | 144 | net/ipv4/packet.c | static int packet_sendto(struct sock *sk, const unsigned char *from, int len, |
sock | 227 | net/ipv4/packet.c | static int packet_write(struct sock *sk, const unsigned char *buff, |
sock | 240 | net/ipv4/packet.c | static void packet_close(struct sock *sk, int timeout) |
sock | 258 | net/ipv4/packet.c | static int packet_init(struct sock *sk) |
sock | 276 | net/ipv4/packet.c | sk->pair = (struct sock *)p; |
sock | 287 | net/ipv4/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 367 | net/ipv4/packet.c | int packet_read(struct sock *sk, unsigned char *buff, |
sock | 60 | net/ipv4/proc.c | struct sock **s_array; |
sock | 61 | net/ipv4/proc.c | struct sock *sp; |
sock | 69 | net/ipv4/raw.c | struct sock *sk; |
sock | 73 | net/ipv4/raw.c | sk = (struct sock *) protocol->data; |
sock | 97 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr) |
sock | 158 | net/ipv4/raw.c | static int raw_sendto(struct sock *sk, const unsigned char *from, |
sock | 210 | net/ipv4/raw.c | static int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
sock | 217 | net/ipv4/raw.c | static void raw_close(struct sock *sk, int timeout) |
sock | 223 | net/ipv4/raw.c | static int raw_init(struct sock *sk) |
sock | 234 | net/ipv4/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 274 | net/ipv4/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
sock | 266 | net/ipv4/tcp.c | volatile struct sock *th_cache_sk; |
sock | 281 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout); |
sock | 307 | net/ipv4/tcp.c | static __inline__ void tcp_set_state(struct sock *sk, int state) |
sock | 342 | net/ipv4/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 371 | net/ipv4/tcp.c | static struct sk_buff *tcp_find_established(struct sock *s) |
sock | 391 | net/ipv4/tcp.c | static struct sk_buff *tcp_dequeue_established(struct sock *s) |
sock | 410 | net/ipv4/tcp.c | static void tcp_close_pending (struct sock *sk) |
sock | 427 | net/ipv4/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 441 | net/ipv4/tcp.c | void tcp_do_retransmit(struct sock *sk, int all) |
sock | 590 | net/ipv4/tcp.c | static void reset_xmit_timer(struct sock *sk, int why, unsigned long when) |
sock | 611 | net/ipv4/tcp.c | void tcp_retransmit_time(struct sock *sk, int all) |
sock | 647 | net/ipv4/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 669 | net/ipv4/tcp.c | static int tcp_write_timeout(struct sock *sk) |
sock | 741 | net/ipv4/tcp.c | struct sock *sk = (struct sock*)data; |
sock | 851 | net/ipv4/tcp.c | struct sock *sk; |
sock | 909 | net/ipv4/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 983 | net/ipv4/tcp.c | static int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1006 | net/ipv4/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1055 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1124 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 1137 | net/ipv4/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 1256 | net/ipv4/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 1276 | net/ipv4/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 1290 | net/ipv4/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 1320 | net/ipv4/tcp.c | struct sock *sk, |
sock | 1435 | net/ipv4/tcp.c | extern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 1459 | net/ipv4/tcp.c | static int tcp_write(struct sock *sk, const unsigned char *from, |
sock | 1780 | net/ipv4/tcp.c | static int tcp_sendto(struct sock *sk, const unsigned char *from, |
sock | 1805 | net/ipv4/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 1887 | net/ipv4/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 1975 | net/ipv4/tcp.c | static int tcp_read_urg(struct sock * sk, int nonblock, |
sock | 2032 | net/ipv4/tcp.c | static int tcp_read(struct sock *sk, unsigned char *to, |
sock | 2266 | net/ipv4/tcp.c | static int tcp_close_state(struct sock *sk, int dead) |
sock | 2320 | net/ipv4/tcp.c | static void tcp_send_fin(struct sock *sk) |
sock | 2421 | net/ipv4/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 2474 | net/ipv4/tcp.c | tcp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 2598 | net/ipv4/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 2683 | net/ipv4/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 2690 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 2733 | net/ipv4/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 2954 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 3027 | net/ipv4/tcp.c | static void tcp_write_xmit(struct sock *sk) |
sock | 3116 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 3719 | net/ipv4/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) |
sock | 3806 | net/ipv4/tcp.c | extern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 4133 | net/ipv4/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 4165 | net/ipv4/tcp.c | extern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 4206 | net/ipv4/tcp.c | static struct sock *tcp_accept(struct sock *sk, int flags) |
sock | 4208 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 4265 | net/ipv4/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 4425 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 4481 | net/ipv4/tcp.c | static int tcp_std_reset(struct sock *sk, struct sk_buff *skb) |
sock | 4519 | net/ipv4/tcp.c | struct sock *sk; |
sock | 4536 | net/ipv4/tcp.c | sk=(struct sock *)th_cache_sk; |
sock | 4917 | net/ipv4/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 5139 | net/ipv4/tcp.c | void tcp_send_probe0(struct sock *sk) |
sock | 5157 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 5193 | 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 | 122 | net/ipv4/udp.c | volatile struct sock *uh_cache_sk; |
sock | 137 | 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 | 157 | net/ipv4/udp.c | struct sock *sk; |
sock | 289 | net/ipv4/udp.c | static int udp_send(struct sock *sk, struct sockaddr_in *sin, |
sock | 328 | net/ipv4/udp.c | static int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock, |
sock | 397 | net/ipv4/udp.c | static int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
sock | 408 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 463 | net/ipv4/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 515 | net/ipv4/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 522 | net/ipv4/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 551 | net/ipv4/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 572 | net/ipv4/udp.c | struct sock *sk; |
sock | 639 | net/ipv4/udp.c | struct sock *sknext=NULL; |
sock | 665 | net/ipv4/udp.c | sk=(struct sock *)uh_cache_sk; |
sock | 694 | 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 | 325 | net/ipx/af_ipx.c | ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb) |
sock | 329 | net/ipx/af_ipx.c | if((retval = sock_queue_rcv_skb(sock, skb))<0) { |
sock | 350 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
sock | 360 | net/ipx/af_ipx.c | switch (ntohs(ipx->ipx_dest.sock)) { |
sock | 371 | net/ipx/af_ipx.c | ipx->ipx_dest.sock); |
sock | 1035 | net/ipx/af_ipx.c | ipx->ipx_source.sock = sk->ipx_port; |
sock | 1038 | net/ipx/af_ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1198 | net/ipx/af_ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 1272 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1281 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 1286 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1317 | net/ipx/af_ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 1324 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1355 | net/ipx/af_ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 1360 | net/ipx/af_ipx.c | static void def_callback1(struct sock *sk) |
sock | 1366 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 1376 | net/ipx/af_ipx.c | ipx_create(struct socket *sock, int protocol) |
sock | 1382 | net/ipx/af_ipx.c | switch(sock->type) |
sock | 1406 | net/ipx/af_ipx.c | sk->socket=sock; |
sock | 1407 | net/ipx/af_ipx.c | sk->type=sock->type; |
sock | 1415 | net/ipx/af_ipx.c | if(sock!=NULL) |
sock | 1417 | net/ipx/af_ipx.c | sock->data=(void *)sk; |
sock | 1418 | net/ipx/af_ipx.c | sk->sleep=sock->wait; |
sock | 1430 | net/ipx/af_ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 1432 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1438 | net/ipx/af_ipx.c | sock->data=NULL; |
sock | 1466 | net/ipx/af_ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1472 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1511 | net/ipx/af_ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1514 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1518 | net/ipx/af_ipx.c | sock->state = SS_UNCONNECTED; |
sock | 1532 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1539 | net/ipx/af_ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 1542 | net/ipx/af_ipx.c | sock->state = SS_CONNECTED; |
sock | 1552 | net/ipx/af_ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1559 | net/ipx/af_ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1566 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1576 | net/ipx/af_ipx.c | sipx.sipx_port = addr->sock; |
sock | 1633 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
sock | 1692 | net/ipx/af_ipx.c | static int ipx_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
sock | 1695 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1710 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1724 | net/ipx/af_ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1735 | net/ipx/af_ipx.c | static int ipx_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1737 | net/ipx/af_ipx.c | return ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1740 | net/ipx/af_ipx.c | static int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1743 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1776 | net/ipx/af_ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1785 | net/ipx/af_ipx.c | static int ipx_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1787 | net/ipx/af_ipx.c | return ipx_send(sock,ubuf,size,noblock,0); |
sock | 1791 | net/ipx/af_ipx.c | static int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1794 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1797 | net/ipx/af_ipx.c | return ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1800 | net/ipx/af_ipx.c | static int ipx_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1802 | net/ipx/af_ipx.c | return ipx_recv(sock,ubuf,size,noblock,0); |
sock | 1811 | net/ipx/af_ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1813 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1818 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1822 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 69 | net/netrom/af_netrom.c | static struct sock *volatile nr_list = NULL; |
sock | 74 | net/netrom/af_netrom.c | static void nr_remove_socket(struct sock *sk) |
sock | 76 | net/netrom/af_netrom.c | struct sock *s; |
sock | 106 | net/netrom/af_netrom.c | struct sock *s; |
sock | 138 | net/netrom/af_netrom.c | static void nr_insert_socket(struct sock *sk) |
sock | 155 | net/netrom/af_netrom.c | static struct sock *nr_find_listener(ax25_address *addr, int type) |
sock | 158 | net/netrom/af_netrom.c | struct sock *s; |
sock | 177 | net/netrom/af_netrom.c | static struct sock *nr_find_socket(unsigned char index, unsigned char id, int type) |
sock | 179 | net/netrom/af_netrom.c | struct sock *s; |
sock | 200 | net/netrom/af_netrom.c | static struct sock *nr_find_peer(unsigned char index, unsigned char id, int type) |
sock | 202 | net/netrom/af_netrom.c | struct sock *s; |
sock | 223 | net/netrom/af_netrom.c | void nr_destory_socket(struct sock *); |
sock | 230 | net/netrom/af_netrom.c | nr_destroy_socket((struct sock *)data); |
sock | 239 | net/netrom/af_netrom.c | void nr_destroy_socket(struct sock *sk) /* Not static as its used by the timer */ |
sock | 282 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 291 | net/netrom/af_netrom.c | static int nr_setsockopt(struct socket *sock, int level, int optname, |
sock | 294 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 297 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 337 | net/netrom/af_netrom.c | static int nr_getsockopt(struct socket *sock, int level, int optname, |
sock | 340 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 344 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 382 | net/netrom/af_netrom.c | static int nr_listen(struct socket *sock, int backlog) |
sock | 384 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 396 | net/netrom/af_netrom.c | static void def_callback1(struct sock *sk) |
sock | 402 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
sock | 408 | net/netrom/af_netrom.c | static int nr_create(struct socket *sock, int protocol) |
sock | 410 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 413 | net/netrom/af_netrom.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 421 | net/netrom/af_netrom.c | sk->type = sock->type; |
sock | 423 | net/netrom/af_netrom.c | switch (sock->type) { |
sock | 438 | net/netrom/af_netrom.c | sk->socket = sock; |
sock | 466 | net/netrom/af_netrom.c | if (sock != NULL) { |
sock | 467 | net/netrom/af_netrom.c | sock->data = (void *)sk; |
sock | 468 | net/netrom/af_netrom.c | sk->sleep = sock->wait; |
sock | 513 | net/netrom/af_netrom.c | static struct sock *nr_make_new(struct sock *osk) |
sock | 515 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 518 | net/netrom/af_netrom.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 603 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 608 | net/netrom/af_netrom.c | static int nr_release(struct socket *sock, struct socket *peer) |
sock | 610 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 658 | net/netrom/af_netrom.c | sock->data = NULL; |
sock | 663 | net/netrom/af_netrom.c | static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 665 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 670 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 724 | net/netrom/af_netrom.c | static int nr_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 727 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 732 | net/netrom/af_netrom.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 733 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 737 | net/netrom/af_netrom.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 738 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 746 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 779 | net/netrom/af_netrom.c | sock->state = SS_CONNECTING; |
sock | 804 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 808 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 820 | net/netrom/af_netrom.c | static int nr_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 822 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 823 | net/netrom/af_netrom.c | struct sock *newsk; |
sock | 827 | net/netrom/af_netrom.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 831 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 869 | net/netrom/af_netrom.c | static int nr_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 873 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 875 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 897 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 898 | net/netrom/af_netrom.c | struct sock *make; |
sock | 1011 | net/netrom/af_netrom.c | static int nr_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
sock | 1014 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1117 | net/netrom/af_netrom.c | static int nr_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1119 | net/netrom/af_netrom.c | return nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0); |
sock | 1122 | net/netrom/af_netrom.c | static int nr_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1124 | net/netrom/af_netrom.c | return nr_send(sock, ubuf, size, noblock, 0); |
sock | 1127 | net/netrom/af_netrom.c | static int nr_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1130 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1173 | net/netrom/af_netrom.c | static int nr_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1176 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1181 | net/netrom/af_netrom.c | return nr_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL); |
sock | 1184 | net/netrom/af_netrom.c | static int nr_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1186 | net/netrom/af_netrom.c | return nr_recv(sock, ubuf, size, noblock, 0); |
sock | 1194 | net/netrom/af_netrom.c | static int nr_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1196 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1201 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1203 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1292 | net/netrom/af_netrom.c | struct sock *s; |
sock | 51 | net/netrom/nr_in.c | static int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more) |
sock | 90 | net/netrom/nr_in.c | static int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 136 | net/netrom/nr_in.c | static int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 165 | net/netrom/nr_in.c | static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 319 | net/netrom/nr_in.c | int nr_process_rx_frame(struct sock *sk, struct sk_buff *skb) |
sock | 48 | net/netrom/nr_out.c | void nr_output(struct sock *sk, struct sk_buff *skb) |
sock | 103 | net/netrom/nr_out.c | static void nr_send_iframe(struct sock *sk, struct sk_buff *skb) |
sock | 117 | net/netrom/nr_out.c | void nr_send_nak_frame(struct sock *sk) |
sock | 134 | net/netrom/nr_out.c | void nr_kick(struct sock *sk) |
sock | 194 | net/netrom/nr_out.c | void nr_transmit_buffer(struct sock *sk, struct sk_buff *skb) |
sock | 235 | net/netrom/nr_out.c | void nr_nr_error_recovery(struct sock *sk) |
sock | 240 | net/netrom/nr_out.c | void nr_establish_data_link(struct sock *sk) |
sock | 254 | net/netrom/nr_out.c | void nr_enquiry_response(struct sock *sk) |
sock | 272 | 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 | 153 | net/netrom/nr_subr.c | void nr_write_internal(struct sock *sk, int frametype) |
sock | 294 | net/netrom/nr_subr.c | unsigned short nr_calculate_t1(struct sock *sk) |
sock | 309 | 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 | 235 | net/socket.c | struct socket * sock; |
sock | 246 | net/socket.c | sock = &inode->u.socket_i; |
sock | 247 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 248 | net/socket.c | sock->flags = 0; |
sock | 249 | net/socket.c | sock->ops = NULL; |
sock | 250 | net/socket.c | sock->data = NULL; |
sock | 251 | net/socket.c | sock->conn = NULL; |
sock | 252 | net/socket.c | sock->iconn = NULL; |
sock | 253 | net/socket.c | sock->next = NULL; |
sock | 254 | net/socket.c | sock->wait = &inode->i_wait; |
sock | 255 | net/socket.c | sock->inode = inode; /* "backlink": we could use pointer arithmetic instead */ |
sock | 256 | net/socket.c | sock->fasync_list = NULL; |
sock | 258 | net/socket.c | return sock; |
sock | 272 | net/socket.c | void sock_release(struct socket *sock) |
sock | 277 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 278 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 284 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 295 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 296 | net/socket.c | if (sock->ops) |
sock | 297 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 301 | net/socket.c | iput(SOCK_INODE(sock)); |
sock | 320 | net/socket.c | struct socket *sock; |
sock | 323 | net/socket.c | sock = socki_lookup(inode); |
sock | 324 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 333 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
sock | 343 | net/socket.c | struct socket *sock; |
sock | 346 | net/socket.c | sock = socki_lookup(inode); |
sock | 348 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 358 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
sock | 369 | net/socket.c | struct socket *sock; |
sock | 370 | net/socket.c | sock = socki_lookup(inode); |
sock | 371 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 377 | net/socket.c | struct socket *sock; |
sock | 379 | net/socket.c | sock = socki_lookup(inode); |
sock | 385 | net/socket.c | if (sock->ops->select) |
sock | 386 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 410 | net/socket.c | struct socket *sock; |
sock | 420 | net/socket.c | sock = socki_lookup(inode); |
sock | 422 | net/socket.c | prev=&(sock->fasync_list); |
sock | 441 | net/socket.c | fna->fa_next=sock->fasync_list; |
sock | 442 | net/socket.c | sock->fasync_list=fna; |
sock | 456 | net/socket.c | int sock_wake_async(struct socket *sock, int how) |
sock | 458 | net/socket.c | if (!sock || !sock->fasync_list) |
sock | 463 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 466 | net/socket.c | if (!(sock->flags & SO_WAITDATA)) |
sock | 467 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 470 | net/socket.c | if (sock->flags & SO_NOSPACE) |
sock | 472 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 473 | net/socket.c | sock->flags &= ~SO_NOSPACE; |
sock | 566 | net/socket.c | struct socket *sock; |
sock | 601 | net/socket.c | if (!(sock = sock_alloc())) |
sock | 608 | net/socket.c | sock->type = type; |
sock | 609 | net/socket.c | sock->ops = ops; |
sock | 610 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 612 | net/socket.c | sock_release(sock); |
sock | 616 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 618 | net/socket.c | sock_release(sock); |
sock | 696 | net/socket.c | struct socket *sock; |
sock | 704 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 710 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 726 | net/socket.c | struct socket *sock; |
sock | 730 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 733 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 738 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 739 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 740 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 756 | net/socket.c | struct socket *sock, *newsock; |
sock | 763 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 765 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 769 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 780 | net/socket.c | newsock->type = sock->type; |
sock | 781 | net/socket.c | newsock->ops = sock->ops; |
sock | 782 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 788 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 817 | net/socket.c | struct socket *sock; |
sock | 825 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 831 | net/socket.c | switch(sock->state) |
sock | 838 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 853 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 868 | net/socket.c | struct socket *sock; |
sock | 875 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 878 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 893 | net/socket.c | struct socket *sock; |
sock | 900 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 903 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 918 | net/socket.c | struct socket *sock; |
sock | 924 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 932 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 944 | net/socket.c | struct socket *sock; |
sock | 951 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 963 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 978 | net/socket.c | struct socket *sock; |
sock | 985 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 996 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
sock | 1008 | net/socket.c | struct socket *sock; |
sock | 1015 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1026 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1044 | net/socket.c | struct socket *sock; |
sock | 1049 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1052 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 1062 | net/socket.c | struct socket *sock; |
sock | 1067 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1070 | net/socket.c | if (!sock->ops->getsockopt) |
sock | 1072 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1082 | net/socket.c | struct socket *sock; |
sock | 1087 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1090 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1099 | net/socket.c | struct socket *sock; |
sock | 1109 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1123 | net/socket.c | if(sock->ops->sendmsg==NULL) |
sock | 1125 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
sock | 1134 | net/socket.c | struct socket *sock; |
sock | 1146 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1160 | net/socket.c | if(sock->ops->recvmsg==NULL) |
sock | 1162 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
sock | 1180 | net/socket.c | struct socket *sock; |
sock | 1182 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1183 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1184 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 196 | net/unix/af_unix.c | static int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 205 | net/unix/af_unix.c | static int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 207 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 213 | net/unix/af_unix.c | static int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) |
sock | 215 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 221 | net/unix/af_unix.c | static int unix_listen(struct socket *sock, int backlog) |
sock | 223 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 231 | net/unix/af_unix.c | static void def_callback1(struct sock *sk) |
sock | 237 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
sock | 243 | net/unix/af_unix.c | static int unix_create(struct socket *sock, int protocol) |
sock | 252 | net/unix/af_unix.c | sk->type=sock->type; |
sock | 253 | net/unix/af_unix.c | switch(sock->type) |
sock | 295 | net/unix/af_unix.c | sk->socket=sock; |
sock | 296 | net/unix/af_unix.c | sock->data=(void *)sk; |
sock | 297 | net/unix/af_unix.c | sk->sleep=sock->wait; |
sock | 308 | net/unix/af_unix.c | static int unix_release(struct socket *sock, struct socket *peer) |
sock | 310 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 361 | net/unix/af_unix.c | static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 364 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 405 | net/unix/af_unix.c | static int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) |
sock | 407 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 416 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED) |
sock | 418 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 421 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE) |
sock | 423 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 426 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING) |
sock | 438 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 441 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 443 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 449 | net/unix/af_unix.c | if(sock->state==SS_UNCONNECTED) |
sock | 473 | net/unix/af_unix.c | sock->state=SS_CONNECTING; |
sock | 505 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 513 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 547 | net/unix/af_unix.c | static int unix_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 549 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 607 | net/unix/af_unix.c | static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer) |
sock | 609 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 630 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
sock | 632 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 652 | net/unix/af_unix.c | if(sock->type==SOCK_STREAM) |
sock | 673 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 708 | 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 | 710 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 806 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 816 | net/unix/af_unix.c | static int unix_shutdown(struct socket *sock, int mode) |
sock | 818 | net/unix/af_unix.c | unix_socket *sk=(unix_socket *)sock->data; |
sock | 845 | net/unix/af_unix.c | static int unix_select(struct socket *sock, int sel_type, select_table *wait) |
sock | 847 | net/unix/af_unix.c | return datagram_select(sock->data,sel_type,wait); |
sock | 850 | net/unix/af_unix.c | static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 852 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 933 | net/unix/af_unix.c | static int unix_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags, |
sock | 947 | net/unix/af_unix.c | return unix_recvmsg(sock,&msg,size,noblock,flags,addr_len); |
sock | 950 | net/unix/af_unix.c | static int unix_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 952 | net/unix/af_unix.c | return unix_recvfrom(sock,ubuf,size,noblock,0,NULL,NULL); |
sock | 955 | net/unix/af_unix.c | static int unix_recv(struct socket *sock, void *ubuf, int size, int noblock, unsigned int flags) |
sock | 957 | net/unix/af_unix.c | return unix_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 960 | net/unix/af_unix.c | static int unix_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags, |
sock | 972 | net/unix/af_unix.c | return unix_sendmsg(sock,&msg,size,noblock,flags); |
sock | 975 | net/unix/af_unix.c | static int unix_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 977 | net/unix/af_unix.c | return unix_sendto(sock,ubuf,size,noblock, 0, NULL, 0); |
sock | 980 | net/unix/af_unix.c | static int unix_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned int flags) |
sock | 982 | net/unix/af_unix.c | return unix_sendto(sock,ubuf,size,noblock, flags, NULL, 0); |