Commit e814657d authored by David S. Miller's avatar David S. Miller

Merge bk://kernel.bkbits.net/acme/net-2.5

into nuts.ninka.net:/home/davem/src/BK/net-2.5
parents 1518d875 51fe3031
...@@ -127,17 +127,13 @@ static int pppox_create(struct socket *sock, int protocol) ...@@ -127,17 +127,13 @@ static int pppox_create(struct socket *sock, int protocol)
} }
static struct net_proto_family pppox_proto_family = { static struct net_proto_family pppox_proto_family = {
PF_PPPOX, .family = PF_PPPOX,
pppox_create .create = pppox_create,
}; };
static int __init pppox_init(void) static int __init pppox_init(void)
{ {
int err = 0; return sock_register(&pppox_proto_family);
err = sock_register(&pppox_proto_family);
return err;
} }
static void __exit pppox_exit(void) static void __exit pppox_exit(void)
......
...@@ -320,9 +320,9 @@ int bt_sock_w4_connect(struct sock *sk, int flags) ...@@ -320,9 +320,9 @@ int bt_sock_w4_connect(struct sock *sk, int flags)
return err; return err;
} }
struct net_proto_family bt_sock_family_ops = struct net_proto_family bt_sock_family_ops = {
{ .family = PF_BLUETOOTH,
PF_BLUETOOTH, bt_sock_create .create = bt_sock_create,
}; };
extern int hci_sock_init(void); extern int hci_sock_init(void);
......
...@@ -633,7 +633,7 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event, ...@@ -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 = { struct net_proto_family hci_sock_family_ops = {
.family = PF_BLUETOOTH, .family = PF_BLUETOOTH,
.create = hci_sock_create .create = hci_sock_create,
}; };
struct notifier_block hci_sock_nblock = { struct notifier_block hci_sock_nblock = {
......
...@@ -2103,7 +2103,7 @@ static struct proto_ops l2cap_sock_ops = { ...@@ -2103,7 +2103,7 @@ static struct proto_ops l2cap_sock_ops = {
static struct net_proto_family l2cap_sock_family_ops = { static struct net_proto_family l2cap_sock_family_ops = {
.family = PF_BLUETOOTH, .family = PF_BLUETOOTH,
.create = l2cap_sock_create .create = l2cap_sock_create,
}; };
static struct hci_proto l2cap_hci_proto = { static struct hci_proto l2cap_hci_proto = {
......
...@@ -988,7 +988,7 @@ static struct proto_ops sco_sock_ops = { ...@@ -988,7 +988,7 @@ static struct proto_ops sco_sock_ops = {
static struct net_proto_family sco_sock_family_ops = { static struct net_proto_family sco_sock_family_ops = {
.family = PF_BLUETOOTH, .family = PF_BLUETOOTH,
.create = sco_sock_create .create = sco_sock_create,
}; };
static struct hci_proto sco_hci_proto = { static struct hci_proto sco_hci_proto = {
......
...@@ -1136,7 +1136,7 @@ static struct devinet_sysctl_table { ...@@ -1136,7 +1136,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.forwarding, .data = &ipv4_devconf.forwarding,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&devinet_sysctl_forward, .proc_handler = &devinet_sysctl_forward,
}, },
{ {
.ctl_name = NET_IPV4_CONF_MC_FORWARDING, .ctl_name = NET_IPV4_CONF_MC_FORWARDING,
...@@ -1144,7 +1144,7 @@ static struct devinet_sysctl_table { ...@@ -1144,7 +1144,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.mc_forwarding, .data = &ipv4_devconf.mc_forwarding,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0444, .mode = 0444,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_ACCEPT_REDIRECTS, .ctl_name = NET_IPV4_CONF_ACCEPT_REDIRECTS,
...@@ -1152,7 +1152,7 @@ static struct devinet_sysctl_table { ...@@ -1152,7 +1152,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.accept_redirects, .data = &ipv4_devconf.accept_redirects,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_SECURE_REDIRECTS, .ctl_name = NET_IPV4_CONF_SECURE_REDIRECTS,
...@@ -1160,7 +1160,7 @@ static struct devinet_sysctl_table { ...@@ -1160,7 +1160,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.secure_redirects, .data = &ipv4_devconf.secure_redirects,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_SHARED_MEDIA, .ctl_name = NET_IPV4_CONF_SHARED_MEDIA,
...@@ -1168,7 +1168,7 @@ static struct devinet_sysctl_table { ...@@ -1168,7 +1168,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.shared_media, .data = &ipv4_devconf.shared_media,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_RP_FILTER, .ctl_name = NET_IPV4_CONF_RP_FILTER,
...@@ -1176,7 +1176,7 @@ static struct devinet_sysctl_table { ...@@ -1176,7 +1176,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.rp_filter, .data = &ipv4_devconf.rp_filter,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_SEND_REDIRECTS, .ctl_name = NET_IPV4_CONF_SEND_REDIRECTS,
...@@ -1184,7 +1184,7 @@ static struct devinet_sysctl_table { ...@@ -1184,7 +1184,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.send_redirects, .data = &ipv4_devconf.send_redirects,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE, .ctl_name = NET_IPV4_CONF_ACCEPT_SOURCE_ROUTE,
...@@ -1192,7 +1192,7 @@ static struct devinet_sysctl_table { ...@@ -1192,7 +1192,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.accept_source_route, .data = &ipv4_devconf.accept_source_route,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_PROXY_ARP, .ctl_name = NET_IPV4_CONF_PROXY_ARP,
...@@ -1200,7 +1200,7 @@ static struct devinet_sysctl_table { ...@@ -1200,7 +1200,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.proxy_arp, .data = &ipv4_devconf.proxy_arp,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_MEDIUM_ID, .ctl_name = NET_IPV4_CONF_MEDIUM_ID,
...@@ -1208,7 +1208,7 @@ static struct devinet_sysctl_table { ...@@ -1208,7 +1208,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.medium_id, .data = &ipv4_devconf.medium_id,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_BOOTP_RELAY, .ctl_name = NET_IPV4_CONF_BOOTP_RELAY,
...@@ -1216,7 +1216,7 @@ static struct devinet_sysctl_table { ...@@ -1216,7 +1216,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.bootp_relay, .data = &ipv4_devconf.bootp_relay,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_LOG_MARTIANS, .ctl_name = NET_IPV4_CONF_LOG_MARTIANS,
...@@ -1224,7 +1224,7 @@ static struct devinet_sysctl_table { ...@@ -1224,7 +1224,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.log_martians, .data = &ipv4_devconf.log_martians,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_TAG, .ctl_name = NET_IPV4_CONF_TAG,
...@@ -1232,7 +1232,7 @@ static struct devinet_sysctl_table { ...@@ -1232,7 +1232,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.tag, .data = &ipv4_devconf.tag,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_ARPFILTER, .ctl_name = NET_IPV4_CONF_ARPFILTER,
...@@ -1240,7 +1240,7 @@ static struct devinet_sysctl_table { ...@@ -1240,7 +1240,7 @@ static struct devinet_sysctl_table {
.data = &ipv4_devconf.arp_filter, .data = &ipv4_devconf.arp_filter,
.maxlen = sizeof(int), .maxlen = sizeof(int),
.mode = 0644, .mode = 0644,
.proc_handler =&proc_dointvec, .proc_handler = &proc_dointvec,
}, },
{ {
.ctl_name = NET_IPV4_CONF_NOXFRM, .ctl_name = NET_IPV4_CONF_NOXFRM,
......
...@@ -536,8 +536,8 @@ struct proto_ops inet6_dgram_ops = { ...@@ -536,8 +536,8 @@ struct proto_ops inet6_dgram_ops = {
}; };
struct net_proto_family inet6_family_ops = { struct net_proto_family inet6_family_ops = {
.family =PF_INET6, .family = PF_INET6,
.create =inet6_create, .create = inet6_create,
}; };
#ifdef MODULE #ifdef MODULE
...@@ -561,7 +561,7 @@ static struct inet_protosw rawv6_protosw = { ...@@ -561,7 +561,7 @@ static struct inet_protosw rawv6_protosw = {
.protocol = IPPROTO_IP, /* wild card */ .protocol = IPPROTO_IP, /* wild card */
.prot = &rawv6_prot, .prot = &rawv6_prot,
.ops = &inet6_dgram_ops, .ops = &inet6_dgram_ops,
.capability =CAP_NET_RAW, .capability = CAP_NET_RAW,
.no_check = UDP_CSUM_DEFAULT, .no_check = UDP_CSUM_DEFAULT,
.flags = INET_PROTOSW_REUSE, .flags = INET_PROTOSW_REUSE,
}; };
......
...@@ -2407,8 +2407,8 @@ static int irda_getsockopt(struct socket *sock, int level, int optname, ...@@ -2407,8 +2407,8 @@ static int irda_getsockopt(struct socket *sock, int level, int optname,
} }
static struct net_proto_family irda_family_ops = { static struct net_proto_family irda_family_ops = {
.family =PF_IRDA, .family = PF_IRDA,
.create =irda_create, .create = irda_create,
}; };
static struct proto_ops SOCKOPS_WRAPPED(irda_stream_ops) = { static struct proto_ops SOCKOPS_WRAPPED(irda_stream_ops) = {
......
...@@ -1050,8 +1050,8 @@ struct proto_ops netlink_ops = { ...@@ -1050,8 +1050,8 @@ struct proto_ops netlink_ops = {
}; };
struct net_proto_family netlink_family_ops = { struct net_proto_family netlink_family_ops = {
.family =PF_NETLINK, .family = PF_NETLINK,
.create =netlink_create, .create = netlink_create,
}; };
static int __init netlink_proto_init(void) static int __init netlink_proto_init(void)
......
...@@ -2577,12 +2577,12 @@ struct proto_ops wanpipe_ops = { ...@@ -2577,12 +2577,12 @@ struct proto_ops wanpipe_ops = {
}; };
static struct net_proto_family wanpipe_family_ops = { static struct net_proto_family wanpipe_family_ops = {
.family =PF_WANPIPE, .family = PF_WANPIPE,
.create =wanpipe_create, .create = wanpipe_create,
}; };
struct notifier_block wanpipe_netdev_notifier = { struct notifier_block wanpipe_netdev_notifier = {
.notifier_call =wanpipe_notifier, .notifier_call = wanpipe_notifier,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment