Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
97a16c6b
Commit
97a16c6b
authored
Nov 08, 2012
by
Alessandro Rubini
Committed by
Federico Vaga
May 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TEMP: zio-sock.h
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
39a7786e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
zio-sock.h
include/linux/zio-sock.h
+5
-4
No files found.
include/linux/zio-sock.h
View file @
97a16c6b
...
@@ -8,10 +8,11 @@
...
@@ -8,10 +8,11 @@
#define PF_ZIO 28
#define PF_ZIO 28
#define AF_ZIO PF_ZIO
#define AF_ZIO PF_ZIO
#ifndef __KERNEL__
/* For user-space, define sockaddr_zio canonically */
#ifndef __KERNEL__
#include <sys/socket.h>
#include <sys/socket.h>
#include <stdint.h>
#include <stdint.h>
/* For user-space, define sockaddr_zio canonically, with sa_family_t */
struct
sockaddr_zio
{
struct
sockaddr_zio
{
sa_family_t
sa_family
;
sa_family_t
sa_family
;
uint8_t
host_type
;
/* 0 == local, 1 == MAC, ... */
uint8_t
host_type
;
/* 0 == local, 1 == MAC, ... */
...
@@ -28,14 +29,14 @@ struct sockaddr_zio {
...
@@ -28,14 +29,14 @@ struct sockaddr_zio {
#include <net/sock.h>
#include <net/sock.h>
#include <linux/zio-buffer.h>
#include <linux/zio-buffer.h>
#define ZN_DEFAULT_BUFFER_LENGTH 16
#define ZN_SOCK_CONNECTED 0x1
#define ZN_SOCK_CONNECTED 0x1
#define ZN_SOCK_BOUND 0x2
#define ZN_SOCK_BOUND 0x2
#define ZN_SOCK_SENDTO 0x4
#define ZN_SOCK_SENDTO 0x4
#define ZN_SOCK_DEV_BOUND 0x8
#define ZN_SOCK_DEV_BOUND 0x8
#define ZN_SOCK_CSET_BOUND 0x10
#define ZN_SOCK_CSET_BOUND 0x10
#define NET_ZIO_ALIGN 2
/* FIXME: this is only used in sock-syscall.c */
/* FIXME: this is only used in sock-syscall.c */
struct
zn_dest
{
struct
zn_dest
{
uint32_t
dev_id
;
uint32_t
dev_id
;
...
@@ -46,9 +47,9 @@ struct zn_dest {
...
@@ -46,9 +47,9 @@ struct zn_dest {
struct
zio_ti
*
ti
;
struct
zio_ti
*
ti
;
};
};
/* pfzio-specific socket instance */
struct
zn_sock
{
struct
zn_sock
{
struct
sock
sk
;
struct
sock
sk
;
/*Add protocol specific member here*/
struct
zn_dest
connected_chan
;
struct
zn_dest
connected_chan
;
struct
zn_dest
sendto_chan
;
struct
zn_dest
sendto_chan
;
struct
zio_block
*
active_block
;
struct
zio_block
*
active_block
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment