Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97659
b: refs/heads/master
c: 24ef0da
h: refs/heads/master
i:
  97657: ce69bd2
  97655: fd97163
v: v3
  • Loading branch information
Thomas Graf authored and YOSHIFUJI Hideaki committed Jun 4, 2008
1 parent 5a61a48 commit 1c804ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3c960899e042bc1c2b730a2115fa32da7802039
refs/heads/master: 24ef0da7b864435f221f668bc8a324160d063e78
10 changes: 8 additions & 2 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
* Manual configuration of address on an interface
*/
static int inet6_addr_add(struct net *net, int ifindex, struct in6_addr *pfx,
int plen, __u8 ifa_flags, __u32 prefered_lft,
unsigned int plen, __u8 ifa_flags, __u32 prefered_lft,
__u32 valid_lft)
{
struct inet6_ifaddr *ifp;
Expand All @@ -2039,6 +2039,9 @@ static int inet6_addr_add(struct net *net, int ifindex, struct in6_addr *pfx,

ASSERT_RTNL();

if (plen > 128)
return -EINVAL;

/* check the lifetime */
if (!valid_lft || prefered_lft > valid_lft)
return -EINVAL;
Expand Down Expand Up @@ -2095,12 +2098,15 @@ static int inet6_addr_add(struct net *net, int ifindex, struct in6_addr *pfx,
}

static int inet6_addr_del(struct net *net, int ifindex, struct in6_addr *pfx,
int plen)
unsigned int plen)
{
struct inet6_ifaddr *ifp;
struct inet6_dev *idev;
struct net_device *dev;

if (plen > 128)
return -EINVAL;

dev = __dev_get_by_index(net, ifindex);
if (!dev)
return -ENODEV;
Expand Down

0 comments on commit 1c804ba

Please sign in to comment.