net: constify struct inet6_protocol

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
Alexey Dobriyan
2009-09-14 12:22:28 +00:00
提交者 David S. Miller
父節點 32613090a9
當前提交 41135cc836
共有 17 個檔案被更改,包括 29 行新增33 行删除

查看文件

@@ -500,17 +500,17 @@ unknown_rh:
return -1;
}
static struct inet6_protocol rthdr_protocol = {
static const struct inet6_protocol rthdr_protocol = {
.handler = ipv6_rthdr_rcv,
.flags = INET6_PROTO_NOPOLICY | INET6_PROTO_GSO_EXTHDR,
};
static struct inet6_protocol destopt_protocol = {
static const struct inet6_protocol destopt_protocol = {
.handler = ipv6_destopt_rcv,
.flags = INET6_PROTO_NOPOLICY | INET6_PROTO_GSO_EXTHDR,
};
static struct inet6_protocol nodata_protocol = {
static const struct inet6_protocol nodata_protocol = {
.handler = dst_discard,
.flags = INET6_PROTO_NOPOLICY,
};