mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "lode leroy" <lode_leroy@hotmail.com>
To: linux-kernel@vger.kernel.org
Cc: mj@atrey.karlin.mff.cuni.cz
Subject: [PATCH] 2.5.70 - display bootserver in /proc/net/pnp (net/ipv4/ipconfig.c)
Date: Fri, 04 Jul 2003 11:43:38 +0200	[thread overview]
Message-ID: <Sea2-F12IzpNcedZhot0000b4f8@hotmail.com> (raw)

Hello,

I would like to submit a trivial enhancement to display
the ip address of the bootserver in /proc/net/pnp

This aids me in developing a diskless linux root image
to know where it comes from...

please kindly apply this to the current linux 2.7.x tree

-- lode


# diff -u net/ipv4/ipconfig.{orig,c}
--- net/ipv4/ipconfig.orig      2003-05-27 03:00:21.000000000 +0200
+++ net/ipv4/ipconfig.c 2003-07-04 11:17:30.000000000 +0200
@@ -1115,6 +1115,9 @@
                                       "nameserver %u.%u.%u.%u\n",
                                       NIPQUAD(ic_nameservers[i]));
        }
+       len += sprintf(buffer + len,
+                      "bootserver %u.%u.%u.%u\n",
+                      NIPQUAD(ic_servaddr));

        if (offset > len)
                offset = len;

_________________________________________________________________
Receive your Hotmail & Messenger messages on your mobile phone with MSN 
Mobile http://www.msn.be/gsm/smsservices


                 reply	other threads:[~2003-07-04  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Sea2-F12IzpNcedZhot0000b4f8@hotmail.com \
    --to=lode_leroy@hotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mj@atrey.karlin.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®