mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[NETNS]: Add netns parameter to inet_(dev_)add_type.
The patch extends the inet_addr_type and inet_dev_addr_type with the network namespace pointer. That allows to access the different tables relatively to the network namespace. The modification of the signature function is reported in all the callers of the inet_addr_type using the pointer to the well known init_net. Acked-by: Benjamin Thery <[email protected]> Acked-by: Daniel Lezcano <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8ad4942cd5
commit
6b175b26c1
17 changed files with 36 additions and 34 deletions
|
|
@ -372,7 +372,7 @@ static int sctp_v4_addr_valid(union sctp_addr *addr,
|
|||
/* Should this be available for binding? */
|
||||
static int sctp_v4_available(union sctp_addr *addr, struct sctp_sock *sp)
|
||||
{
|
||||
int ret = inet_addr_type(addr->v4.sin_addr.s_addr);
|
||||
int ret = inet_addr_type(&init_net, addr->v4.sin_addr.s_addr);
|
||||
|
||||
|
||||
if (addr->v4.sin_addr.s_addr != INADDR_ANY &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue