tag | line | file | source code |
sock | 117 | drivers/net/de600.c | static unsigned long de600_rspace(struct sock *sk); |
sock | 812 | drivers/net/de600.c | de600_rspace(struct sock *sk) |
sock | 150 | fs/nfs/inode.c | struct socket *sock; |
sock | 155 | fs/nfs/inode.c | sock = &((filp->f_inode)->u.socket_i); |
sock | 158 | 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 | 183 | fs/smbfs/sock.c | smb_receive_raw(struct socket *sock, unsigned char *target, |
sock | 197 | fs/smbfs/sock.c | result = sock->ops->recvfrom(sock, (void *)peek_buf, 4, 0, |
sock | 243 | fs/smbfs/sock.c | result = sock->ops-> |
sock | 244 | fs/smbfs/sock.c | recvfrom(sock, |
sock | 265 | fs/smbfs/sock.c | smb_receive(struct smb_server *server, struct socket *sock) |
sock | 269 | fs/smbfs/sock.c | result = smb_receive_raw(sock, server->packet, |
sock | 295 | fs/smbfs/sock.c | smb_receive_trans2(struct smb_server *server, struct socket *sock, |
sock | 308 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 383 | fs/smbfs/sock.c | if ((result = smb_receive(server, sock)) < 0) { |
sock | 422 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 425 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 428 | fs/smbfs/sock.c | result = sock->ops->release(sock, NULL); |
sock | 434 | fs/smbfs/sock.c | sock->state = SS_UNCONNECTED; |
sock | 436 | fs/smbfs/sock.c | result = sock->ops->create(sock, 0); |
sock | 444 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 445 | fs/smbfs/sock.c | if (sock == NULL) |
sock | 447 | fs/smbfs/sock.c | if (sock->state != SS_UNCONNECTED) { |
sock | 449 | fs/smbfs/sock.c | sock->state); |
sock | 451 | fs/smbfs/sock.c | return sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr), |
sock | 469 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 472 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 495 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
sock | 500 | fs/smbfs/sock.c | result = smb_receive(server, sock); |
sock | 537 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 540 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 563 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
sock | 568 | fs/smbfs/sock.c | result = smb_receive_trans2(server, sock, |
sock | 603 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 606 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 632 | fs/smbfs/sock.c | (unsigned int)buffer, (unsigned int)sock); |
sock | 634 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)buffer, len, 0, 0); |
sock | 644 | fs/smbfs/sock.c | result = smb_receive_raw(sock, target, max_len, 0); |
sock | 678 | fs/smbfs/sock.c | struct socket *sock = server_sock(server); |
sock | 681 | fs/smbfs/sock.c | if ((sock == NULL) || (buffer == NULL)) { |
sock | 702 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)nb_header, 4, 0, 0); |
sock | 706 | fs/smbfs/sock.c | result = sock->ops->send(sock, (void *)source, length, 0, 0); |
sock | 715 | fs/smbfs/sock.c | result = smb_receive(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 | 89 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
sock | 90 | include/linux/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
sock | 91 | include/linux/igmp.h | extern void ip_mc_drop_socket(struct sock *sk); |
sock | 115 | include/linux/mroute.h | extern struct sock *mroute_socket; |
sock | 116 | include/linux/mroute.h | extern int ip_mroute_setsockopt(struct sock *, int, char *, int); |
sock | 117 | include/linux/mroute.h | extern int ip_mroute_getsockopt(struct sock *, int, char *, int *); |
sock | 118 | include/linux/mroute.h | extern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 119 | 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 (*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 | 138 | include/linux/net.h | extern int sock_wake_async(struct socket *sock, int how); |
sock | 142 | include/linux/net.h | extern void sock_release(struct socket *sock); |
sock | 168 | 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 | 151 | 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 | 44 | include/net/ip.h | extern void ip_mc_dropsocket(struct sock *); |
sock | 77 | include/net/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
sock | 92 | include/net/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 95 | include/net/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 96 | include/net/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 98 | 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 | 60 | include/net/netrom.h | struct sock *sk; /* Backlink to socket */ |
sock | 92 | include/net/netrom.h | extern void nr_destroy_socket(struct sock *); |
sock | 102 | include/net/netrom.h | extern int nr_process_rx_frame(struct sock *, struct sk_buff *); |
sock | 105 | include/net/netrom.h | extern void nr_output(struct sock *, struct sk_buff *); |
sock | 106 | include/net/netrom.h | extern void nr_send_nak_frame(struct sock *); |
sock | 107 | include/net/netrom.h | extern void nr_kick(struct sock *); |
sock | 108 | include/net/netrom.h | extern void nr_transmit_buffer(struct sock *, struct sk_buff *); |
sock | 109 | include/net/netrom.h | extern void nr_nr_error_recovery(struct sock *); |
sock | 110 | include/net/netrom.h | extern void nr_establish_data_link(struct sock *); |
sock | 111 | include/net/netrom.h | extern void nr_enquiry_response(struct sock *); |
sock | 112 | include/net/netrom.h | extern void nr_check_iframes_acked(struct sock *, unsigned short); |
sock | 125 | include/net/netrom.h | extern void nr_clear_queues(struct sock *); |
sock | 126 | include/net/netrom.h | extern void nr_frames_acked(struct sock *, unsigned short); |
sock | 127 | include/net/netrom.h | extern void nr_requeue_frames(struct sock *); |
sock | 128 | include/net/netrom.h | extern int nr_validate_nr(struct sock *, unsigned short); |
sock | 129 | include/net/netrom.h | extern int nr_in_rx_window(struct sock *, unsigned short); |
sock | 130 | include/net/netrom.h | extern void nr_write_internal(struct sock *, int); |
sock | 132 | include/net/netrom.h | extern unsigned short nr_calculate_t1(struct sock *); |
sock | 133 | include/net/netrom.h | extern void nr_calculate_rtt(struct sock *); |
sock | 136 | 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 | 117 | include/net/sock.h | struct sock *next; |
sock | 118 | include/net/sock.h | struct sock *prev; /* Doubly linked chain.. */ |
sock | 119 | include/net/sock.h | struct sock *pair; |
sock | 232 | include/net/sock.h | void (*state_change)(struct sock *sk); |
sock | 233 | include/net/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 234 | include/net/sock.h | void (*write_space)(struct sock *sk); |
sock | 235 | include/net/sock.h | void (*error_report)(struct sock *sk); |
sock | 240 | include/net/sock.h | struct sk_buff * (*wmalloc)(struct sock *sk, |
sock | 243 | include/net/sock.h | struct sk_buff * (*rmalloc)(struct sock *sk, |
sock | 246 | include/net/sock.h | void (*wfree)(struct sock *sk, struct sk_buff *skb); |
sock | 247 | include/net/sock.h | void (*rfree)(struct sock *sk, struct sk_buff *skb); |
sock | 248 | include/net/sock.h | unsigned long (*rspace)(struct sock *sk); |
sock | 249 | include/net/sock.h | unsigned long (*wspace)(struct sock *sk); |
sock | 250 | include/net/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 251 | include/net/sock.h | int (*read)(struct sock *sk, unsigned char *to, |
sock | 253 | include/net/sock.h | int (*write)(struct sock *sk, const unsigned char *to, |
sock | 255 | include/net/sock.h | int (*sendto)(struct sock *sk, |
sock | 259 | include/net/sock.h | int (*recvfrom)(struct sock *sk, |
sock | 269 | include/net/sock.h | int (*connect)(struct sock *sk, |
sock | 271 | include/net/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 272 | include/net/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 275 | include/net/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 276 | include/net/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 277 | include/net/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 282 | include/net/sock.h | int (*select)(struct sock *sk, int which, |
sock | 284 | include/net/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 286 | include/net/sock.h | int (*init)(struct sock *sk); |
sock | 287 | include/net/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 288 | include/net/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 290 | include/net/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 296 | 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 | 367 | include/net/sock.h | extern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
sock | 384 | include/net/sock.h | extern struct sock *timer_base; |
sock | 386 | include/net/sock.h | extern void delete_timer (struct sock *); |
sock | 387 | 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 | 931 | net/appletalk/ddp.c | static int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 946 | net/appletalk/ddp.c | static int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 951 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 984 | net/appletalk/ddp.c | static int atalk_getsockopt(struct socket *sock, int level, int optname, |
sock | 991 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1023 | net/appletalk/ddp.c | static int atalk_listen(struct socket *sock, int backlog) |
sock | 1032 | net/appletalk/ddp.c | static void def_callback1(struct sock *sk) |
sock | 1038 | net/appletalk/ddp.c | static void def_callback2(struct sock *sk, int len) |
sock | 1052 | net/appletalk/ddp.c | static int atalk_create(struct socket *sock, int protocol) |
sock | 1058 | net/appletalk/ddp.c | switch(sock->type) |
sock | 1092 | net/appletalk/ddp.c | sk->socket=sock; |
sock | 1093 | net/appletalk/ddp.c | sk->type=sock->type; |
sock | 1106 | net/appletalk/ddp.c | if(sock!=NULL) |
sock | 1108 | net/appletalk/ddp.c | sock->data=(void *)sk; |
sock | 1109 | net/appletalk/ddp.c | sk->sleep=sock->wait; |
sock | 1134 | net/appletalk/ddp.c | static int atalk_release(struct socket *sock, struct socket *peer) |
sock | 1136 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1142 | net/appletalk/ddp.c | sock->data=NULL; |
sock | 1184 | net/appletalk/ddp.c | static int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1189 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1239 | net/appletalk/ddp.c | static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1242 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1246 | net/appletalk/ddp.c | sock->state = SS_UNCONNECTED; |
sock | 1270 | net/appletalk/ddp.c | sock->state = SS_CONNECTED; |
sock | 1288 | net/appletalk/ddp.c | static int atalk_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1300 | net/appletalk/ddp.c | static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1306 | net/appletalk/ddp.c | sk=(atalk_socket *)sock->data; |
sock | 1342 | net/appletalk/ddp.c | atalk_socket *sock; |
sock | 1448 | net/appletalk/ddp.c | sock=atalk_search_socket( &tosat, atif ); |
sock | 1450 | net/appletalk/ddp.c | if(sock==NULL) /* But not one of our sockets */ |
sock | 1461 | net/appletalk/ddp.c | skb->sk = sock; |
sock | 1463 | net/appletalk/ddp.c | if(sock_queue_rcv_skb(sock,skb)<0) |
sock | 1471 | net/appletalk/ddp.c | static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
sock | 1473 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1648 | net/appletalk/ddp.c | static int atalk_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags, |
sock | 1660 | net/appletalk/ddp.c | return atalk_sendmsg(sock,&msg,size,noblock,flags); |
sock | 1664 | net/appletalk/ddp.c | static int atalk_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1666 | net/appletalk/ddp.c | return atalk_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1669 | net/appletalk/ddp.c | static int atalk_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len) |
sock | 1671 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1719 | net/appletalk/ddp.c | static int atalk_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1721 | net/appletalk/ddp.c | return atalk_send(sock,ubuf,size,noblock,0); |
sock | 1725 | net/appletalk/ddp.c | static int atalk_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags, |
sock | 1739 | net/appletalk/ddp.c | return atalk_recvmsg(sock,&msg,size,noblock,flags,addr_len); |
sock | 1742 | net/appletalk/ddp.c | static int atalk_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1745 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1748 | net/appletalk/ddp.c | return atalk_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1751 | net/appletalk/ddp.c | static int atalk_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1753 | net/appletalk/ddp.c | return atalk_recv(sock,ubuf,size,noblock,0); |
sock | 1762 | net/appletalk/ddp.c | static int atalk_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1764 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 1773 | net/appletalk/ddp.c | static int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1777 | net/appletalk/ddp.c | atalk_socket *sk=(atalk_socket *)sock->data; |
sock | 261 | net/ax25/af_ax25.c | static struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type) |
sock | 286 | net/ax25/af_ax25.c | static struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type) |
sock | 335 | net/ax25/af_ax25.c | static struct sock *ax25_addr_match(ax25_address *addr) |
sock | 355 | net/ax25/af_ax25.c | static void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto) |
sock | 677 | net/ax25/af_ax25.c | static int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 686 | net/ax25/af_ax25.c | static int ax25_setsockopt(struct socket *sock, int level, int optname, |
sock | 689 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 692 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 761 | net/ax25/af_ax25.c | static int ax25_getsockopt(struct socket *sock, int level, int optname, |
sock | 764 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 768 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 826 | net/ax25/af_ax25.c | static int ax25_listen(struct socket *sock, int backlog) |
sock | 828 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 839 | net/ax25/af_ax25.c | static void def_callback1(struct sock *sk) |
sock | 845 | net/ax25/af_ax25.c | static void def_callback2(struct sock *sk, int len) |
sock | 851 | net/ax25/af_ax25.c | static int ax25_create(struct socket *sock, int protocol) |
sock | 853 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 856 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 864 | net/ax25/af_ax25.c | sk->type = sock->type; |
sock | 866 | net/ax25/af_ax25.c | switch (sock->type) { |
sock | 884 | net/ax25/af_ax25.c | sk->socket = sock; |
sock | 912 | net/ax25/af_ax25.c | if (sock != NULL) { |
sock | 913 | net/ax25/af_ax25.c | sock->data = (void *)sk; |
sock | 914 | net/ax25/af_ax25.c | sk->sleep = sock->wait; |
sock | 923 | net/ax25/af_ax25.c | static struct sock *ax25_make_new(struct sock *osk, struct device *dev) |
sock | 925 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 928 | net/ax25/af_ax25.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 1014 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 1019 | net/ax25/af_ax25.c | static int ax25_release(struct socket *sock, struct socket *peer) |
sock | 1021 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1070 | net/ax25/af_ax25.c | sock->data = NULL; |
sock | 1081 | net/ax25/af_ax25.c | static int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1083 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1088 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1138 | net/ax25/af_ax25.c | static int ax25_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1141 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1145 | net/ax25/af_ax25.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 1146 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1150 | net/ax25/af_ax25.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 1151 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1159 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1209 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1215 | net/ax25/af_ax25.c | sock->state = SS_CONNECTING; |
sock | 1238 | net/ax25/af_ax25.c | sock->state = SS_UNCONNECTED; |
sock | 1242 | net/ax25/af_ax25.c | sock->state = SS_CONNECTED; |
sock | 1254 | net/ax25/af_ax25.c | static int ax25_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1256 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1257 | net/ax25/af_ax25.c | struct sock *newsk; |
sock | 1261 | net/ax25/af_ax25.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 1265 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1303 | net/ax25/af_ax25.c | static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1308 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1311 | net/ax25/af_ax25.c | sk = (struct sock *)sock->data; |
sock | 1340 | net/ax25/af_ax25.c | struct sock *make; |
sock | 1341 | net/ax25/af_ax25.c | struct sock *sk; |
sock | 1346 | net/ax25/af_ax25.c | struct sock *raw; |
sock | 1636 | net/ax25/af_ax25.c | static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
sock | 1638 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1788 | net/ax25/af_ax25.c | static int ax25_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags, |
sock | 1800 | net/ax25/af_ax25.c | return ax25_sendmsg(sock,&msg,size,noblock,flags); |
sock | 1804 | net/ax25/af_ax25.c | static int ax25_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1806 | net/ax25/af_ax25.c | return ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0); |
sock | 1809 | net/ax25/af_ax25.c | static int ax25_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1811 | net/ax25/af_ax25.c | return ax25_sendto(sock, ubuf, size, noblock, 0, NULL, 0); |
sock | 1814 | 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 | 1816 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1884 | net/ax25/af_ax25.c | static int ax25_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags, |
sock | 1898 | net/ax25/af_ax25.c | return ax25_recvmsg(sock,&msg,size,noblock,flags,addr_len); |
sock | 1901 | net/ax25/af_ax25.c | static int ax25_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1904 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1909 | net/ax25/af_ax25.c | return ax25_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL); |
sock | 1912 | net/ax25/af_ax25.c | static int ax25_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1914 | net/ax25/af_ax25.c | return ax25_recv(sock, ubuf, size, noblock, 0); |
sock | 1923 | net/ax25/af_ax25.c | static int ax25_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1925 | net/ax25/af_ax25.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1930 | net/ax25/af_ax25.c | static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1932 | 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 | 192 | net/core/datagram.c | int datagram_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 390 | 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 | 510 | 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 | 107 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 135 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 179 | net/ipv4/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 181 | net/ipv4/af_inet.c | struct sock *sk1; |
sock | 182 | net/ipv4/af_inet.c | struct sock *sk2; |
sock | 248 | net/ipv4/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 250 | net/ipv4/af_inet.c | struct sock **p; |
sock | 285 | net/ipv4/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 403 | net/ipv4/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 405 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 407 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 432 | net/ipv4/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 435 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 448 | net/ipv4/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 451 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 464 | net/ipv4/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 484 | net/ipv4/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 486 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 516 | net/ipv4/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 522 | net/ipv4/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 531 | net/ipv4/af_inet.c | static void def_callback3(struct sock *sk) |
sock | 547 | net/ipv4/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 549 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 553 | net/ipv4/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 559 | net/ipv4/af_inet.c | switch(sock->type) |
sock | 620 | net/ipv4/af_inet.c | sk->socket = sock; |
sock | 626 | net/ipv4/af_inet.c | sk->type = sock->type; |
sock | 714 | net/ipv4/af_inet.c | sk->sleep = sock->wait; |
sock | 720 | net/ipv4/af_inet.c | sock->data =(void *) sk; |
sock | 770 | net/ipv4/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 777 | net/ipv4/af_inet.c | static inline int closing(struct sock * sk) |
sock | 795 | net/ipv4/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 797 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 850 | net/ipv4/af_inet.c | sock->data = NULL; |
sock | 857 | net/ipv4/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 861 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 871 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 899 | net/ipv4/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 928 | net/ipv4/af_inet.c | if(sock->type==SOCK_DGRAM) |
sock | 930 | net/ipv4/af_inet.c | if(sock->type==SOCK_STREAM) |
sock | 945 | net/ipv4/af_inet.c | static int inet_error(struct sock *sk) |
sock | 962 | net/ipv4/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 965 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 967 | net/ipv4/af_inet.c | sock->conn = NULL; |
sock | 969 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 971 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 976 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 982 | net/ipv4/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 992 | net/ipv4/af_inet.c | sock->state = SS_CONNECTING; |
sock | 995 | net/ipv4/af_inet.c | if (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING) |
sock | 997 | net/ipv4/af_inet.c | sock->state=SS_UNCONNECTED; |
sock | 1017 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1023 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1027 | net/ipv4/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1044 | net/ipv4/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1046 | net/ipv4/af_inet.c | struct sock *sk1, *sk2; |
sock | 1049 | net/ipv4/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 1058 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 1121 | net/ipv4/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1125 | net/ipv4/af_inet.c | struct sock *sk; |
sock | 1128 | net/ipv4/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1153 | net/ipv4/af_inet.c | static int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1156 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1170 | net/ipv4/af_inet.c | static int inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1174 | net/ipv4/af_inet.c | return inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1177 | net/ipv4/af_inet.c | static int inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1179 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1189 | net/ipv4/af_inet.c | static int inet_send(struct socket *sock, const void *ubuf, int size, int noblock, |
sock | 1192 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1206 | net/ipv4/af_inet.c | static int inet_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1208 | net/ipv4/af_inet.c | return inet_send(sock,ubuf,size,noblock,0); |
sock | 1211 | net/ipv4/af_inet.c | static int inet_sendto(struct socket *sock, const void *ubuf, int size, int noblock, |
sock | 1214 | net/ipv4/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1232 | net/ipv4/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1234 | net/ipv4/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1245 | net/ipv4/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1246 | net/ipv4/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1256 | net/ipv4/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1258 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1276 | net/ipv4/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1278 | net/ipv4/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1373 | net/ipv4/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1377 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1378 | net/ipv4/af_inet.c | struct sock *result = NULL; |
sock | 1437 | net/ipv4/af_inet.c | struct sock *get_sock_raw(struct sock *sk, |
sock | 1442 | net/ipv4/af_inet.c | struct sock *s; |
sock | 1466 | net/ipv4/af_inet.c | struct sock *get_sock_mcast(struct sock *sk, |
sock | 1471 | net/ipv4/af_inet.c | struct sock *s; |
sock | 230 | net/ipv4/icmp.c | struct sock *sk=icmp_socket.data; |
sock | 692 | 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 | 156 | net/ipv4/ip.c | extern void sort_send(struct sock *sk); |
sock | 176 | net/ipv4/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 874 | net/ipv4/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 1335 | net/ipv4/ip.c | struct sock *raw_sk=NULL; |
sock | 1624 | net/ipv4/ip.c | struct sock *sknext=NULL; |
sock | 1798 | net/ipv4/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 2088 | net/ipv4/ip.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 2356 | net/ipv4/ip.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 2439 | net/ipv4/ip.c | int ip_build_xmit(struct sock *sk, |
sock | 67 | net/ipv4/ipmr.c | int ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen) |
sock | 203 | net/ipv4/ipmr.c | int ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen) |
sock | 231 | net/ipv4/ipmr.c | int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 274 | net/ipv4/ipmr.c | void mroute_close(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 | 61 | net/ipv4/proc.c | struct sock **s_array; |
sock | 62 | net/ipv4/proc.c | struct sock *sp; |
sock | 61 | net/ipv4/raw.c | struct sock *mroute_socket=NULL; |
sock | 79 | net/ipv4/raw.c | struct sock *sk; |
sock | 83 | net/ipv4/raw.c | sk = (struct sock *) protocol->data; |
sock | 116 | net/ipv4/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr) |
sock | 178 | net/ipv4/raw.c | static int raw_sendto(struct sock *sk, const unsigned char *from, |
sock | 230 | net/ipv4/raw.c | static int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
sock | 237 | net/ipv4/raw.c | static void raw_close(struct sock *sk, int timeout) |
sock | 250 | net/ipv4/raw.c | static int raw_init(struct sock *sk) |
sock | 261 | net/ipv4/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 299 | net/ipv4/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
sock | 453 | net/ipv4/tcp.c | volatile struct sock *th_cache_sk; |
sock | 468 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout); |
sock | 494 | net/ipv4/tcp.c | static __inline__ void tcp_set_state(struct sock *sk, int state) |
sock | 529 | net/ipv4/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 558 | net/ipv4/tcp.c | static struct sk_buff *tcp_find_established(struct sock *s) |
sock | 578 | net/ipv4/tcp.c | static struct sk_buff *tcp_dequeue_established(struct sock *s) |
sock | 597 | net/ipv4/tcp.c | static void tcp_close_pending (struct sock *sk) |
sock | 614 | net/ipv4/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 628 | net/ipv4/tcp.c | void tcp_do_retransmit(struct sock *sk, int all) |
sock | 777 | net/ipv4/tcp.c | static void reset_xmit_timer(struct sock *sk, int why, unsigned long when) |
sock | 798 | net/ipv4/tcp.c | void tcp_retransmit_time(struct sock *sk, int all) |
sock | 834 | net/ipv4/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 856 | net/ipv4/tcp.c | static int tcp_write_timeout(struct sock *sk) |
sock | 928 | net/ipv4/tcp.c | struct sock *sk = (struct sock*)data; |
sock | 1040 | net/ipv4/tcp.c | struct sock *sk; |
sock | 1095 | net/ipv4/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 1169 | net/ipv4/tcp.c | static int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1192 | net/ipv4/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 1241 | net/ipv4/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1310 | net/ipv4/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 1323 | net/ipv4/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 1442 | net/ipv4/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 1462 | net/ipv4/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 1476 | net/ipv4/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 1506 | net/ipv4/tcp.c | struct sock *sk, |
sock | 1621 | net/ipv4/tcp.c | extern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 1645 | net/ipv4/tcp.c | static int tcp_write(struct sock *sk, const unsigned char *from, |
sock | 1966 | net/ipv4/tcp.c | static int tcp_sendto(struct sock *sk, const unsigned char *from, |
sock | 1991 | net/ipv4/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 2073 | net/ipv4/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 2161 | net/ipv4/tcp.c | static int tcp_read_urg(struct sock * sk, int nonblock, |
sock | 2218 | net/ipv4/tcp.c | static int tcp_read(struct sock *sk, unsigned char *to, |
sock | 2452 | net/ipv4/tcp.c | static int tcp_close_state(struct sock *sk, int dead) |
sock | 2506 | net/ipv4/tcp.c | static void tcp_send_fin(struct sock *sk) |
sock | 2607 | net/ipv4/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 2660 | net/ipv4/tcp.c | tcp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 2784 | net/ipv4/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 2869 | net/ipv4/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 2876 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 2919 | net/ipv4/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 3140 | net/ipv4/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 3213 | net/ipv4/tcp.c | static void tcp_write_xmit(struct sock *sk) |
sock | 3302 | net/ipv4/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 3905 | net/ipv4/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) |
sock | 3992 | net/ipv4/tcp.c | extern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 4319 | net/ipv4/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 4351 | net/ipv4/tcp.c | extern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 4392 | net/ipv4/tcp.c | static struct sock *tcp_accept(struct sock *sk, int flags) |
sock | 4394 | net/ipv4/tcp.c | struct sock *newsk; |
sock | 4451 | net/ipv4/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 4611 | net/ipv4/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 4667 | net/ipv4/tcp.c | static int tcp_std_reset(struct sock *sk, struct sk_buff *skb) |
sock | 4705 | net/ipv4/tcp.c | struct sock *sk; |
sock | 4722 | net/ipv4/tcp.c | sk=(struct sock *)th_cache_sk; |
sock | 5103 | net/ipv4/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 5325 | net/ipv4/tcp.c | void tcp_send_probe0(struct sock *sk) |
sock | 5343 | net/ipv4/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 5379 | 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 | 293 | 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 | 401 | net/ipv4/udp.c | static int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock, |
sock | 412 | net/ipv4/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 467 | net/ipv4/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 519 | net/ipv4/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 526 | net/ipv4/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 555 | net/ipv4/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 576 | net/ipv4/udp.c | struct sock *sk; |
sock | 643 | net/ipv4/udp.c | struct sock *sknext=NULL; |
sock | 669 | net/ipv4/udp.c | sk=(struct sock *)uh_cache_sk; |
sock | 698 | 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 | 327 | net/ipx/af_ipx.c | ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb) |
sock | 331 | net/ipx/af_ipx.c | if((retval = sock_queue_rcv_skb(sock, skb))<0) { |
sock | 352 | net/ipx/af_ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
sock | 362 | net/ipx/af_ipx.c | switch (ntohs(ipx->ipx_dest.sock)) { |
sock | 373 | net/ipx/af_ipx.c | ipx->ipx_dest.sock); |
sock | 1037 | net/ipx/af_ipx.c | ipx->ipx_source.sock = sk->ipx_port; |
sock | 1040 | net/ipx/af_ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1200 | net/ipx/af_ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 1274 | net/ipx/af_ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1283 | net/ipx/af_ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 1288 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1319 | net/ipx/af_ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 1326 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1357 | net/ipx/af_ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 1362 | net/ipx/af_ipx.c | static void def_callback1(struct sock *sk) |
sock | 1368 | net/ipx/af_ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 1378 | net/ipx/af_ipx.c | ipx_create(struct socket *sock, int protocol) |
sock | 1384 | net/ipx/af_ipx.c | switch(sock->type) |
sock | 1408 | net/ipx/af_ipx.c | sk->socket=sock; |
sock | 1409 | net/ipx/af_ipx.c | sk->type=sock->type; |
sock | 1417 | net/ipx/af_ipx.c | if(sock!=NULL) |
sock | 1419 | net/ipx/af_ipx.c | sock->data=(void *)sk; |
sock | 1420 | net/ipx/af_ipx.c | sk->sleep=sock->wait; |
sock | 1432 | net/ipx/af_ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 1434 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1440 | net/ipx/af_ipx.c | sock->data=NULL; |
sock | 1468 | net/ipx/af_ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1474 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1513 | net/ipx/af_ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1516 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1520 | net/ipx/af_ipx.c | sock->state = SS_UNCONNECTED; |
sock | 1534 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1541 | net/ipx/af_ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 1544 | net/ipx/af_ipx.c | sock->state = SS_CONNECTED; |
sock | 1554 | net/ipx/af_ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1561 | net/ipx/af_ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1568 | net/ipx/af_ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1578 | net/ipx/af_ipx.c | sipx.sipx_port = addr->sock; |
sock | 1635 | net/ipx/af_ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
sock | 1694 | net/ipx/af_ipx.c | static int ipx_sendto(struct socket *sock, const void *ubuf, int len, int noblock, |
sock | 1697 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1712 | net/ipx/af_ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1726 | net/ipx/af_ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1737 | net/ipx/af_ipx.c | static int ipx_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1739 | net/ipx/af_ipx.c | return ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1742 | net/ipx/af_ipx.c | static int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1745 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1778 | net/ipx/af_ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1787 | net/ipx/af_ipx.c | static int ipx_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1789 | net/ipx/af_ipx.c | return ipx_send(sock,ubuf,size,noblock,0); |
sock | 1793 | net/ipx/af_ipx.c | static int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1796 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1799 | net/ipx/af_ipx.c | return ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1802 | net/ipx/af_ipx.c | static int ipx_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1804 | net/ipx/af_ipx.c | return ipx_recv(sock,ubuf,size,noblock,0); |
sock | 1813 | net/ipx/af_ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1815 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1820 | net/ipx/af_ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1824 | net/ipx/af_ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 70 | net/netrom/af_netrom.c | static struct sock *volatile nr_list = NULL; |
sock | 75 | net/netrom/af_netrom.c | static void nr_remove_socket(struct sock *sk) |
sock | 77 | net/netrom/af_netrom.c | struct sock *s; |
sock | 107 | net/netrom/af_netrom.c | struct sock *s; |
sock | 140 | net/netrom/af_netrom.c | static void nr_insert_socket(struct sock *sk) |
sock | 157 | net/netrom/af_netrom.c | static struct sock *nr_find_listener(ax25_address *addr, int type) |
sock | 160 | net/netrom/af_netrom.c | struct sock *s; |
sock | 179 | net/netrom/af_netrom.c | static struct sock *nr_find_socket(unsigned char index, unsigned char id, int type) |
sock | 181 | net/netrom/af_netrom.c | struct sock *s; |
sock | 202 | net/netrom/af_netrom.c | static struct sock *nr_find_peer(unsigned char index, unsigned char id, int type) |
sock | 204 | net/netrom/af_netrom.c | struct sock *s; |
sock | 225 | net/netrom/af_netrom.c | void nr_destory_socket(struct sock *); |
sock | 232 | net/netrom/af_netrom.c | nr_destroy_socket((struct sock *)data); |
sock | 241 | net/netrom/af_netrom.c | void nr_destroy_socket(struct sock *sk) /* Not static as its used by the timer */ |
sock | 284 | net/netrom/af_netrom.c | static int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 293 | net/netrom/af_netrom.c | static int nr_setsockopt(struct socket *sock, int level, int optname, |
sock | 296 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 299 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 343 | net/netrom/af_netrom.c | static int nr_getsockopt(struct socket *sock, int level, int optname, |
sock | 346 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 350 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 392 | net/netrom/af_netrom.c | static int nr_listen(struct socket *sock, int backlog) |
sock | 394 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 406 | net/netrom/af_netrom.c | static void def_callback1(struct sock *sk) |
sock | 412 | net/netrom/af_netrom.c | static void def_callback2(struct sock *sk, int len) |
sock | 418 | net/netrom/af_netrom.c | static int nr_create(struct socket *sock, int protocol) |
sock | 420 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 423 | net/netrom/af_netrom.c | if ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL) |
sock | 431 | net/netrom/af_netrom.c | sk->type = sock->type; |
sock | 433 | net/netrom/af_netrom.c | switch (sock->type) { |
sock | 448 | net/netrom/af_netrom.c | sk->socket = sock; |
sock | 477 | net/netrom/af_netrom.c | if (sock != NULL) { |
sock | 478 | net/netrom/af_netrom.c | sock->data = (void *)sk; |
sock | 479 | net/netrom/af_netrom.c | sk->sleep = sock->wait; |
sock | 525 | net/netrom/af_netrom.c | static struct sock *nr_make_new(struct sock *osk) |
sock | 527 | 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 | 616 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)oldsock->data; |
sock | 621 | net/netrom/af_netrom.c | static int nr_release(struct socket *sock, struct socket *peer) |
sock | 623 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 671 | net/netrom/af_netrom.c | sock->data = NULL; |
sock | 676 | net/netrom/af_netrom.c | static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 678 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 683 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 737 | net/netrom/af_netrom.c | static int nr_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 740 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 745 | net/netrom/af_netrom.c | if (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) { |
sock | 746 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 750 | net/netrom/af_netrom.c | if (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) { |
sock | 751 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 759 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 792 | net/netrom/af_netrom.c | sock->state = SS_CONNECTING; |
sock | 817 | net/netrom/af_netrom.c | sock->state = SS_UNCONNECTED; |
sock | 821 | net/netrom/af_netrom.c | sock->state = SS_CONNECTED; |
sock | 833 | net/netrom/af_netrom.c | static int nr_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 835 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 836 | net/netrom/af_netrom.c | struct sock *newsk; |
sock | 840 | net/netrom/af_netrom.c | kfree_s(newsock->data, sizeof(struct sock)); |
sock | 844 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 882 | net/netrom/af_netrom.c | static int nr_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 886 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 888 | net/netrom/af_netrom.c | sk = (struct sock *)sock->data; |
sock | 910 | net/netrom/af_netrom.c | struct sock *sk; |
sock | 911 | net/netrom/af_netrom.c | struct sock *make; |
sock | 1023 | net/netrom/af_netrom.c | static int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags) |
sock | 1025 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1128 | net/netrom/af_netrom.c | static int nr_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags, |
sock | 1140 | net/netrom/af_netrom.c | return nr_sendmsg(sock,&msg,size,noblock,flags); |
sock | 1143 | net/netrom/af_netrom.c | static int nr_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags) |
sock | 1145 | net/netrom/af_netrom.c | return nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0); |
sock | 1148 | net/netrom/af_netrom.c | static int nr_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1150 | net/netrom/af_netrom.c | return nr_sendto(sock, ubuf, size, noblock, 0, NULL, 0); |
sock | 1153 | net/netrom/af_netrom.c | static int nr_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, |
sock | 1156 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1208 | net/netrom/af_netrom.c | static int nr_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags, |
sock | 1222 | net/netrom/af_netrom.c | return nr_recvmsg(sock,&msg,size,noblock,flags,addr_len); |
sock | 1226 | net/netrom/af_netrom.c | static int nr_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1229 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1234 | net/netrom/af_netrom.c | return nr_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL); |
sock | 1237 | net/netrom/af_netrom.c | static int nr_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1239 | net/netrom/af_netrom.c | return nr_recv(sock, ubuf, size, noblock, 0); |
sock | 1247 | net/netrom/af_netrom.c | static int nr_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1249 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1254 | net/netrom/af_netrom.c | static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1256 | net/netrom/af_netrom.c | struct sock *sk = (struct sock *)sock->data; |
sock | 1344 | 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 | 95 | net/netrom/nr_in.c | static int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 141 | net/netrom/nr_in.c | static int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 170 | net/netrom/nr_in.c | static int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype) |
sock | 324 | 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 | 236 | net/socket.c | struct socket * sock; |
sock | 247 | net/socket.c | sock = &inode->u.socket_i; |
sock | 248 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 249 | net/socket.c | sock->flags = 0; |
sock | 250 | net/socket.c | sock->ops = NULL; |
sock | 251 | net/socket.c | sock->data = NULL; |
sock | 252 | net/socket.c | sock->conn = NULL; |
sock | 253 | net/socket.c | sock->iconn = NULL; |
sock | 254 | net/socket.c | sock->next = NULL; |
sock | 255 | net/socket.c | sock->wait = &inode->i_wait; |
sock | 256 | net/socket.c | sock->inode = inode; /* "backlink": we could use pointer arithmetic instead */ |
sock | 257 | net/socket.c | sock->fasync_list = NULL; |
sock | 259 | net/socket.c | return sock; |
sock | 273 | net/socket.c | void sock_release(struct socket *sock) |
sock | 278 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 279 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 285 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 296 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 297 | net/socket.c | if (sock->ops) |
sock | 298 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 302 | net/socket.c | iput(SOCK_INODE(sock)); |
sock | 321 | net/socket.c | struct socket *sock; |
sock | 324 | net/socket.c | sock = socki_lookup(inode); |
sock | 325 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 334 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
sock | 344 | net/socket.c | struct socket *sock; |
sock | 347 | net/socket.c | sock = socki_lookup(inode); |
sock | 349 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 359 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
sock | 370 | net/socket.c | struct socket *sock; |
sock | 371 | net/socket.c | sock = socki_lookup(inode); |
sock | 372 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 378 | net/socket.c | struct socket *sock; |
sock | 380 | net/socket.c | sock = socki_lookup(inode); |
sock | 386 | net/socket.c | if (sock->ops->select) |
sock | 387 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 411 | net/socket.c | struct socket *sock; |
sock | 421 | net/socket.c | sock = socki_lookup(inode); |
sock | 423 | net/socket.c | prev=&(sock->fasync_list); |
sock | 442 | net/socket.c | fna->fa_next=sock->fasync_list; |
sock | 443 | net/socket.c | sock->fasync_list=fna; |
sock | 457 | net/socket.c | int sock_wake_async(struct socket *sock, int how) |
sock | 459 | net/socket.c | if (!sock || !sock->fasync_list) |
sock | 464 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 467 | net/socket.c | if (!(sock->flags & SO_WAITDATA)) |
sock | 468 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 471 | net/socket.c | if (sock->flags & SO_NOSPACE) |
sock | 473 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 474 | net/socket.c | sock->flags &= ~SO_NOSPACE; |
sock | 490 | net/socket.c | struct socket *sock; |
sock | 525 | net/socket.c | if (!(sock = sock_alloc())) |
sock | 532 | net/socket.c | sock->type = type; |
sock | 533 | net/socket.c | sock->ops = ops; |
sock | 534 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 536 | net/socket.c | sock_release(sock); |
sock | 540 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 542 | net/socket.c | sock_release(sock); |
sock | 620 | net/socket.c | struct socket *sock; |
sock | 628 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 634 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 650 | net/socket.c | struct socket *sock; |
sock | 654 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 657 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 662 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 663 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 664 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 680 | net/socket.c | struct socket *sock, *newsock; |
sock | 687 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 689 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 693 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 704 | net/socket.c | newsock->type = sock->type; |
sock | 705 | net/socket.c | newsock->ops = sock->ops; |
sock | 706 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 712 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 741 | net/socket.c | struct socket *sock; |
sock | 749 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 755 | net/socket.c | switch(sock->state) |
sock | 762 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 777 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 792 | net/socket.c | struct socket *sock; |
sock | 799 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 802 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 817 | net/socket.c | struct socket *sock; |
sock | 824 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 827 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 842 | net/socket.c | struct socket *sock; |
sock | 848 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 856 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 868 | net/socket.c | struct socket *sock; |
sock | 875 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 887 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 902 | net/socket.c | struct socket *sock; |
sock | 909 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 920 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
sock | 932 | net/socket.c | struct socket *sock; |
sock | 939 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 950 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 968 | net/socket.c | struct socket *sock; |
sock | 973 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 976 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 986 | net/socket.c | struct socket *sock; |
sock | 991 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 994 | net/socket.c | if (!sock->ops->getsockopt) |
sock | 996 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1006 | net/socket.c | struct socket *sock; |
sock | 1011 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1014 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1023 | net/socket.c | struct socket *sock; |
sock | 1033 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1047 | net/socket.c | if(sock->ops->sendmsg==NULL) |
sock | 1049 | net/socket.c | return sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags); |
sock | 1058 | net/socket.c | struct socket *sock; |
sock | 1070 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1084 | net/socket.c | if(sock->ops->recvmsg==NULL) |
sock | 1086 | net/socket.c | len=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len); |
sock | 1104 | net/socket.c | struct socket *sock; |
sock | 1106 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1107 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1108 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 197 | net/unix/af_unix.c | static int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 206 | net/unix/af_unix.c | static int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 208 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 214 | net/unix/af_unix.c | static int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen) |
sock | 216 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 222 | net/unix/af_unix.c | static int unix_listen(struct socket *sock, int backlog) |
sock | 224 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 232 | net/unix/af_unix.c | static void def_callback1(struct sock *sk) |
sock | 238 | net/unix/af_unix.c | static void def_callback2(struct sock *sk, int len) |
sock | 247 | net/unix/af_unix.c | static void def_callback3(struct sock *sk) |
sock | 256 | net/unix/af_unix.c | static int unix_create(struct socket *sock, int protocol) |
sock | 265 | net/unix/af_unix.c | sk->type=sock->type; |
sock | 266 | net/unix/af_unix.c | switch(sock->type) |
sock | 310 | net/unix/af_unix.c | sk->socket=sock; |
sock | 311 | net/unix/af_unix.c | sock->data=(void *)sk; |
sock | 312 | net/unix/af_unix.c | sk->sleep=sock->wait; |
sock | 323 | net/unix/af_unix.c | static int unix_release(struct socket *sock, struct socket *peer) |
sock | 325 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 376 | net/unix/af_unix.c | static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) |
sock | 379 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 420 | net/unix/af_unix.c | static int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) |
sock | 422 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 430 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED) |
sock | 432 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 435 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE) |
sock | 437 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 440 | net/unix/af_unix.c | if(sock->state==SS_CONNECTING) |
sock | 454 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 457 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 464 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 470 | net/unix/af_unix.c | if(sock->state==SS_UNCONNECTED) |
sock | 494 | net/unix/af_unix.c | sock->state=SS_CONNECTING; |
sock | 526 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 535 | net/unix/af_unix.c | sock->state=SS_CONNECTED; |
sock | 570 | net/unix/af_unix.c | static int unix_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 572 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 631 | net/unix/af_unix.c | static int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer) |
sock | 633 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 654 | net/unix/af_unix.c | static int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags) |
sock | 656 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 678 | net/unix/af_unix.c | if(sock->type==SOCK_STREAM) |
sock | 704 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 714 | net/unix/af_unix.c | if(size > 4000 && sock->type!=SOCK_DGRAM) |
sock | 745 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM && other->dead) |
sock | 749 | net/unix/af_unix.c | sock->state=SS_UNCONNECTED; |
sock | 779 | 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 | 781 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 886 | net/unix/af_unix.c | if(sock->type==SOCK_DGRAM) |
sock | 897 | net/unix/af_unix.c | static int unix_shutdown(struct socket *sock, int mode) |
sock | 899 | net/unix/af_unix.c | unix_socket *sk=(unix_socket *)sock->data; |
sock | 926 | net/unix/af_unix.c | static int unix_select(struct socket *sock, int sel_type, select_table *wait) |
sock | 928 | net/unix/af_unix.c | return datagram_select(sock->data,sel_type,wait); |
sock | 931 | net/unix/af_unix.c | static int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 933 | net/unix/af_unix.c | unix_socket *sk=sock->data; |
sock | 1014 | net/unix/af_unix.c | static int unix_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags, |
sock | 1028 | net/unix/af_unix.c | return unix_recvmsg(sock,&msg,size,noblock,flags,addr_len); |
sock | 1031 | net/unix/af_unix.c | static int unix_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1033 | net/unix/af_unix.c | return unix_recvfrom(sock,ubuf,size,noblock,0,NULL,NULL); |
sock | 1036 | net/unix/af_unix.c | static int unix_recv(struct socket *sock, void *ubuf, int size, int noblock, unsigned int flags) |
sock | 1038 | net/unix/af_unix.c | return unix_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1041 | net/unix/af_unix.c | static int unix_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags, |
sock | 1053 | net/unix/af_unix.c | return unix_sendmsg(sock,&msg,size,noblock,flags); |
sock | 1056 | net/unix/af_unix.c | static int unix_write(struct socket *sock, const char *ubuf, int size, int noblock) |
sock | 1058 | net/unix/af_unix.c | return unix_sendto(sock,ubuf,size,noblock, 0, NULL, 0); |
sock | 1061 | net/unix/af_unix.c | static int unix_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned int flags) |
sock | 1063 | net/unix/af_unix.c | return unix_sendto(sock,ubuf,size,noblock, flags, NULL, 0); |