Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e814657d
Commit
e814657d
authored
Apr 02, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/acme/net-2.5
into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents
1518d875
51fe3031
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
143 additions
and
147 deletions
+143
-147
drivers/net/pppox.c
drivers/net/pppox.c
+3
-7
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+3
-3
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+1
-1
net/bluetooth/l2cap.c
net/bluetooth/l2cap.c
+1
-1
net/bluetooth/sco.c
net/bluetooth/sco.c
+1
-1
net/ipv4/devinet.c
net/ipv4/devinet.c
+114
-114
net/ipv6/af_inet6.c
net/ipv6/af_inet6.c
+9
-9
net/irda/af_irda.c
net/irda/af_irda.c
+2
-2
net/netlink/af_netlink.c
net/netlink/af_netlink.c
+2
-2
net/rose/af_rose.c
net/rose/af_rose.c
+1
-1
net/wanrouter/af_wanpipe.c
net/wanrouter/af_wanpipe.c
+6
-6
No files found.
drivers/net/pppox.c
View file @
e814657d
...
...
@@ -127,17 +127,13 @@ static int pppox_create(struct socket *sock, int protocol)
}
static
struct
net_proto_family
pppox_proto_family
=
{
PF_PPPOX
,
pppox_create
.
family
=
PF_PPPOX
,
.
create
=
pppox_create
,
};
static
int
__init
pppox_init
(
void
)
{
int
err
=
0
;
err
=
sock_register
(
&
pppox_proto_family
);
return
err
;
return
sock_register
(
&
pppox_proto_family
);
}
static
void
__exit
pppox_exit
(
void
)
...
...
net/bluetooth/af_bluetooth.c
View file @
e814657d
...
...
@@ -320,9 +320,9 @@ int bt_sock_w4_connect(struct sock *sk, int flags)
return
err
;
}
struct
net_proto_family
bt_sock_family_ops
=
{
PF_BLUETOOTH
,
bt_sock_create
struct
net_proto_family
bt_sock_family_ops
=
{
.
family
=
PF_BLUETOOTH
,
.
create
=
bt_sock_create
,
};
extern
int
hci_sock_init
(
void
);
...
...
net/bluetooth/hci_sock.c
View file @
e814657d
...
...
@@ -633,7 +633,7 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
struct
net_proto_family
hci_sock_family_ops
=
{
.
family
=
PF_BLUETOOTH
,
.
create
=
hci_sock_create
.
create
=
hci_sock_create
,
};
struct
notifier_block
hci_sock_nblock
=
{
...
...
net/bluetooth/l2cap.c
View file @
e814657d
...
...
@@ -2103,7 +2103,7 @@ static struct proto_ops l2cap_sock_ops = {
static
struct
net_proto_family
l2cap_sock_family_ops
=
{
.
family
=
PF_BLUETOOTH
,
.
create
=
l2cap_sock_create
.
create
=
l2cap_sock_create
,
};
static
struct
hci_proto
l2cap_hci_proto
=
{
...
...
net/bluetooth/sco.c
View file @
e814657d
...
...
@@ -988,7 +988,7 @@ static struct proto_ops sco_sock_ops = {
static
struct
net_proto_family
sco_sock_family_ops
=
{
.
family
=
PF_BLUETOOTH
,
.
create
=
sco_sock_create
.
create
=
sco_sock_create
,
};
static
struct
hci_proto
sco_hci_proto
=
{
...
...
net/ipv4/devinet.c
View file @
e814657d
...
...
@@ -1131,166 +1131,166 @@ static struct devinet_sysctl_table {
}
devinet_sysctl
=
{
.
devinet_vars
=
{
{
.
ctl_name
=
NET_IPV4_CONF_FORWARDING
,
.
procname
=
"forwarding"
,
.
data
=
&
ipv4_devconf
.
forwarding
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
devinet_sysctl_forward
,
.
ctl_name
=
NET_IPV4_CONF_FORWARDING
,
.
procname
=
"forwarding"
,
.
data
=
&
ipv4_devconf
.
forwarding
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
devinet_sysctl_forward
,
},
{
.
ctl_name
=
NET_IPV4_CONF_MC_FORWARDING
,
.
procname
=
"mc_forwarding"
,
.
data
=
&
ipv4_devconf
.
mc_forwarding
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_MC_FORWARDING
,
.
procname
=
"mc_forwarding"
,
.
data
=
&
ipv4_devconf
.
mc_forwarding
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0444
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_ACCEPT_REDIRECTS
,
.
procname
=
"accept_redirects"
,
.
data
=
&
ipv4_devconf
.
accept_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_ACCEPT_REDIRECTS
,
.
procname
=
"accept_redirects"
,
.
data
=
&
ipv4_devconf
.
accept_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_SECURE_REDIRECTS
,
.
procname
=
"secure_redirects"
,
.
data
=
&
ipv4_devconf
.
secure_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_SECURE_REDIRECTS
,
.
procname
=
"secure_redirects"
,
.
data
=
&
ipv4_devconf
.
secure_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_SHARED_MEDIA
,
.
procname
=
"shared_media"
,
.
data
=
&
ipv4_devconf
.
shared_media
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_SHARED_MEDIA
,
.
procname
=
"shared_media"
,
.
data
=
&
ipv4_devconf
.
shared_media
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_RP_FILTER
,
.
procname
=
"rp_filter"
,
.
data
=
&
ipv4_devconf
.
rp_filter
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_RP_FILTER
,
.
procname
=
"rp_filter"
,
.
data
=
&
ipv4_devconf
.
rp_filter
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_SEND_REDIRECTS
,
.
procname
=
"send_redirects"
,
.
data
=
&
ipv4_devconf
.
send_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_SEND_REDIRECTS
,
.
procname
=
"send_redirects"
,
.
data
=
&
ipv4_devconf
.
send_redirects
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE
,
.
procname
=
"accept_source_route"
,
.
data
=
&
ipv4_devconf
.
accept_source_route
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE
,
.
procname
=
"accept_source_route"
,
.
data
=
&
ipv4_devconf
.
accept_source_route
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_PROXY_ARP
,
.
procname
=
"proxy_arp"
,
.
data
=
&
ipv4_devconf
.
proxy_arp
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_PROXY_ARP
,
.
procname
=
"proxy_arp"
,
.
data
=
&
ipv4_devconf
.
proxy_arp
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_MEDIUM_ID
,
.
procname
=
"medium_id"
,
.
data
=
&
ipv4_devconf
.
medium_id
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_MEDIUM_ID
,
.
procname
=
"medium_id"
,
.
data
=
&
ipv4_devconf
.
medium_id
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_BOOTP_RELAY
,
.
procname
=
"bootp_relay"
,
.
data
=
&
ipv4_devconf
.
bootp_relay
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_BOOTP_RELAY
,
.
procname
=
"bootp_relay"
,
.
data
=
&
ipv4_devconf
.
bootp_relay
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_LOG_MARTIANS
,
.
procname
=
"log_martians"
,
.
data
=
&
ipv4_devconf
.
log_martians
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_LOG_MARTIANS
,
.
procname
=
"log_martians"
,
.
data
=
&
ipv4_devconf
.
log_martians
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_TAG
,
.
procname
=
"tag"
,
.
data
=
&
ipv4_devconf
.
tag
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_TAG
,
.
procname
=
"tag"
,
.
data
=
&
ipv4_devconf
.
tag
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_ARPFILTER
,
.
procname
=
"arp_filter"
,
.
data
=
&
ipv4_devconf
.
arp_filter
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
.
ctl_name
=
NET_IPV4_CONF_ARPFILTER
,
.
procname
=
"arp_filter"
,
.
data
=
&
ipv4_devconf
.
arp_filter
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
proc_dointvec
,
},
{
.
ctl_name
=
NET_IPV4_CONF_NOXFRM
,
.
procname
=
"disable_xfrm"
,
.
data
=
&
ipv4_devconf
.
no_xfrm
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
ipv4_doint_and_flush
,
.
strategy
=
&
ipv4_doint_and_flush_strategy
,
.
ctl_name
=
NET_IPV4_CONF_NOXFRM
,
.
procname
=
"disable_xfrm"
,
.
data
=
&
ipv4_devconf
.
no_xfrm
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
ipv4_doint_and_flush
,
.
strategy
=
&
ipv4_doint_and_flush_strategy
,
},
{
.
ctl_name
=
NET_IPV4_CONF_NOPOLICY
,
.
procname
=
"disable_policy"
,
.
data
=
&
ipv4_devconf
.
no_policy
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
ipv4_doint_and_flush
,
.
strategy
=
&
ipv4_doint_and_flush_strategy
,
.
ctl_name
=
NET_IPV4_CONF_NOPOLICY
,
.
procname
=
"disable_policy"
,
.
data
=
&
ipv4_devconf
.
no_policy
,
.
maxlen
=
sizeof
(
int
),
.
mode
=
0644
,
.
proc_handler
=
&
ipv4_doint_and_flush
,
.
strategy
=
&
ipv4_doint_and_flush_strategy
,
},
},
.
devinet_dev
=
{
{
.
ctl_name
=
NET_PROTO_CONF_ALL
,
.
procname
=
"all"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_vars
,
.
ctl_name
=
NET_PROTO_CONF_ALL
,
.
procname
=
"all"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_vars
,
},
},
.
devinet_conf_dir
=
{
{
.
ctl_name
=
NET_IPV4_CONF
,
.
procname
=
"conf"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_dev
,
.
ctl_name
=
NET_IPV4_CONF
,
.
procname
=
"conf"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_dev
,
},
},
.
devinet_proto_dir
=
{
{
.
ctl_name
=
NET_IPV4
,
.
procname
=
"ipv4"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_conf_dir
,
.
ctl_name
=
NET_IPV4
,
.
procname
=
"ipv4"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_conf_dir
,
},
},
.
devinet_root_dir
=
{
{
.
ctl_name
=
CTL_NET
,
.
procname
=
"net"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_proto_dir
,
.
ctl_name
=
CTL_NET
,
.
procname
=
"net"
,
.
mode
=
0555
,
.
child
=
devinet_sysctl
.
devinet_proto_dir
,
},
},
};
...
...
net/ipv6/af_inet6.c
View file @
e814657d
...
...
@@ -536,8 +536,8 @@ struct proto_ops inet6_dgram_ops = {
};
struct
net_proto_family
inet6_family_ops
=
{
.
family
=
PF_INET6
,
.
create
=
inet6_create
,
.
family
=
PF_INET6
,
.
create
=
inet6_create
,
};
#ifdef MODULE
...
...
@@ -557,13 +557,13 @@ extern void ipv6_sysctl_unregister(void);
#endif
static
struct
inet_protosw
rawv6_protosw
=
{
.
type
=
SOCK_RAW
,
.
protocol
=
IPPROTO_IP
,
/* wild card */
.
prot
=
&
rawv6_prot
,
.
ops
=
&
inet6_dgram_ops
,
.
capability
=
CAP_NET_RAW
,
.
no_check
=
UDP_CSUM_DEFAULT
,
.
flags
=
INET_PROTOSW_REUSE
,
.
type
=
SOCK_RAW
,
.
protocol
=
IPPROTO_IP
,
/* wild card */
.
prot
=
&
rawv6_prot
,
.
ops
=
&
inet6_dgram_ops
,
.
capability
=
CAP_NET_RAW
,
.
no_check
=
UDP_CSUM_DEFAULT
,
.
flags
=
INET_PROTOSW_REUSE
,
};
#define INETSW6_ARRAY_LEN (sizeof(inetsw6_array) / sizeof(struct inet_protosw))
...
...
net/irda/af_irda.c
View file @
e814657d
...
...
@@ -2407,8 +2407,8 @@ static int irda_getsockopt(struct socket *sock, int level, int optname,
}
static
struct
net_proto_family
irda_family_ops
=
{
.
family
=
PF_IRDA
,
.
create
=
irda_create
,
.
family
=
PF_IRDA
,
.
create
=
irda_create
,
};
static
struct
proto_ops
SOCKOPS_WRAPPED
(
irda_stream_ops
)
=
{
...
...
net/netlink/af_netlink.c
View file @
e814657d
...
...
@@ -1050,8 +1050,8 @@ struct proto_ops netlink_ops = {
};
struct
net_proto_family
netlink_family_ops
=
{
.
family
=
PF_NETLINK
,
.
create
=
netlink_create
,
.
family
=
PF_NETLINK
,
.
create
=
netlink_create
,
};
static
int
__init
netlink_proto_init
(
void
)
...
...
net/rose/af_rose.c
View file @
e814657d
...
...
@@ -1434,7 +1434,7 @@ static struct proto_ops rose_proto_ops = {
.
family
=
PF_ROSE
,
.
release
=
rose_release
,
.
bind
=
rose_bind
,
.
bind
=
rose_bind
,
.
connect
=
rose_connect
,
.
socketpair
=
sock_no_socketpair
,
.
accept
=
rose_accept
,
...
...
net/wanrouter/af_wanpipe.c
View file @
e814657d
...
...
@@ -2561,13 +2561,13 @@ struct proto_ops wanpipe_ops = {
.
family
=
PF_WANPIPE
,
.
release
=
wanpipe_release
,
.
bind
=
wanpipe_bind
,
.
bind
=
wanpipe_bind
,
.
connect
=
wanpipe_connect
,
.
socketpair
=
sock_no_socketpair
,
.
accept
=
wanpipe_accept
,
.
getname
=
wanpipe_getname
,
.
poll
=
wanpipe_poll
,
.
ioctl
=
wanpipe_ioctl
,
.
poll
=
wanpipe_poll
,
.
ioctl
=
wanpipe_ioctl
,
.
listen
=
wanpipe_listen
,
.
shutdown
=
sock_no_shutdown
,
.
setsockopt
=
sock_no_setsockopt
,
...
...
@@ -2577,12 +2577,12 @@ struct proto_ops wanpipe_ops = {
};
static
struct
net_proto_family
wanpipe_family_ops
=
{
.
family
=
PF_WANPIPE
,
.
create
=
wanpipe_create
,
.
family
=
PF_WANPIPE
,
.
create
=
wanpipe_create
,
};
struct
notifier_block
wanpipe_netdev_notifier
=
{
.
notifier_call
=
wanpipe_notifier
,
.
notifier_call
=
wanpipe_notifier
,
};
...
...
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