Commit 4a077a9c 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 488d14ae 21bd4d21
...@@ -552,15 +552,9 @@ static struct atmdev_ops lecdev_ops = { ...@@ -552,15 +552,9 @@ static struct atmdev_ops lecdev_ops = {
}; };
static struct atm_dev lecatm_dev = { static struct atm_dev lecatm_dev = {
&lecdev_ops, .ops = &lecdev_ops,
NULL, /*PHY*/ .type = "lec",
"lec", /*type*/ .number = 999, /* dummy device number */
999, /*dummy device number*/
NULL,NULL, /*no VCCs*/
NULL,NULL, /*no data*/
0, /*no flags*/
NULL, /* no local address*/
{ 0 } /*no ESI or rest of the atm_dev struct things*/
}; };
/* /*
......
...@@ -539,9 +539,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi ...@@ -539,9 +539,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
} }
struct notifier_block rtnetlink_dev_notifier = { struct notifier_block rtnetlink_dev_notifier = {
rtnetlink_event, .notifier_call = rtnetlink_event,
NULL,
0
}; };
......
...@@ -170,16 +170,46 @@ static struct file_operations netlink_fops = { ...@@ -170,16 +170,46 @@ static struct file_operations netlink_fops = {
.release = netlink_release, .release = netlink_release,
}; };
static struct { char *name; int minor; } entries[] = { static struct {
{"route", 0}, char *name;
{"skip", 1}, int minor;
{"usersock", 2}, } entries[] = {
{"fwmonitor", 3}, {
{"tcpdiag", 4}, .name = "route",
{"arpd", 8}, .minor = 0,
{"route6", 11}, },
{"ip6_fw", 13}, {
{"dnrtmsg", 13}, .name = "skip",
.minor = 1,
},
{
.name = "usersock",
.minor = 2,
},
{
.name = "fwmonitor",
.minor = 3,
},
{
.name = "tcpdiag",
.minor = 4,
},
{
.name = "arpd",
.minor = 8,
},
{
.name = "route6",
.minor = 11,
},
{
.name = "ip6_fw",
.minor = 13,
},
{
.name = "dnrtmsg",
.minor = 13,
},
}; };
static void __init make_devfs_entries (const char *name, int minor) static void __init make_devfs_entries (const char *name, int minor)
......
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