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
Kirill Smelkov
linux
Commits
1c320830
Commit
1c320830
authored
May 17, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o ipv6/exthdrs: use C99 struct init style.
parent
a8e533ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
net/ipv6/exthdrs.c
net/ipv6/exthdrs.c
+14
-12
No files found.
net/ipv6/exthdrs.c
View file @
1c320830
...
@@ -54,10 +54,9 @@
...
@@ -54,10 +54,9 @@
* It MUST NOT touch skb->h.
* It MUST NOT touch skb->h.
*/
*/
struct
tlvtype_proc
struct
tlvtype_proc
{
{
int
type
;
int
type
;
int
(
*
func
)
(
struct
sk_buff
*
,
int
offset
);
int
(
*
func
)
(
struct
sk_buff
*
skb
,
int
offset
);
};
};
/*********************
/*********************
...
@@ -175,8 +174,7 @@ static int ipv6_destopt_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
...
@@ -175,8 +174,7 @@ static int ipv6_destopt_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
return
-
1
;
return
-
1
;
}
}
static
struct
inet6_protocol
destopt_protocol
=
static
struct
inet6_protocol
destopt_protocol
=
{
{
.
handler
=
ipv6_destopt_rcv
,
.
handler
=
ipv6_destopt_rcv
,
.
flags
=
INET6_PROTO_NOPOLICY
,
.
flags
=
INET6_PROTO_NOPOLICY
,
};
};
...
@@ -199,8 +197,7 @@ static int ipv6_nodata_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
...
@@ -199,8 +197,7 @@ static int ipv6_nodata_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
return
0
;
return
0
;
}
}
static
struct
inet6_protocol
nodata_protocol
=
static
struct
inet6_protocol
nodata_protocol
=
{
{
.
handler
=
ipv6_nodata_rcv
,
.
handler
=
ipv6_nodata_rcv
,
.
flags
=
INET6_PROTO_NOPOLICY
,
.
flags
=
INET6_PROTO_NOPOLICY
,
};
};
...
@@ -328,8 +325,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
...
@@ -328,8 +325,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
return
-
1
;
return
-
1
;
}
}
static
struct
inet6_protocol
rthdr_protocol
=
static
struct
inet6_protocol
rthdr_protocol
=
{
{
.
handler
=
ipv6_rthdr_rcv
,
.
handler
=
ipv6_rthdr_rcv
,
.
flags
=
INET6_PROTO_NOPOLICY
,
.
flags
=
INET6_PROTO_NOPOLICY
,
};
};
...
@@ -462,9 +458,15 @@ static int ipv6_hop_jumbo(struct sk_buff *skb, int optoff)
...
@@ -462,9 +458,15 @@ static int ipv6_hop_jumbo(struct sk_buff *skb, int optoff)
}
}
static
struct
tlvtype_proc
tlvprochopopt_lst
[]
=
{
static
struct
tlvtype_proc
tlvprochopopt_lst
[]
=
{
{
IPV6_TLV_ROUTERALERT
,
ipv6_hop_ra
},
{
{
IPV6_TLV_JUMBO
,
ipv6_hop_jumbo
},
.
type
=
IPV6_TLV_ROUTERALERT
,
{
-
1
,
NULL
}
.
func
=
ipv6_hop_ra
,
},
{
.
type
=
IPV6_TLV_JUMBO
,
.
func
=
ipv6_hop_jumbo
,
},
{
-
1
,
}
};
};
int
ipv6_parse_hopopts
(
struct
sk_buff
*
skb
,
int
nhoff
)
int
ipv6_parse_hopopts
(
struct
sk_buff
*
skb
,
int
nhoff
)
...
...
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