[PATCH v2 7/8] ipconfig: Create /proc/net/ipconfig directory

2018-04-23 Thread Chris Novakovic
To allow ipconfig to report IP configuration details to user space processes without cluttering /proc/net, create a new subdirectory /proc/net/ipconfig. All files containing IP configuration details should be written to this directory. Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 15

[PATCH v2 6/8] ipconfig: Correctly initialise ic_nameservers

2018-04-23 Thread Chris Novakovic
meservers_predef() in ip_auto_config(), but only when ip_auto_config_setup() was not called earlier. This causes the following to be written to /proc/net/pnp, and is consistent with what gets written when ipconfig is configured manually but no name servers are specified on the kernel command

[PATCH v2 4/8] ipconfig: BOOTP: Request CONF_NAMESERVERS_MAX name servers

2018-04-23 Thread Chris Novakovic
response. [1] RFC 2132, "DHCP Options and BOOTP Vendor Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index bc

[PATCH v2 8/8] ipconfig: Write NTP server IPs to /proc/net/ipconfig/ntp_servers

2018-04-23 Thread Chris Novakovic
a user space process (e.g. an initrd/initram script that invokes an NTP client before mounting an NFS root filesystem). Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 35 +++-- net/ipv4/ipconfig.c | 118 +++--- 2 files

