Commit 0f43c139 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] named struct initialisers.

parent c7d7d267
...@@ -668,39 +668,39 @@ static int atm_tc_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -668,39 +668,39 @@ static int atm_tc_dump(struct Qdisc *sch, struct sk_buff *skb)
static struct Qdisc_class_ops atm_class_ops = static struct Qdisc_class_ops atm_class_ops =
{ {
atm_tc_graft, /* graft */ .graft = atm_tc_graft,
atm_tc_leaf, /* leaf */ .leaf = atm_tc_leaf,
atm_tc_get, /* get */ .get = atm_tc_get,
atm_tc_put, /* put */ .put = atm_tc_put,
atm_tc_change, /* change */ .change = atm_tc_change,
atm_tc_delete, /* delete */ .delete = atm_tc_delete,
atm_tc_walk, /* walk */ .walk = atm_tc_walk,
atm_tc_find_tcf, /* tcf_chain */ .tcf_chain = atm_tc_find_tcf,
atm_tc_bind_filter, /* bind_tcf */ .bind_tcf = atm_tc_bind_filter,
atm_tc_put, /* unbind_tcf */ .unbind_tcf = atm_tc_put,
atm_tc_dump_class, /* dump */ .dump = atm_tc_dump_class,
}; };
struct Qdisc_ops atm_qdisc_ops = struct Qdisc_ops atm_qdisc_ops =
{ {
NULL, /* next */ .next = NULL,
&atm_class_ops, /* cl_ops */ .cl_ops = &atm_class_ops,
"atm", .id = "atm",
sizeof(struct atm_qdisc_data), .priv_size = sizeof(struct atm_qdisc_data),
atm_tc_enqueue, /* enqueue */ .enqueue = atm_tc_enqueue,
atm_tc_dequeue, /* dequeue */ .dequeue = atm_tc_dequeue,
atm_tc_requeue, /* requeue */ .requeue = atm_tc_requeue,
atm_tc_drop, /* drop */ .drop = atm_tc_drop,
atm_tc_init, /* init */ .init = atm_tc_init,
atm_tc_reset, /* reset */ .reset = atm_tc_reset,
atm_tc_destroy, /* destroy */ .destroy = atm_tc_destroy,
NULL, /* change */ .change = NULL,
atm_tc_dump /* dump */ .dump = atm_tc_dump
}; };
......
...@@ -2066,39 +2066,39 @@ static void cbq_walk(struct Qdisc *sch, struct qdisc_walker *arg) ...@@ -2066,39 +2066,39 @@ static void cbq_walk(struct Qdisc *sch, struct qdisc_walker *arg)
static struct Qdisc_class_ops cbq_class_ops = static struct Qdisc_class_ops cbq_class_ops =
{ {
cbq_graft, .graft = cbq_graft,
cbq_leaf, .leaf = cbq_leaf,
cbq_get, .get = cbq_get,
cbq_put, .put = cbq_put,
cbq_change_class, .change = cbq_change_class,
cbq_delete, .delete = cbq_delete,
cbq_walk, .walk = cbq_walk,
cbq_find_tcf, .tcf_chain = cbq_find_tcf,
cbq_bind_filter, .bind_tcf = cbq_bind_filter,
cbq_unbind_filter, .unbind_tcf = cbq_unbind_filter,
cbq_dump_class, .dump = cbq_dump_class,
}; };
struct Qdisc_ops cbq_qdisc_ops = struct Qdisc_ops cbq_qdisc_ops =
{ {
NULL, .next = NULL,
&cbq_class_ops, .cl_ops = &cbq_class_ops,
"cbq", .id = "cbq",
sizeof(struct cbq_sched_data), .priv_size = sizeof(struct cbq_sched_data),
cbq_enqueue, .enqueue = cbq_enqueue,
cbq_dequeue, .dequeue = cbq_dequeue,
cbq_requeue, .requeue = cbq_requeue,
cbq_drop, .drop = cbq_drop,
cbq_init, .init = cbq_init,
cbq_reset, .reset = cbq_reset,
cbq_destroy, .destroy = cbq_destroy,
NULL /* cbq_change */, .change = NULL,
cbq_dump, .dump = cbq_dump,
}; };
#ifdef MODULE #ifdef MODULE
......
...@@ -1012,40 +1012,40 @@ static struct tcf_proto ** csz_find_tcf(struct Qdisc *sch, unsigned long cl) ...@@ -1012,40 +1012,40 @@ static struct tcf_proto ** csz_find_tcf(struct Qdisc *sch, unsigned long cl)
struct Qdisc_class_ops csz_class_ops = struct Qdisc_class_ops csz_class_ops =
{ {
csz_graft, .graft = csz_graft,
csz_leaf, .leaf = csz_leaf,
csz_get, .get = csz_get,
csz_put, .put = csz_put,
csz_change, .change = csz_change,
csz_delete, .delete = csz_delete,
csz_walk, .walk = csz_walk,
csz_find_tcf, .tcf_chain = csz_find_tcf,
csz_bind, .bind_tcf = csz_bind,
csz_put, .unbind_tcf = csz_put,
csz_dump_class, .dump = csz_dump_class,
}; };
struct Qdisc_ops csz_qdisc_ops = struct Qdisc_ops csz_qdisc_ops =
{ {
NULL, .next = NULL,
&csz_class_ops, .cl_ops = &csz_class_ops,
"csz", .id = "csz",
sizeof(struct csz_sched_data), .priv_size = sizeof(struct csz_sched_data),
csz_enqueue, .enqueue = csz_enqueue,
csz_dequeue, .dequeue = csz_dequeue,
NULL, .requeue = NULL,
NULL, .drop = NULL,
csz_init, .init = csz_init,
csz_reset, .reset = csz_reset,
csz_destroy, .destroy = csz_destroy,
NULL /* csz_change */, .change = NULL,
csz_dump, .dump = csz_dump,
}; };
......
...@@ -434,39 +434,39 @@ static int dsmark_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -434,39 +434,39 @@ static int dsmark_dump(struct Qdisc *sch, struct sk_buff *skb)
static struct Qdisc_class_ops dsmark_class_ops = static struct Qdisc_class_ops dsmark_class_ops =
{ {
dsmark_graft, /* graft */ .graft = dsmark_graft,
dsmark_leaf, /* leaf */ .leaf = dsmark_leaf,
dsmark_get, /* get */ .get = dsmark_get,
dsmark_put, /* put */ .put = dsmark_put,
dsmark_change, /* change */ .change = dsmark_change,
dsmark_delete, /* delete */ .delete = dsmark_delete,
dsmark_walk, /* walk */ .walk = dsmark_walk,
dsmark_find_tcf, /* tcf_chain */ .tcf_chain = dsmark_find_tcf,
dsmark_bind_filter, /* bind_tcf */ .bind_tcf = dsmark_bind_filter,
dsmark_put, /* unbind_tcf */ .unbind_tcf = dsmark_put,
dsmark_dump_class, /* dump */ .dump = dsmark_dump_class,
}; };
struct Qdisc_ops dsmark_qdisc_ops = struct Qdisc_ops dsmark_qdisc_ops =
{ {
NULL, /* next */ .next = NULL,
&dsmark_class_ops, /* cl_ops */ .cl_ops = &dsmark_class_ops,
"dsmark", .id = "dsmark",
sizeof(struct dsmark_qdisc_data), .priv_size = sizeof(struct dsmark_qdisc_data),
dsmark_enqueue, /* enqueue */ .enqueue = dsmark_enqueue,
dsmark_dequeue, /* dequeue */ .dequeue = dsmark_dequeue,
dsmark_requeue, /* requeue */ .requeue = dsmark_requeue,
dsmark_drop, /* drop */ .drop = dsmark_drop,
dsmark_init, /* init */ .init = dsmark_init,
dsmark_reset, /* reset */ .reset = dsmark_reset,
dsmark_destroy, /* destroy */ .destroy = dsmark_destroy,
NULL, /* change */ .change = NULL,
dsmark_dump /* dump */ .dump = dsmark_dump
}; };
#ifdef MODULE #ifdef MODULE
......
...@@ -170,39 +170,40 @@ static int fifo_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -170,39 +170,40 @@ static int fifo_dump(struct Qdisc *sch, struct sk_buff *skb)
struct Qdisc_ops pfifo_qdisc_ops = struct Qdisc_ops pfifo_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"pfifo", .id = "pfifo",
sizeof(struct fifo_sched_data), .priv_size = sizeof(struct fifo_sched_data),
pfifo_enqueue, .enqueue = pfifo_enqueue,
pfifo_dequeue, .dequeue = pfifo_dequeue,
pfifo_requeue, .requeue = pfifo_requeue,
fifo_drop, .drop = fifo_drop,
fifo_init, .init = fifo_init,
fifo_reset, .reset = fifo_reset,
NULL, .destroy = NULL,
fifo_init, .change = fifo_init,
fifo_dump, .dump = fifo_dump,
}; };
struct Qdisc_ops bfifo_qdisc_ops = struct Qdisc_ops bfifo_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"bfifo", .id = "bfifo",
sizeof(struct fifo_sched_data), .priv_size = sizeof(struct fifo_sched_data),
bfifo_enqueue, .enqueue = bfifo_enqueue,
bfifo_dequeue, .dequeue = bfifo_dequeue,
bfifo_requeue, .requeue = bfifo_requeue,
fifo_drop, .drop = fifo_drop,
fifo_init, .init = fifo_init,
fifo_reset, .reset = fifo_reset,
NULL, .destroy = NULL,
fifo_init, .change = fifo_init,
fifo_dump,
.dump = fifo_dump,
}; };
...@@ -224,49 +224,48 @@ noop_requeue(struct sk_buff *skb, struct Qdisc* qdisc) ...@@ -224,49 +224,48 @@ noop_requeue(struct sk_buff *skb, struct Qdisc* qdisc)
struct Qdisc_ops noop_qdisc_ops = struct Qdisc_ops noop_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"noop", .id = "noop",
0, .priv_size = 0,
noop_enqueue, .enqueue = noop_enqueue,
noop_dequeue, .dequeue = noop_dequeue,
noop_requeue, .requeue = noop_requeue,
}; };
struct Qdisc noop_qdisc = struct Qdisc noop_qdisc =
{ {
noop_enqueue, .enqueue = noop_enqueue,
noop_dequeue, .dequeue = noop_dequeue,
TCQ_F_BUILTIN, .flags = TCQ_F_BUILTIN,
&noop_qdisc_ops, .ops = &noop_qdisc_ops,
}; };
struct Qdisc_ops noqueue_qdisc_ops = struct Qdisc_ops noqueue_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"noqueue", .id = "noqueue",
0, .priv_size = 0,
noop_enqueue, .enqueue = noop_enqueue,
noop_dequeue, .dequeue = noop_dequeue,
noop_requeue, .requeue = noop_requeue,
}; };
struct Qdisc noqueue_qdisc = struct Qdisc noqueue_qdisc =
{ {
NULL, .enqueue = NULL,
noop_dequeue, .dequeue = noop_dequeue,
TCQ_F_BUILTIN, .flags = TCQ_F_BUILTIN,
&noqueue_qdisc_ops, .ops = &noqueue_qdisc_ops,
}; };
static const u8 prio2band[TC_PRIO_MAX+1] = static const u8 prio2band[TC_PRIO_MAX+1] =
{ 1, 2, 2, 2, 1, 2, 0, 0 , 1, 1, 1, 1, 1, 1, 1, 1 }; { 1, 2, 2, 2, 1, 2, 0, 0 , 1, 1, 1, 1, 1, 1, 1, 1 };
/* 3-band FIFO queue: old style, but should be a bit faster than /* 3-band FIFO queue: old style, but should be a bit faster than
generic prio+fifo combination. generic prio+fifo combination.
...@@ -346,18 +345,17 @@ static int pfifo_fast_init(struct Qdisc *qdisc, struct rtattr *opt) ...@@ -346,18 +345,17 @@ static int pfifo_fast_init(struct Qdisc *qdisc, struct rtattr *opt)
static struct Qdisc_ops pfifo_fast_ops = static struct Qdisc_ops pfifo_fast_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"pfifo_fast", .id = "pfifo_fast",
3 * sizeof(struct sk_buff_head), .priv_size = 3 * sizeof(struct sk_buff_head),
pfifo_fast_enqueue, .enqueue = pfifo_fast_enqueue,
pfifo_fast_dequeue, .dequeue = pfifo_fast_dequeue,
pfifo_fast_requeue, .requeue = pfifo_fast_requeue,
NULL,
.init = pfifo_fast_init,
pfifo_fast_init, .reset = pfifo_fast_reset,
pfifo_fast_reset,
}; };
struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops) struct Qdisc * qdisc_create_dflt(struct net_device *dev, struct Qdisc_ops *ops)
......
...@@ -603,19 +603,22 @@ static void gred_destroy(struct Qdisc *sch) ...@@ -603,19 +603,22 @@ static void gred_destroy(struct Qdisc *sch)
struct Qdisc_ops gred_qdisc_ops = struct Qdisc_ops gred_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"gred", .id = "gred",
sizeof(struct gred_sched), .priv_size = sizeof(struct gred_sched),
gred_enqueue,
gred_dequeue, .enqueue = gred_enqueue,
gred_requeue, .dequeue = gred_dequeue,
gred_drop, .requeue = gred_requeue,
gred_init, .drop = gred_drop,
gred_reset,
gred_destroy, .init = gred_init,
gred_change, /* change */ .reset = gred_reset,
gred_dump, .destroy = gred_destroy,
.change = gred_change,
.dump = gred_dump,
}; };
......
...@@ -326,39 +326,39 @@ static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -326,39 +326,39 @@ static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb)
static struct Qdisc_class_ops ingress_class_ops = static struct Qdisc_class_ops ingress_class_ops =
{ {
ingress_graft, /* graft */ .graft = ingress_graft,
ingress_leaf, /* leaf */ .leaf = ingress_leaf,
ingress_get, /* get */ .get = ingress_get,
ingress_put, /* put */ .put = ingress_put,
ingress_change, /* change */ .change = ingress_change,
NULL, /* delete */ .delete = NULL,
ingress_walk, /* walk */ .walk = ingress_walk,
ingress_find_tcf, /* tcf_chain */ .tcf_chain = ingress_find_tcf,
ingress_bind_filter, /* bind_tcf */ .bind_tcf = ingress_bind_filter,
ingress_put, /* unbind_tcf */ .unbind_tcf = ingress_put,
NULL, /* dump */ .dump = NULL,
}; };
struct Qdisc_ops ingress_qdisc_ops = struct Qdisc_ops ingress_qdisc_ops =
{ {
NULL, /* next */ .next = NULL,
&ingress_class_ops, /* cl_ops */ .cl_ops = &ingress_class_ops,
"ingress", .id = "ingress",
sizeof(struct ingress_qdisc_data), .priv_size = sizeof(struct ingress_qdisc_data),
ingress_enqueue, /* enqueue */ .enqueue = ingress_enqueue,
ingress_dequeue, /* dequeue */ .dequeue = ingress_dequeue,
ingress_requeue, /* requeue */ .requeue = ingress_requeue,
ingress_drop, /* drop */ .drop = ingress_drop,
ingress_init, /* init */ .init = ingress_init,
ingress_reset, /* reset */ .reset = ingress_reset,
ingress_destroy, /* destroy */ .destroy = ingress_destroy,
NULL, /* change */ .change = NULL,
ingress_dump, /* dump */ .dump = ingress_dump,
}; };
......
...@@ -365,40 +365,40 @@ static struct tcf_proto ** prio_find_tcf(struct Qdisc *sch, unsigned long cl) ...@@ -365,40 +365,40 @@ static struct tcf_proto ** prio_find_tcf(struct Qdisc *sch, unsigned long cl)
static struct Qdisc_class_ops prio_class_ops = static struct Qdisc_class_ops prio_class_ops =
{ {
prio_graft, .graft = prio_graft,
prio_leaf, .leaf = prio_leaf,
prio_get, .get = prio_get,
prio_put, .put = prio_put,
prio_change, .change = prio_change,
prio_delete, .delete = prio_delete,
prio_walk, .walk = prio_walk,
prio_find_tcf, .tcf_chain = prio_find_tcf,
prio_bind, .bind_tcf = prio_bind,
prio_put, .unbind_tcf = prio_put,
prio_dump_class, .dump = prio_dump_class,
}; };
struct Qdisc_ops prio_qdisc_ops = struct Qdisc_ops prio_qdisc_ops =
{ {
NULL, next: NULL,
&prio_class_ops, cl_ops: &prio_class_ops,
"prio", id: "prio",
sizeof(struct prio_sched_data), priv_size: sizeof(struct prio_sched_data),
prio_enqueue, enqueue: prio_enqueue,
prio_dequeue, dequeue: prio_dequeue,
prio_requeue, requeue: prio_requeue,
prio_drop, drop: prio_drop,
prio_init, init: prio_init,
prio_reset, reset: prio_reset,
prio_destroy, destroy: prio_destroy,
prio_tune, change: prio_tune,
prio_dump, dump: prio_dump,
}; };
#ifdef MODULE #ifdef MODULE
......
...@@ -463,22 +463,22 @@ static void red_destroy(struct Qdisc *sch) ...@@ -463,22 +463,22 @@ static void red_destroy(struct Qdisc *sch)
struct Qdisc_ops red_qdisc_ops = struct Qdisc_ops red_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"red", .id = "red",
sizeof(struct red_sched_data), .priv_size = sizeof(struct red_sched_data),
red_enqueue, .enqueue = red_enqueue,
red_dequeue, .dequeue = red_dequeue,
red_requeue, .requeue = red_requeue,
red_drop, .drop = red_drop,
red_init, .init = red_init,
red_reset, .reset = red_reset,
red_destroy, .destroy = red_destroy,
red_change, .change = red_change,
red_dump, .dump = red_dump,
}; };
......
...@@ -470,22 +470,22 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -470,22 +470,22 @@ static int sfq_dump(struct Qdisc *sch, struct sk_buff *skb)
struct Qdisc_ops sfq_qdisc_ops = struct Qdisc_ops sfq_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"sfq", .id = "sfq",
sizeof(struct sfq_sched_data), .priv_size = sizeof(struct sfq_sched_data),
sfq_enqueue, .enqueue = sfq_enqueue,
sfq_dequeue, .dequeue = sfq_dequeue,
sfq_requeue, .requeue = sfq_requeue,
sfq_drop, .drop = sfq_drop,
sfq_init, .init = sfq_init,
sfq_reset, .reset = sfq_reset,
sfq_destroy, .destroy = sfq_destroy,
NULL, /* sfq_change */ .change = NULL,
sfq_dump, .dump = sfq_dump,
}; };
#ifdef MODULE #ifdef MODULE
......
...@@ -393,22 +393,22 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb) ...@@ -393,22 +393,22 @@ static int tbf_dump(struct Qdisc *sch, struct sk_buff *skb)
struct Qdisc_ops tbf_qdisc_ops = struct Qdisc_ops tbf_qdisc_ops =
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"tbf", .id = "tbf",
sizeof(struct tbf_sched_data), .priv_size = sizeof(struct tbf_sched_data),
tbf_enqueue, .enqueue = tbf_enqueue,
tbf_dequeue, .dequeue = tbf_dequeue,
tbf_requeue, .requeue = tbf_requeue,
tbf_drop, .drop = tbf_drop,
tbf_init, .init = tbf_init,
tbf_reset, .reset = tbf_reset,
tbf_destroy, .destroy = tbf_destroy,
tbf_change, .change = tbf_change,
tbf_dump, .dump = tbf_dump,
}; };
......
...@@ -440,20 +440,20 @@ static int teql_master_init(struct net_device *dev) ...@@ -440,20 +440,20 @@ static int teql_master_init(struct net_device *dev)
static struct teql_master the_master = { static struct teql_master the_master = {
{ {
NULL, .next = NULL,
NULL, .cl_ops = NULL,
"", .id = "",
sizeof(struct teql_sched_data), .priv_size = sizeof(struct teql_sched_data),
teql_enqueue, .enqueue = teql_enqueue,
teql_dequeue, .dequeue = teql_dequeue,
teql_requeue, .requeue = teql_requeue,
NULL, .drop = NULL,
teql_qdisc_init, .init = teql_qdisc_init,
teql_reset, .reset = teql_reset,
teql_destroy, .destroy = teql_destroy,
NULL, .dump = NULL,
},}; },};
......
...@@ -125,20 +125,20 @@ nul_validate(struct rpc_task *task, u32 *p) ...@@ -125,20 +125,20 @@ nul_validate(struct rpc_task *task, u32 *p)
} }
struct rpc_authops authnull_ops = { struct rpc_authops authnull_ops = {
RPC_AUTH_NULL, .au_flavor = RPC_AUTH_NULL,
#ifdef RPC_DEBUG #ifdef RPC_DEBUG
"NULL", .au_name = "NULL",
#endif #endif
nul_create, .create = nul_create,
nul_destroy, .destroy = nul_destroy,
nul_create_cred .crcreate = nul_create_cred,
}; };
static static
struct rpc_credops null_credops = { struct rpc_credops null_credops = {
nul_destroy_cred, .crdestroy = nul_destroy_cred,
nul_match, .crmatch = nul_match,
nul_marshal, .crmarshal = nul_marshal,
nul_refresh, .crrefresh = nul_refresh,
nul_validate .crvalidate = nul_validate,
}; };
...@@ -239,20 +239,20 @@ unx_validate(struct rpc_task *task, u32 *p) ...@@ -239,20 +239,20 @@ unx_validate(struct rpc_task *task, u32 *p)
} }
struct rpc_authops authunix_ops = { struct rpc_authops authunix_ops = {
RPC_AUTH_UNIX, .au_flavor = RPC_AUTH_UNIX,
#ifdef RPC_DEBUG #ifdef RPC_DEBUG
"UNIX", .au_name = "UNIX",
#endif #endif
unx_create, .create = unx_create,
unx_destroy, .destroy = unx_destroy,
unx_create_cred .crcreate = unx_create_cred,
}; };
static static
struct rpc_credops unix_credops = { struct rpc_credops unix_credops = {
unx_destroy_cred, .crdestroy = unx_destroy_cred,
unx_match, .crmatch = unx_match,
unx_marshal, .crmarshal = unx_marshal,
unx_refresh, .crrefresh = unx_refresh,
unx_validate .crvalidate = unx_validate,
}; };
...@@ -243,36 +243,50 @@ xdr_decode_bool(struct rpc_rqst *req, u32 *p, unsigned int *boolp) ...@@ -243,36 +243,50 @@ xdr_decode_bool(struct rpc_rqst *req, u32 *p, unsigned int *boolp)
} }
static struct rpc_procinfo pmap_procedures[4] = { static struct rpc_procinfo pmap_procedures[4] = {
{ "pmap_null", { .p_procname = "pmap_null",
(kxdrproc_t) xdr_error, .p_encode = (kxdrproc_t) xdr_error,
(kxdrproc_t) xdr_error, 0, 0 }, .p_decode = (kxdrproc_t) xdr_error,
{ "pmap_set", .p_bufsiz = 0,
(kxdrproc_t) xdr_encode_mapping, .p_count = 0,
(kxdrproc_t) xdr_decode_bool, 4, 1 }, },
{ "pmap_unset", { .p_procname = "pmap_set",
(kxdrproc_t) xdr_encode_mapping, .p_encode = (kxdrproc_t) xdr_encode_mapping,
(kxdrproc_t) xdr_decode_bool, 4, 1 }, .p_decode = (kxdrproc_t) xdr_decode_bool,
{ "pmap_get", .p_bufsiz = 4,
(kxdrproc_t) xdr_encode_mapping, .p_count = 1,
(kxdrproc_t) xdr_decode_port, 4, 1 }, },
{ .p_procname = "pmap_unset",
.p_encode = (kxdrproc_t) xdr_encode_mapping,
.p_decode = (kxdrproc_t) xdr_decode_bool,
.p_bufsiz = 4,
.p_count = 1,
},
{ .p_procname = "pmap_get",
.p_encode = (kxdrproc_t) xdr_encode_mapping,
.p_decode = (kxdrproc_t) xdr_decode_port,
.p_bufsiz = 4,
.p_count = 1,
},
}; };
static struct rpc_version pmap_version2 = { static struct rpc_version pmap_version2 = {
2, 4, pmap_procedures .number = 2,
.nrprocs = 4,
.procs = pmap_procedures
}; };
static struct rpc_version * pmap_version[] = { static struct rpc_version * pmap_version[] = {
NULL, NULL,
NULL, NULL,
&pmap_version2, &pmap_version2
}; };
static struct rpc_stat pmap_stats; static struct rpc_stat pmap_stats;
struct rpc_program pmap_program = { struct rpc_program pmap_program = {
"portmap", .name = "portmap",
RPC_PMAP_PROGRAM, .number = RPC_PMAP_PROGRAM,
sizeof(pmap_version)/sizeof(pmap_version[0]), .nrvers = sizeof(pmap_version)/sizeof(pmap_version[0]),
pmap_version, .version = pmap_version,
&pmap_stats, .stats = &pmap_stats,
}; };
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