History log of /freebsd/sbin/ifconfig/ifconfig.c (Results 226 – 250 of 512)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# f013cfc5 24-Mar-2007 Yaroslav Tykhiy <ytykhiy@gmail.com>

Back out rev. 1.129 because it breaks the practice of auto-loading
hardware drivers. Unlike pseudo-device drivers, which just attach
to the cloning framework and wait for "ifconfig create", h/w driv

Back out rev. 1.129 because it breaks the practice of auto-loading
hardware drivers. Unlike pseudo-device drivers, which just attach
to the cloning framework and wait for "ifconfig create", h/w drivers
create interfaces for installed cards as soon as loaded. The issue
of devd(8) involuntarily reloading modules should be dealt with in a
different way.

show more ...


# a40fb996 12-Mar-2007 Yaroslav Tykhiy <ytykhiy@gmail.com>

Attempt to load the kernel module only if we are going to create a
new interface. In other cases loading the module is unwanted and
can lead to ill side effects. One such effect found is as follows

Attempt to load the kernel module only if we are going to create a
new interface. In other cases loading the module is unwanted and
can lead to ill side effects. One such effect found is as follows:
"kldunload if_foo" tells the module to kill all its interfaces,
which results in messages sent to devd; the module unloads. Then
devd starts processing the messages, which ends up in a etc script
running ifconfig fooX, which reloads the module.

show more ...


# e5f01549 27-Feb-2007 Sam Leffler <sam@FreeBSD.org>

o consistently check strlcpy result
o warn when we skip an interface because it's name is too long


# 0b28f081 27-Feb-2007 Sam Leffler <sam@FreeBSD.org>

correct type to silence const complaint


# 30705853 27-Feb-2007 Sam Leffler <sam@FreeBSD.org>

unbreak create operation, must copy argument to global name

Spotted by: des


# cb8c905a 25-Feb-2007 Sam Leffler <sam@FreeBSD.org>

use getifaddrs from libc instead of private code

Reviewed by: bms
MFC after: 1 month


Revision tags: release/6.2.0_cvs, release/6.2.0
# 3ca72aeb 29-Dec-2006 Bjoern A. Zeeb <bz@FreeBSD.org>

Fix an off-by-one which could mean writing beyond the end of the array
when copying the interface name.
This code part should probably be rewritten.


# 6b92a006 20-Sep-2006 Andre Oppermann <andre@FreeBSD.org>

In setifcap() only set/unset those capabilities the interface actually
supports.


# 581d6e4c 08-Sep-2006 Andre Oppermann <andre@FreeBSD.org>

Fix octal representation of TSO4 and TSO6 bits in interface capabilities
description.


# d7097da4 07-Sep-2006 Andre Oppermann <andre@FreeBSD.org>

Make TSO (TCP segmentation offload) capabilities visible and accessible with
'ifconfig em0 tso' and 'ifconfig em0 -tso'. TSO for IPv4 and IPv6 is always
enabled or disabled together. The driver may

Make TSO (TCP segmentation offload) capabilities visible and accessible with
'ifconfig em0 tso' and 'ifconfig em0 -tso'. TSO for IPv4 and IPv6 is always
enabled or disabled together. The driver may enable only one if it doesn't
support both.

Document 'tso' and '-tso' in the ifconfig(8) man pages.

Sponsored by: TCP/IP Optimization Fundraise 2005

show more ...


# db82353d 09-Jul-2006 Sam Leffler <sam@FreeBSD.org>

o replace special handling of clone operations by a clone callback
mechanism
o change vlan cloning to use callback and pass all vlan parameters
on create using the new SIOCREATE2 ioctl
o update v

o replace special handling of clone operations by a clone callback
mechanism
o change vlan cloning to use callback and pass all vlan parameters
on create using the new SIOCREATE2 ioctl
o update vlan set logic to match existing practice

show more ...


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 193af8d2 12-Mar-2006 Gleb Smirnoff <glebius@FreeBSD.org>

There is no IFF_POLLING flag anymore.


# 5dc27bc6 30-Jan-2006 Gleb Smirnoff <glebius@FreeBSD.org>

Recognize new VLAN_HWCSUM flag.


# c21a88e7 30-Jan-2006 Yaroslav Tykhiy <ytykhiy@gmail.com>

Do address assignment/removal operations after callbacks.

Presently, ifconfig callbacks are used for L2 configuration, media
and vlan, so actions associated with address assignment, like sending
out

Do address assignment/removal operations after callbacks.

Presently, ifconfig callbacks are used for L2 configuration, media
and vlan, so actions associated with address assignment, like sending
out a gratuitous ARP, should go when L2 is running already.

This also should fix the problem with setting up vlan interfaces
from rc.conf, when both IP and vlan+vlandev parameters are passed
to ifconfig at once.

Future work: Consider introducing several ifconfig callback lists
to invoke callbacks orderly.

MFC after: 1 week

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0
# 9e241c5e 30-Sep-2005 Yaroslav Tykhiy <ytykhiy@gmail.com>

For the sake of consistency and easier typing,
introduce "-tunnel" as an alias for "deletetunnel".
The latter is overly long and prone to typos, but
keep it for POLA since it costs nothing.

