Bug 228929 - Ifconfig -alias deletes unspecified IP address
Summary: Ifconfig -alias deletes unspecified IP address
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Devin Teske
URL:
Keywords:
Depends on:
Blocks: 228911
  Show dependency treegraph
 
Reported: 2018-06-12 09:17 UTC by Rodney W. Grimes
Modified: 2018-06-13 14:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney W. Grimes freebsd_committer 2018-06-12 09:17:14 UTC
Ifconfig fooX -alias (bug) PR needed (maybe two)
This PR needs additional details and description please
Comment 1 Diane Bruce freebsd_committer 2018-06-13 14:19:37 UTC
I just want to make sure this doesn't get missed.

It also caused my RPi3 to panic because of dhclient as dteske noted at BSDCON
we have this in dhclient-script

delete_old_address() {
        eval "$IFCONFIG $interface inet -alias $old_ip_address $medium"
}
Comment 2 Rodney W. Grimes freebsd_committer 2018-06-13 14:41:29 UTC
(In reply to Diane Bruce from comment #1)

Can you provide more details on how I would set up my RPi3 to duplicate your panic.

    A kernel panic caused by an ifconfig command is probably a seperate bug, as this bug mostly describes bad behavior in the parser of ifconfig that is accepting the -alias command with no address given, and attempting to make some change when it should just return a syntax error with usage().

Argh, now re-reading the initial notes this is why the (maybe two) is there.

I have create a seperate bug for the panic, and add cross "see also" pointers on both PR's. (PR228987)

Diana can you provide any help information to the new bug I created, which I added you to cc: at PR228987