Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173461 - udhcpc ifconfig module delete default routes on action RENEW
Summary: udhcpc ifconfig module delete default routes on action RENEW
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-05 12:25 UTC by Michael Rack
Modified: 2007-04-05 13:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rack 2007-04-05 12:25:11 UTC
Hello Bugzillers!

In the module "udhcpc ifconfig module for net-scripts" there are many bugs in case of RENEW-Actions.

If the network-interface is currently up and running on any ip-address such as 10.0.0.5, the IP will expire in 2050 seconds / renew is programmed in 2000 seconds, this module is putting down the interface and start it again!

This script remove all routes to the default gateways while processing any action! In case of NATed Devices, all NAT-Connection-Tracking-Informations will be lost!

The second problem in this script:
iptables awk grep command is wrong!

currently command VS my command:
cur=$( ifconfig eth1 | grep 'inet ' | awk -F: '{ print $2,$3 }' | awk '{ print $1,$3 }' )
cur=$( ifconfig ${interface} | grep 'inet ' | awk -F: '{ print $2,$4 }' | awk '{ print $1,$3 }' )

The scripts command selects IP-Address and BroadCast-Address *confuse*
My command - and that´s right - selects IP-Address and Subnetmask!

Thank you.

Kind regards,
Michael Rack, Germany.
http://www.michaelrack.de

Reproducible: Always

Steps to Reproduce:
1. Assign IP-Address
2. Make large download over a natted network interface
3. Renew IP-Address to the same Informations as at we assigned the IP-Address
4. See whats happen with the download

Actual Results:  
The Download will be stopped. You have to establish the current TCP/IP-Session again.

Expected Results:  
Check currently configured gateways and remove only entrys they're not supplied in DHCPs configuration-context. GREP/AWK the right informations from ifconfig ${interface}.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-05 13:42:51 UTC
Which ebuild is this about?