| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Removed these functions, so do not call them from loader.
|
| | |
|
| |
|
|
|
| |
Another function that we don't need since we're using
NetworkManager now.
|
| | |
|
| |
|
|
|
|
|
|
| |
In order to make get_connection() work initially, I was doing
what nm-online was doing, which wasn't that spectacular. I
have changed it to using the State property (with the help of
Dan Williams). Dan would prefer that other programs talking
to NetworkManager use properties as much as possible.
|
| |
|
|
|
|
|
|
|
|
|
| |
Finally, no more libdhcp.
This is the first set of changes to take anaconda over to
the wonderful world of NetworkManager. We are no longer
linking with libdhcp to do interface configuration. NM
is started early in the installation and opens the door
to things like WPA installation support and things like
that.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
This has been requested for a while. Some people have
wanted the ability to do an 'ethtool -p' from stage 1 so
they can figure out what NIC port to use. I can understand
arguments for this feature, but I have still tried to make
it more or less non-invasive. A new button is on the dev
selection screen called Identify. Self-explanatory from
there.
|
| |
|
|
|
| |
If the user passed mtu=X as a boot parameter, set the interface
MTU to that value before configuring the network.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
For instances where the asprintf() was ignored, wrap it in
a test to check if it failed. If it failed, log a message
and abort. There may be some instances where abort may
not be what we want to do, however, we were ignoring the
return value completely so if we did get a failure, it would
just SIGSEGV. Now it will SIGABRT instead.
|
| |
|
|
|
|
|
|
|
|
| |
From the NOTES section of strtol(3):
"Since strtol() can legitimately return 0, LONG_MAX, or
LONG_MIN (LLONG_MAX or LLONG_MIN for strtoll()) on both
success and failure, the calling program should set errno
to 0 before the call, and then determine if an error
occurred by checking whether errno has a non-zero value
after the call."
|
| |
|
|
|
|
|
| |
Code cleanup patch. Use strtol() to convert strings to
ints, rather than atoi(). No error checking capability
with atoi(). Also add error handling to detect strtol
failures.
|
| |
|
|
|
|
|
|
|
|
| |
Require the latest libdhcp so that 230949 works. We allowed
users to only enter a single network stack's information when
doing manual configuration, but the library didn't like that.
Also, I had some cleanup code in net.c that I left throughout
the entire process of working on 230949 and since it now works,
I'd rather just leave it here than back it out. It's all safe.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Follow-on to pjones' patch (d0f8a7473a36d6c54e7d6751b2b1200248a3a9b5),
but do not create a new struct addr and do not use inet_aton(). For
name<->ip conversions, please use the inet_pton() and inet_ntop()
functions so we can pretend to support IPv6.
Use the IP_ADDR() macro for now that pulls the correct struct addr or
struct addr6 and passes it to gethostbyaddr(). IPv4 and IPv6 reverse
lookups should be working at this point in loader.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Rename the interface control functions to start with iface_
rather than nl_. The libnl API uses nl_ and it gets confusing
if we use that here too.
|
| | |
|
| |
|
|
| |
This reverts commit 062a1e5ebbf6dab03524a125c1ce34d3cea43fcb.
|
| |
|
|
|
|
| |
Hit a case doing kickstart installs where loaderData->ipv6 or
loaderData->ipv4 could be empty around this point. Check to make
sure they are not NULL before calling inet_pton().
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Reduce nl.c to enough to communicate with libnl. We already have
libnl, so we might as well use it. Plus, the latest version has
a reasonable API, so I'm totally against using it.
The _isys module and loader have been updated to call the new
functions: nl_mac2str() and nl_ip2str() to get the MAC address or
IP address for the specified interface.
This patch also drops our need for glib for isys. Yeah, I added the
dep and I'm removing it.
|
| | |
|
| |
|
|
|
|
|
|
| |
This patch adds support for a new network bootproto. The point of this is
to work around our basic assumption that no network line in the kickstart
file means you get dhcp. Some environments may want the assumption that
no network line means you get prompted for network configuration. That's
what this patch adds.
|
| |
|
|
| |
in the case of STP delays (#349521).
|
| |
|
|
| |
#254032)
|
| | |
|
| |
|
|
|
|
|
| |
Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually
we'll get an AUTHORS file and will just remove author names from the
individual files. Also fixed a type in scripts/dumphdrlist.py where
Author was listed twice.
|
| | |
|
| |
|
|
|
|
|
| |
This removes the separate FTP and HTTP network method dialogs in the loader
and replaces them with a single configuration dialog that asks the user to
input a URL. It also modified the secondary config screen to prompt just
for a proxy and simplifies a lot of the conversion from URL to UI and back.
|
| |
|
|
| |
(#349521)
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
* loader2/net.c (chooseNetworkInterface): Don't pick wireless
adapters unless explicitly requested
* loader2/loader.c (parseCmdLineFlags): Add wireless flag
* loader2/loader.h: Likewise.
|
| |
|
|
|
|
|
| |
we were provided one by the user (#180451).
* loader2/net.c (doDhcp): If we got a hostname from DHCP, set it
(#180451).
|
| |
|
|
|
|
|
|
| |
a kickstart install, flag it. Init ipv4method and ipv6method (#260621).
* loader2/loader.h: Add LOADER_FLAGS_IS_KICKSTART and
FL_IS_KICKSTART() (#260621).
* loader2/net.c (configureTCPIP): Set skipForm to 1 if kickstart
flag is set (#260621).
|
| |
|
|
|
|
|
|
|
|
|
|
| |
have firmware loaded (#251941).
* scripts/upd-instroot: Add *-firmware to PACKAGES for now. We'll
change this later once the kernel provides us with more
info (#177452).
* scripts/mk-images (makeinitrd): Remove arch test for copying over
firmware files. Just check the module list and copy firmware, also
add atmel and iwl4965 (#177452).
|
| |
|
|
|
| |
netmask for IPv4, check it and if it validates, skip the CIDR
validation (#243250).
|
| | |
|
| | |
|
| |
|
|
|
| |
in the pumpNetIntf structure contains the IPv4 address if it exists,
otherwise static network configuration fails (#221660).
|
| |
|
|
|
|
|
| |
twice during network configuration (#239958).
* loader2/net.c (cidrCallback): Only warn for an empty prefix if the
user also provided an IP address.
|
| |
|
|
|
| |
by just a few people where manual IPv6 address entry gets overridden by
the auto-discovered address.
|
| | |
|
| |
|
|
| |
to fix segfaults on 64-bit arches during manual TCP/IP config.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
networking in rescue mode when booting from CD or DVD (#238080)
* isys/isys.py: Remove pumpNetDevice, replace with dhcpNetDevice that
can handle IPv4 and IPv6 (#238080).
* isys/isys.c (doDhcpNetDevice): Handle IPv4 and IPv6 stacks (#238080).
* isys/isys.c (doConfigNetDevice): Likewise.
* loader2/net.c (setupNetworkDeviceConfig): The netmask will never be
an IPv6 address.
|