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
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
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
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
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
=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
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
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
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
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
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
=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
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
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
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
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
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
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
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
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(+),
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
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(+),
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
=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
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
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
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
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
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
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
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(+),
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
32 matches
Mail list logo