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
nexedi
linux
Commits
d9189b24
Commit
d9189b24
authored
Jan 15, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: mashirle@us.ibm.com|ChangeSet|20040115231022|51079
parent
6352cda2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
97 deletions
+0
-97
include/linux/rtnetlink.h
include/linux/rtnetlink.h
+0
-36
include/net/ndisc.h
include/net/ndisc.h
+0
-4
net/ipv6/addrconf.c
net/ipv6/addrconf.c
+0
-56
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+0
-1
No files found.
include/linux/rtnetlink.h
View file @
d9189b24
...
@@ -44,8 +44,6 @@
...
@@ -44,8 +44,6 @@
#define RTM_DELTFILTER (RTM_BASE+29)
#define RTM_DELTFILTER (RTM_BASE+29)
#define RTM_GETTFILTER (RTM_BASE+30)
#define RTM_GETTFILTER (RTM_BASE+30)
#define RTM_NEWRA (RTM_BASE+32)
#define RTM_NEWPREFIX (RTM_BASE+36)
#define RTM_NEWPREFIX (RTM_BASE+36)
#define RTM_GETPREFIX (RTM_BASE+38)
#define RTM_GETPREFIX (RTM_BASE+38)
...
@@ -445,38 +443,6 @@ struct rtgenmsg
...
@@ -445,38 +443,6 @@ struct rtgenmsg
unsigned
char
rtgen_family
;
unsigned
char
rtgen_family
;
};
};
/*****************************************************************
* Route Advertisement specific messages.
* ******/
/* struct iframsg
* passes router advertisement specific information
*/
struct
iframsg
{
unsigned
char
ifra_family
;
unsigned
ifra_flags
;
int
ifra_index
;
};
enum
{
IFRA_UNSPEC
,
IFRA_LMTU
,
IFRA_CACHEINFO
};
/* max_adver_interval, min_adver_interval should be gotten from user level */
struct
ifra_cacheinfo
{
__u32
hop_limit
;
__u32
lifetime
;
__u32
reachable_time
;
__u32
retrans_time
;
};
#define IFRA_MAX IFRA_CACHEINFO
/*****************************************************************
/*****************************************************************
* Link layer specific messages.
* Link layer specific messages.
****/
****/
...
@@ -692,8 +658,6 @@ enum
...
@@ -692,8 +658,6 @@ enum
#define RTMGRP_IPV6_PREFIX 0x20000
#define RTMGRP_IPV6_PREFIX 0x20000
#define RTMGRP_IPV6_IFRA 0x10000
/* End of information exported to user level */
/* End of information exported to user level */
#ifdef __KERNEL__
#ifdef __KERNEL__
...
...
include/net/ndisc.h
View file @
d9189b24
...
@@ -109,10 +109,6 @@ extern int ndisc_ifinfo_sysctl_change(ctl_table *ctl,
...
@@ -109,10 +109,6 @@ extern int ndisc_ifinfo_sysctl_change(ctl_table *ctl,
extern
void
inet6_ifinfo_notify
(
int
event
,
extern
void
inet6_ifinfo_notify
(
int
event
,
struct
inet6_dev
*
idev
);
struct
inet6_dev
*
idev
);
extern
void
inet6_ifra_notify
(
int
event
,
struct
inet6_dev
*
idev
,
struct
ra_msg
*
ra_msg
);
static
inline
struct
neighbour
*
ndisc_get_neigh
(
struct
net_device
*
dev
,
struct
in6_addr
*
addr
)
static
inline
struct
neighbour
*
ndisc_get_neigh
(
struct
net_device
*
dev
,
struct
in6_addr
*
addr
)
{
{
...
...
net/ipv6/addrconf.c
View file @
d9189b24
...
@@ -2924,62 +2924,6 @@ static void inet6_prefix_notify(int event, struct inet6_dev *idev,
...
@@ -2924,62 +2924,6 @@ static void inet6_prefix_notify(int event, struct inet6_dev *idev,
netlink_broadcast
(
rtnl
,
skb
,
0
,
RTMGRP_IPV6_PREFIX
,
GFP_ATOMIC
);
netlink_broadcast
(
rtnl
,
skb
,
0
,
RTMGRP_IPV6_PREFIX
,
GFP_ATOMIC
);
}
}
static
int
inet6_fill_ifra
(
struct
sk_buff
*
skb
,
struct
inet6_dev
*
idev
,
struct
ra_msg
*
ra_msg
,
u32
pid
,
u32
seq
,
int
event
)
{
struct
iframsg
*
ifra
;
struct
nlmsghdr
*
nlh
;
unsigned
char
*
b
=
skb
->
tail
;
__u32
mtu
=
idev
->
dev
->
mtu
;
struct
ifra_cacheinfo
ci
;
nlh
=
NLMSG_PUT
(
skb
,
pid
,
seq
,
event
,
sizeof
(
*
ifra
));
if
(
pid
)
nlh
->
nlmsg_flags
|=
NLM_F_MULTI
;
ifra
=
NLMSG_DATA
(
nlh
);
ifra
->
ifra_family
=
AF_INET6
;
ifra
->
ifra_index
=
idev
->
dev
->
ifindex
;
ifra
->
ifra_flags
=
idev
->
if_flags
;
RTA_PUT
(
skb
,
IFRA_LMTU
,
sizeof
(
mtu
),
&
mtu
);
ci
.
hop_limit
=
ra_msg
->
icmph
.
icmp6_hop_limit
;
ci
.
lifetime
=
ntohs
(
ra_msg
->
icmph
.
icmp6_rt_lifetime
);
ci
.
reachable_time
=
ntohl
(
ra_msg
->
reachable_time
);
ci
.
retrans_time
=
ntohl
(
ra_msg
->
retrans_timer
);
RTA_PUT
(
skb
,
IFRA_CACHEINFO
,
sizeof
(
ci
),
&
ci
);
nlh
->
nlmsg_len
=
skb
->
tail
-
b
;
return
skb
->
len
;
nlmsg_failure:
rtattr_failure:
skb_trim
(
skb
,
b
-
skb
->
data
);
return
-
1
;
}
void
inet6_ifra_notify
(
int
event
,
struct
inet6_dev
*
idev
,
struct
ra_msg
*
ra_msg
)
{
struct
sk_buff
*
skb
;
int
size
=
NLMSG_SPACE
(
sizeof
(
struct
iframsg
)
+
128
);
skb
=
alloc_skb
(
size
,
GFP_ATOMIC
);
if
(
!
skb
)
{
netlink_set_err
(
rtnl
,
0
,
RTMGRP_IPV6_IFRA
,
ENOBUFS
);
return
;
}
if
(
inet6_fill_ifra
(
skb
,
idev
,
ra_msg
,
0
,
0
,
event
)
<
0
)
{
kfree_skb
(
skb
);
netlink_set_err
(
rtnl
,
0
,
RTMGRP_IPV6_IFRA
,
EINVAL
);
return
;
}
NETLINK_CB
(
skb
).
dst_groups
=
RTMGRP_IPV6_IFRA
;
netlink_broadcast
(
rtnl
,
skb
,
0
,
RTMGRP_IPV6_IFRA
,
GFP_ATOMIC
);
}
static
struct
rtnetlink_link
inet6_rtnetlink_table
[
RTM_MAX
-
RTM_BASE
+
1
]
=
{
static
struct
rtnetlink_link
inet6_rtnetlink_table
[
RTM_MAX
-
RTM_BASE
+
1
]
=
{
[
RTM_GETLINK
-
RTM_BASE
]
=
{
.
dumpit
=
inet6_dump_ifinfo
,
},
[
RTM_GETLINK
-
RTM_BASE
]
=
{
.
dumpit
=
inet6_dump_ifinfo
,
},
[
RTM_NEWADDR
-
RTM_BASE
]
=
{
.
doit
=
inet6_rtm_newaddr
,
},
[
RTM_NEWADDR
-
RTM_BASE
]
=
{
.
doit
=
inet6_rtm_newaddr
,
},
...
...
net/ipv6/ndisc.c
View file @
d9189b24
...
@@ -1194,7 +1194,6 @@ static void ndisc_router_discovery(struct sk_buff *skb)
...
@@ -1194,7 +1194,6 @@ static void ndisc_router_discovery(struct sk_buff *skb)
out:
out:
if
(
rt
)
if
(
rt
)
dst_release
(
&
rt
->
u
.
dst
);
dst_release
(
&
rt
->
u
.
dst
);
inet6_ifra_notify
(
RTM_NEWRA
,
in6_dev
,
ra_msg
);
in6_dev_put
(
in6_dev
);
in6_dev_put
(
in6_dev
);
}
}
...
...
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