[PATCH v2 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-23 Thread Chris Novakovic
en to this directory instead of /proc/net/ntp in the new patch #8. - Cong and David both requested that the modification to CREDITS be dropped. This patch has been removed from the series. Chris Novakovic (8): ipconfig: Document setting of NIS domain name ipconfig: Tidy up reporting of name serve

[PATCH v2 2/8] ipconfig: Tidy up reporting of name servers

2018-04-23 Thread Chris Novakovic
=10.0.0.1, rootserver=10.0.0.1, rootpath= [0.791476] nameserver0=10.0.0.1 Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 43f620feb1c4..d0ea

[PATCH v2 1/8] ipconfig: Document setting of NIS domain name

2018-04-23 Thread Chris Novakovic
NIS domain name (but not necessarily the DNS domain name). Document this behaviour in Documentation/filesystems/nfs/nfsroot.txt, as it is not made explicit. Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletio

[PATCH v2 5/8] ipconfig: Document /proc/net/pnp

2018-04-23 Thread Chris Novakovic
Fully document the format used by the /proc/net/pnp file written by ipconfig, explain where its values originate from, and clarify that the tertiary name server IP and DNS domain name are only written to the file when autoconfiguration is used. Signed-off-by: Chris Novakovic --- Documentation

[PATCH v2 3/8] ipconfig: BOOTP: Don't request IEN-116 name servers

2018-04-23 Thread Chris Novakovic
Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index d0ea0ecc9008..bcf3c4f9882d 100644 --- a/net/ipv4/ipconfig

Re: [PATCH 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-18 Thread Chris Novakovic
On 18/04/2018 19:06, Chris Novakovic wrote: > On 18/04/2018 18:59, David Miller wrote: >> I think a plain file named /proc/net/ntp is quite confusing. It doesn't >> give any indication that it's a special file populated only by ipconfig >> and not some genera

Re: [PATCH 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-18 Thread Chris Novakovic
On 18/04/2018 18:59, David Miller wrote: > I think a plain file named /proc/net/ntp is quite confusing. It doesn't > give any indication that it's a special file populated only by ipconfig > and not some general NTP thing the kernel is doing. > > I would suggest creating a subdirectory like /proc

[PATCH 2/8] ipconfig: Tidy up reporting of name servers

2018-04-17 Thread Chris Novakovic
=10.0.0.1, rootserver=10.0.0.1, rootpath= [0.791476] nameserver0=10.0.0.1 Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 43f620feb1c4..d0ea

[PATCH 5/8] ipconfig: Document /proc/net/pnp

2018-04-17 Thread Chris Novakovic
Fully document the format used by the /proc/net/pnp file written by ipconfig, explain where its values originate from, and clarify that the tertiary name server IP and DNS domain name are only written to the file when autoconfiguration is used. Signed-off-by: Chris Novakovic --- Documentation

[PATCH 4/8] ipconfig: BOOTP: Request CONF_NAMESERVERS_MAX name servers

2018-04-17 Thread Chris Novakovic
response. [1] RFC 2132, "DHCP Options and BOOTP Vendor Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index bc

[PATCH 8/8] CREDITS: Add Chris Novakovic

2018-04-17 Thread Chris Novakovic
Signed-off-by: Chris Novakovic --- CREDITS | 4 1 file changed, 4 insertions(+) diff --git a/CREDITS b/CREDITS index 989cda91c427..5a13bf62c569 100644 --- a/CREDITS +++ b/CREDITS @@ -2765,6 +2765,10 @@ E: nor...@nocrew.org W: http://www.lysator.liu.se/~noring/ D: dsp56k device driver

[PATCH 6/8] ipconfig: Correctly initialise ic_nameservers

2018-04-17 Thread Chris Novakovic
meservers_predef() in ip_auto_config(), but only when ip_auto_config_setup() was not called earlier. This causes the following to be written to /proc/net/pnp, and is consistent with what gets written when ipconfig is configured manually but no name servers are specified on the kernel command

[PATCH 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-17 Thread Chris Novakovic
to /proc/net/pnp when ipconfig is not used. - Patch #7 allows for NTP servers to be configured (manually on the kernel command line or automatically via DHCP), enabling systems with an NFS root filesystem to synchronise their clock before mounting their root filesystem. Chris Novak

[PATCH 1/8] ipconfig: Document setting of NIS domain name

2018-04-17 Thread Chris Novakovic
NIS domain name (but not necessarily the DNS domain name). Document this behaviour in Documentation/filesystems/nfs/nfsroot.txt, as it is not made explicit. Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletio

[PATCH 3/8] ipconfig: BOOTP: Don't request IEN-116 name servers

2018-04-17 Thread Chris Novakovic
Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index d0ea0ecc9008..bcf3c4f9882d 100644 --- a/net/ipv4/ipconfig

[PATCH 7/8] ipconfig: Write NTP server IPs to /proc/net/ntp

2018-04-17 Thread Chris Novakovic
initram script that invokes an NTP client before mounting an NFS root filesystem). Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 35 +-- net/ipv4/ipconfig.c | 99 --- 2 files changed, 119 insertions(+),

Re: [PATCH 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-07 Thread Chris Novakovic
On 07/04/2018 17:29, David Miller wrote: > From: Chris Novakovic > Date: Sat, 7 Apr 2018 05:08:55 +0100 > >> This series (against net-next) makes various improvements to ipconfig: > > The net-next tree is closed at this time, please resubmit this series > when

[PATCH v2 7/8] ipconfig: Write NTP server IPs to /proc/net/ntp

2018-04-07 Thread Chris Novakovic
initram script that invokes an NTP client before mounting an NFS root filesystem). Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 35 +-- net/ipv4/ipconfig.c | 99 --- 2 files changed, 119 insertions(+),

Re: [PATCH 7/8] ipconfig: Write NTP server IPs to /proc/net/ntp

2018-04-07 Thread Chris Novakovic
On 07/04/2018 05:09, Chris Novakovic wrote: > Distributed filesystems are most effective when the server and client > clocks are synchronised. Embedded devices often use NFS for their > root filesystem but typically do not contain an RTC, so the clocks of > the NFS server and the emb

[PATCH 2/8] ipconfig: Tidy up reporting of name servers

2018-04-06 Thread Chris Novakovic
=10.0.0.1, rootserver=10.0.0.1, rootpath= [0.791476] nameserver0=10.0.0.1 Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 43f620feb1c4..d0ea

[PATCH 3/8] ipconfig: BOOTP: Don't request IEN-116 name servers

2018-04-06 Thread Chris Novakovic
Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index d0ea0ecc9008..bcf3c4f9882d 100644 --- a/net/ipv4/ipconfig

[PATCH 0/8] ipconfig: NTP server support, bug fixes, documentation improvements

2018-04-06 Thread Chris Novakovic
style as surrounding code where appropriate, rather than adhering strictly to the net/ style guide. Chris Novakovic (8): ipconfig: Document setting of NIS domain name ipconfig: Tidy up reporting of name servers ipconfig: BOOTP: Don't request IEN-116 name servers ipconfig: BOOTP: Req

[PATCH 5/8] ipconfig: Document /proc/net/pnp

2018-04-06 Thread Chris Novakovic
Fully document the format used by the /proc/net/pnp file written by ipconfig, explain where its values originate from, and clarify that the tertiary name server IP and DNS domain name are only written to the file when autoconfiguration is used. Signed-off-by: Chris Novakovic --- Documentation

[PATCH 4/8] ipconfig: BOOTP: Request CONF_NAMESERVERS_MAX name servers

2018-04-06 Thread Chris Novakovic
response. [1] RFC 2132, "DHCP Options and BOOTP Vendor Extensions": https://tools.ietf.org/rfc/rfc2132.txt Signed-off-by: Chris Novakovic --- net/ipv4/ipconfig.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index bc

[PATCH 1/8] ipconfig: Document setting of NIS domain name

2018-04-06 Thread Chris Novakovic
NIS domain name (but not necessarily the DNS domain name). Document this behaviour in Documentation/filesystems/nfs/nfsroot.txt, as it is not made explicit. Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletio

[PATCH 6/8] ipconfig: Correctly initialise ic_nameservers

2018-04-06 Thread Chris Novakovic
meservers_predef() in ip_auto_config(), but only when ip_auto_config_setup() was not called earlier. This causes the following to be written to /proc/net/pnp, and is consistent with what gets written when ipconfig is configured manually but no name servers are specified on the kernel command

[PATCH 7/8] ipconfig: Write NTP server IPs to /proc/net/ntp

2018-04-06 Thread Chris Novakovic
initram script that invokes an NTP client before mounting an NFS root filesystem). Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 35 +-- net/ipv4/ipconfig.c | 99 --- 2 files changed, 119 insertions(+),

[PATCH 8/8] CREDITS: Add Chris Novakovic

2018-04-06 Thread Chris Novakovic
Signed-off-by: Chris Novakovic --- CREDITS | 4 1 file changed, 4 insertions(+) diff --git a/CREDITS b/CREDITS index 989cda91c427..5a13bf62c569 100644 --- a/CREDITS +++ b/CREDITS @@ -2765,6 +2765,10 @@ E: nor...@nocrew.org W: http://www.lysator.liu.se/~noring/ D: dsp56k device driver