Displaying 20 results from an estimated 20 matches for "inaddr_none".
2004 May 28
1
ipconfig related question (do not get static IP setting)
Hi!! I found your ipconfig stuff in the udev rpm in SuSE 9.1. I'm about to
setup a initramfs (pretty cool - much better than initrd) to boot linux
diskless clients over the net. All the tools I would need, seem to be
there with ipconfig/nfsmount ...
I like to use the information I get from PXE/syslinux or Etherboot
writing something like:
2005 Jan 05
1
[PATCH] kinit/nfsmount.c path from bootp
...no path\n");
- exit(1);
- }
-
a = 1;
- if ((opts = strchr(path, ',')) != NULL) {
- *opts++ = '\0';
- argv[a++] = (char *) "-o";
- argv[a++] = opts;
- }
-
for (dev = ifaces; dev; dev = dev->next) {
print_device_config(dev);
if (dev->ip_server != INADDR_NONE &&
dev->ip_server != INADDR_ANY) {
addr.s_addr = dev->ip_server;
client = dev->ip_addr;
+ dev_bootpath = dev->bootpath;
break;
}
if (dev->ip_addr != INADDR_NONE &&
@@ -102,6 +89,25 @@
}
}
+ /*
+ * if the "nfsroot" option is...
2008 Jun 14
5
PATCH: ipconfig may accept DHCPOFFER as DHCPACK
...o.c ../ipconfig.old/dhcp_proto.c:
74,78d73
< * Returns:
< * 0 = Not handled
< * 2 = DHCPOFFER (from dhcp_proto.h)
< * 5 = DHCPACK
< * 6 = DHCPNACK
109,110c104,105
< ret = bootp_parse(dev, hdr, exts, extlen) ? DHCPOFFER : 0;
< if (ret == DHCPOFFER && serverid != INADDR_NONE)
---
> ret = bootp_parse(dev, hdr, exts, extlen);
> if (ret == 1 && serverid != INADDR_NONE)
116c111
< ret = bootp_parse(dev, hdr, exts, extlen) ? DHCPACK : 0;
---
> ret = bootp_parse(dev, hdr, exts, extlen);
121c116
< ret = DHCPNAK;
---
> ret = 2;
130,135d124...
2003 May 22
0
[PATCH 2.5.69 1/3] remove ipconfig support from the kernel
...tocol choice */
-int ic_proto_enabled __initdata = 0
-#ifdef IPCONFIG_BOOTP
- | IC_BOOTP
-#endif
-#ifdef CONFIG_IP_PNP_DHCP
- | IC_USE_DHCP
-#endif
-#ifdef IPCONFIG_RARP
- | IC_RARP
-#endif
- ;
-
-int ic_host_name_set __initdata = 0; /* Host name set by us? */
-
-u32 ic_myaddr __initdata = INADDR_NONE; /* My IP address */
-u32 ic_netmask __initdata = INADDR_NONE; /* Netmask for local subnet */
-u32 ic_gateway __initdata = INADDR_NONE; /* Gateway IP address */
-
-u32 ic_servaddr __initdata = INADDR_NONE; /* Boot server IP address */
-
-u32 root_server_addr __initdata = INADDR_NONE; /* Address of...
2011 Aug 07
2
[PATCH] kinit minor checkpatch cleanup
...mp;e1, 10);
diff --git a/usr/kinit/nfsroot.c b/usr/kinit/nfsroot.c
index b5ab3bb..3b80773 100644
--- a/usr/kinit/nfsroot.c
+++ b/usr/kinit/nfsroot.c
@@ -56,9 +56,8 @@ int mount_nfs_root(int argc, char *argv[], int flags)
dev_bootpath = dev->bootpath;
break;
}
- if (dev->ip_addr != INADDR_NONE && dev->ip_addr != INADDR_ANY) {
+ if (dev->ip_addr != INADDR_NONE && dev->ip_addr != INADDR_ANY)
client = dev->ip_addr;
- }
}
/*
@@ -107,6 +106,6 @@ int mount_nfs_root(int argc, char *argv[], int flags)
goto done;
}
- done:
+done:
return ret;...
2003 Jun 08
1
redirect unauthorized users to a login page (natd as a transparent proxy)
Hello
I am trying to redirect all http traffic of unauthorized wifi users on a
wireless hotspot to a login page. The problem I have is that I can not
disable the regular address translation (I want the source address to stay
the same).
10.0.0.7 is the wifi client
195.250.155.29 is the web wifi user tries to access from his browser
195.113.17.94 is my login page
10.0.0.1 is the wifi
2006 Oct 20
1
CIDR prefix with a non-multiple of 8
...mask = interpret_addr(slash + 1);
} else {
mask = (uint32)((ALLONES << atoi(slash + 1)) ^ ALLONES);
+ /* Fixup the netmask by reversing the bits in each byte
*/
+ mask = revbits(mask);
}
if (net == INADDR_NONE || mask == INADDR_NONE) {
======================================
Eric Crossman
Assistant Systems Administrator, School of Science
Siena College
515 Loudon Road
Loudonville, NY 12211
2010 Mar 16
4
ipconfig: DHCP fixes
Hi,
Here are two fixes for ipconfig/dhcp, the second of them being required for my
dhcp3 server to accept ipconfig's requests.
Thanks,
Louis
Louis Rilling (2):
ipconfig: Fix missing dhcp_end field
ipconfig: Fix null ciaddr on DHCPREQUEST during SELECTING state
usr/kinit/ipconfig/dhcp_proto.c | 4 ++--
usr/kinit/ipconfig/packet.c | 2 +-
2 files changed, 3
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote:
> On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote:
> > No new CVS messages have appeared on the rsync-cvs archives since August
> > 30th. This seems rather odd-- perhaps a daemon stopped working? If there
> > has truly been no activity since that date, I apologize for
> >
2002 Aug 25
2
Trouble building Samba 2.2.5 of Solaris 9
Looks like inet_aton has cropped up again, in libsmbclient.c:
if (!inet_aton(server, &rem_ip)) {
DEBUG(4, ("Could not convert IP address %s to struct in_addr\n",
server));
errno = ENOENT;
return NULL;
}
This function doesn't exist in Solaris, and causes this shared library
to fail to link, when called by other programs (notably KDE 3):
Undefined
2008 May 24
3
ipconfig and boot filename option
Hi,
ipconfig is used in ltsp (thin clients) initramfs. Some of the users
have to have 2 dhcp servers in ltsp environments, so they hit on this
problem:
The first dhcp request is from the pxe rom boot code. This code
ignores any dhcp offers that don't have a filename field. So they
always get the correct address, from the ltsp server.
The second dhcp request (in initramfs) is done by
2006 Jun 26
0
[klibc 14/43] Remove in-kernel nfsroot code
...Kuhlmann : Last changes of Martin Mares undone.
- * Gero Kuhlmann : RARP replies are tested for specified server
- * again. However, it's now possible to have
- * different RARP and NFS servers.
- * Gero Kuhlmann : "0.0.0.0" addresses from command line are
- * now mapped to INADDR_NONE.
- * Gero Kuhlmann : Fixed a bug which prevented BOOTP path name
- * from being used (thanks to Leo Spiekman)
- * Andy Walker : Allow to specify the NFS server in nfs_root
- * without giving a path name
- * Swen Th?mmler : Allow to specify the NFS options in nfs_root
- * without giving a p...
2002 Nov 17
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (update)
...ISLNK(mode)) perms[0] = 'l';
if (S_ISDIR(mode)) perms[0] = 'd';
diff -urp --new-file oldrsync/rsync.h newrsync/rsync.h
--- oldrsync/rsync.h Tue Aug 27 12:03:52 2002
+++ newrsync/rsync.h Tue Aug 27 15:44:38 2002
@@ -330,6 +330,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2
#define INADDR_NONE 0xffffffff
#endif
+#ifndef IN_LOOPBACKNET
+#define IN_LOOPBACKNET 127
+#endif
+
struct file_struct {
unsigned flags;
time_t modtime;
@@ -614,7 +618,7 @@ inet_ntop(int af, const void *src, char
#endif /* !HAVE_INET_NTOP */
#ifndef HAVE_INET_PTON
-int isc_net_pton(int af, const char *src...
2002 Sep 06
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS
...ISLNK(mode)) perms[0] = 'l';
if (S_ISDIR(mode)) perms[0] = 'd';
diff -urp --new-file oldrsync/rsync.h newrsync/rsync.h
--- oldrsync/rsync.h Tue Aug 27 12:03:52 2002
+++ newrsync/rsync.h Tue Aug 27 15:44:38 2002
@@ -330,6 +330,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2
#define INADDR_NONE 0xffffffff
#endif
+#ifndef IN_LOOPBACKNET
+#define IN_LOOPBACKNET 127
+#endif
+
struct file_struct {
unsigned flags;
time_t modtime;
@@ -614,7 +618,7 @@ inet_ntop(int af, const void *src, char
#endif /* !HAVE_INET_NTOP */
#ifndef HAVE_INET_PTON
-int isc_net_pton(int af, const char *src...
2002 Oct 14
0
[PATCH] Patches to rsync-2.5.5 for Stratus VOS (resend)
...ISLNK(mode)) perms[0] = 'l';
if (S_ISDIR(mode)) perms[0] = 'd';
diff -urp --new-file oldrsync/rsync.h newrsync/rsync.h
--- oldrsync/rsync.h Tue Aug 27 12:03:52 2002
+++ newrsync/rsync.h Tue Aug 27 15:44:38 2002
@@ -330,6 +330,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2
#define INADDR_NONE 0xffffffff
#endif
+#ifndef IN_LOOPBACKNET
+#define IN_LOOPBACKNET 127
+#endif
+
struct file_struct {
unsigned flags;
time_t modtime;
@@ -614,7 +618,7 @@ inet_ntop(int af, const void *src, char
#endif /* !HAVE_INET_NTOP */
#ifndef HAVE_INET_PTON
-int isc_net_pton(int af, const char *src...
2002 Nov 20
0
[PATCH] Updated patch to rsync for Stratus VOS
...if (S_ISLNK(mode)) perms[0] = 'l';
if (S_ISDIR(mode)) perms[0] = 'd';
diff -urp oldrsync/rsync.h newrsync/rsync.h
--- oldrsync/rsync.h Sun Nov 17 05:00:06 2002
+++ newrsync/rsync.h Sun Nov 17 05:00:19 2002
@@ -331,6 +331,10 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2
#define INADDR_NONE 0xffffffff
#endif
+#ifndef IN_LOOPBACKNET
+#define IN_LOOPBACKNET 127
+#endif
+
struct file_struct {
unsigned flags;
time_t modtime;
@@ -615,7 +619,7 @@ inet_ntop(int af, const void *src, char
#endif /* !HAVE_INET_NTOP */
#ifndef HAVE_INET_PTON
-int isc_net_pton(int af, const char *src...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -171,7 +171,8 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
commit 959ed5fced3403cba814c819146e8d8251c3d7b1
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:38:22 2008 +0200...
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about.
The goal is not to be 100% checkpatch compliant,
but to have more consistent coding style.
As this is a trivial patch serie, will land in 24 hours in klibc git,
unless of course ml review hits a bugger.
Checked with size(3) that the generated kinit, fstype, ipconfig and
nfsmount are the same.
maximilian attems (4):
[klibc] ipconfig: reduce
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...- a/usr/kinit/ipconfig/dhcp_proto.c
+++ b/usr/kinit/ipconfig/dhcp_proto.c
@@ -171,7 +171,8 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
commit 848a8ce349331cd74021cc3b8ea43f9e47c14e50
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:38:22 2008 +0200...
2003 May 22
0
[PATCH 2.5.69 2/3] Remove NFS root support from the kernel
...Kuhlmann : Last changes of Martin Mares undone.
- * Gero Kuhlmann : RARP replies are tested for specified server
- * again. However, it's now possible to have
- * different RARP and NFS servers.
- * Gero Kuhlmann : "0.0.0.0" addresses from command line are
- * now mapped to INADDR_NONE.
- * Gero Kuhlmann : Fixed a bug which prevented BOOTP path name
- * from being used (thanks to Leo Spiekman)
- * Andy Walker : Allow to specify the NFS server in nfs_root
- * without giving a path name
- * Swen Th#include <linux/inet.h>
-#include <linux/root_dev.h>
-#include <...