MFC aft

For the sake of consistency and easier typing,
introduce "-tunnel" as an alias for "deletetunnel".
The latter is overly long and prone to typos, but
keep it for POLA since it costs nothing.

MFC after: 5 days

show more ...


# b7eb47e2 14-Jul-2005 Robert Watson <rwatson@FreeBSD.org>

Add a new flag '-k' to ifconfig(8), indicating that it is alright to
print potentially sensitive keying material to stdout. With the new
802.11 support, ifconfig(8) is now capable of printing 802.11

Add a new flag '-k' to ifconfig(8), indicating that it is alright to
print potentially sensitive keying material to stdout. With the new
802.11 support, ifconfig(8) is now capable of printing 802.11 keys,
and did by default for the root user, which is undesirable in some
environments. Now it will not print keying material unless requested
(and available to the user).

MFC after: 1 week

show more ...


# 2eb9396f 13-Jul-2005 Yaroslav Tykhiy <ytykhiy@gmail.com>

Add symbolic names for the IFF_PPROMISC and IFF_NEEDSGIANT flags
so that ifconfig(8) can print them.

MFC after: 5 days


# eb2a391f 20-May-2005 Sam Leffler <sam@FreeBSD.org>

guard against bogus address data

Submitted by: Bakul Shah


Revision tags: release/5.4.0_cvs, release/5.4.0
# c508bf7a 08-Apr-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

ISO C does not allow unnamed union members.


# 77a9f6dd 08-Apr-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Fix typo in comment.


Revision tags: release/4.11.0_cvs, release/4.11.0
# 90c4b74c 31-Dec-2004 Sam Leffler <sam@FreeBSD.org>

Fix special status reporting. Prior to the reorg there was
special-purpose code to display status for an interface for
state that was not address-oriented. This status reporting
was merged in to the

Fix special status reporting. Prior to the reorg there was
special-purpose code to display status for an interface for
state that was not address-oriented. This status reporting
was merged in to the address-oriented status reporting but
did not work for link address reporting (as discovered with
fwip interfaces). Correct this mis-merge and eliminate the
bogus kludge that was used for link-level address reporting.

o add an af_other_status method for an address family for
reporting status of things like media, vlan, etc.
o call the af_other_status methods after reporting address
status for an interface
o special-case link address status; when reporting all
status for an interface invoke it specially prior to
reporting af_other_status methods (since it requires the
sockaddr_dl that is passed in to status separately from
the rtmsg address state)
o correct the calling convention for link address status;
don't cast types, construct the proper parameter

This fixes ifconfig on fwip interfaces.

show more ...


# 58ac5e5b 11-Dec-2004 Sam Leffler <sam@FreeBSD.org>

add a callback mechanism for code that wants to defer committing changes
until all the command line args have been processed

Reviewed by: ambrisko


# 5faf8dcb 08-Dec-2004 Sam Leffler <sam@FreeBSD.org>

Overhaul to cleanup some of the tangled logic that's grown over the years.

o break per-address family support out into separate files
o modularize per-address family and functional operations using

Overhaul to cleanup some of the tangled logic that's grown over the years.

o break per-address family support out into separate files
o modularize per-address family and functional operations using
a registration mechanism; this permits configuration according
to which files you include (but beware that order of the files
is important to insure backwards compatibility)
o many cleanups to eliminate incestuous behaviour, global variables,
and poor coding practices (still much more to fix)

The original motivation of this work was to support dynamic addition
of functionality based on the interface so we can eliminate the various
little control programs and so that vendors can distribute ifconfig
plugins that support their in-kernel code. That work is still to be
completed.

o Update 802.11 support for all the new net80211 functionality; some
of these operations (e.g. list *) may be better suited in a different
program

show more ...


Revision tags: release/5.3.0_cvs, release/5.3.0
# 9e734b44 01-Sep-2004 Brooks Davis <brooks@FreeBSD.org>

Use a spare byte in struct if_data to store the structure size without
increasing it. Add code to ifconfig to use this size to find the
sockaddr_dl after the struct if_data in the routing message.

Use a spare byte in struct if_data to store the structure size without
increasing it. Add code to ifconfig to use this size to find the
sockaddr_dl after the struct if_data in the routing message. This
allows struct if_data to grow (up to 255 bytes) without breaking
ifconfig.

Submitted by: peter

show more ...


# a740f6ee 09-Aug-2004 Pyun YongHyeon <yongari@FreeBSD.org>

Fix long standing mediaopt setting bugs seen on sparc64. Though
the bug exists in little-endian machine, it was not triggered due
to the difference of memory ordering between little/big endian
machin

Fix long standing mediaopt setting bugs seen on sparc64. Though
the bug exists in little-endian machine, it was not triggered due
to the difference of memory ordering between little/big endian
machines. Instead of relying on possibly modified value during
function invokcations, use saved copy of ifr.ifr_addr.sa_family.
Also add a comment at the top of ifconfig.c clarifying the issue
so the bug won't re-appear.

Approved by: jake
Reviewed by: yar

show more ...


12345678910>>...21