The NetBSD Project

CVS log for src/sbin/ifconfig/af_inet.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / ifconfig

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu May 14 08:34:17 2020 UTC (4 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Remove extra semicolon.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:20 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +5 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Apr 10 14:32:50 2020 UTC (4 years, 8 months ago) by plunky
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -3 lines
trim extraneous return statement

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Aug 16 10:33:17 2019 UTC (5 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +5 -5 lines
 Whitespace fix.

Revision 1.24.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:36 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24: +3 -3 lines
Sync with HEAD

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jun 11 17:45:50 2018 UTC (6 years, 6 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Branch point for: phil-wifi
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Correct Undefined Behavior in ifconfig(8)

Unportable left shift reported with MKSANITIZER=yes USE_SANITIZER=undefined:

# ifconfig
alc0: flags=0x8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ec_capabilities=3<VLAN_MTU,VLAN_HWTAGGING>
        ec_enabled=0
        address: xx:xx:xx:xx:xx:xx
/public/src.git/sbin/ifconfig/af_inet.c:102:34: runtime error: left shift of 16777215 by 8 places cannot be represented in type 'int'
        inet 192.168.0.38/24 broadcast 192.168.0.255 flags 0x0
        inet6 xxxx::xxxx:xxxx:xxxx:xxx%alc0/64 flags 0x0 scopeid 0x1
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
        inet 127.0.0.1/8 flags 0x0
        inet6 ::1/128 flags 0x20<NODAD>
        inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x2

Change shifting left 1 to shifting 1U. This corrects the issue.

        if (cidr < 32) {                /* more than 1 bit in mask */
                /* check for non-contig netmask */
                if ((mask ^ (((1 << cidr) - 1) << (32 - cidr))) != 0) // <- here
                        return -1;      /* noncontig, no pfxlen */
        }

Solution suggested by <uwe>

Sponsored by <The NetBSD Foundation>

Revision 1.19.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:48:55 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +56 -75 lines
Sync with HEAD

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Oct 1 20:59:49 2016 UTC (8 years, 2 months ago) by kre
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-base, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +32 -8 lines

Return to printing explicit "netmask 0x...." in the case that the
mask set is non-contiguous.   We don't prohibit setting such things
(even if they are basically useless) so they can be set by accident.
	ifconfig ifN 10.0.0.1 netmask 225.0.0.0
produced
	ifN .. inet 10.0.0.1/8
with the previous form (since 225 is 0xE1), now it produces
	ifN ... inet 10.0.0.1 netmask 0xe1000000

If the "netmask" form ever appears in ifconfig output, it (now)
means that the netmask is non-contig, which should make that case
obvious (whther intended, or set by accident)

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sat Oct 1 15:10:58 2016 UTC (8 years, 2 months ago) by roy
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +18 -6 lines
Modernise the output for the address to address/prefix instead
of differring outputs for INET and INET6.
The hex string of the INET netmask was particulary hard to read.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Sep 30 16:52:17 2016 UTC (8 years, 2 months ago) by roy
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -9 lines
Remove the alias keyword from ifconfig output as it serves no purpose.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Sep 30 16:47:56 2016 UTC (8 years, 2 months ago) by roy
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +22 -72 lines
ifaddrs has more data than just the address.
Use it instead of making pointless ioctl calls.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Tue Sep 13 00:20:51 2016 UTC (8 years, 3 months ago) by christos
Branches: MAIN
CVS tags: localcount-20160914
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +6 -8 lines
print address flag bits using snprintb

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Feb 29 16:23:25 2016 UTC (8 years, 9 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3 lines
Consistently use estrlcpy for ifr.ifr_name here, not strncpy.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jan 7 11:32:21 2016 UTC (8 years, 11 months ago) by roy
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +31 -7 lines
-W seconds will wait for the detached flag to clear on addresses on
interfaces marked up to allow time for the carrier to appear on the
interface.

This does not extend the -w option duration.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue May 12 14:05:29 2015 UTC (9 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
ioctl -> prog_ioctl as pointed out by pooka@

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 2 14:43:51 2015 UTC (9 years, 7 months ago) by roy
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +40 -3 lines
Report IN_IFF_TENTATIVE and friends.
Wait for IN_IFF_TENTATIVE to be removed with the -w flag.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Dec 13 17:35:08 2010 UTC (14 years ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +5 -4 lines
Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Sep 11 22:06:29 2009 UTC (15 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -52 lines
Make ifconfig(8) set and display preference numbers for IPv6
addresses.  Make the kernel support SIOC[SG]IFADDRPREF for IPv6
interface addresses.

In in6ifa_ifpforlinklocal(), consult preference numbers before
making an otherwise arbitrary choice of in6_ifaddr.  Otherwise,
preference numbers are *not* consulted by the kernel, but that will
be rather easy for somebody with a little bit of free time to fix.

Please note that setting the preference number for a link-local
IPv6 address does not work right, yet, but that ought to be fixed
soon.

In support of the changes above,

1 Add a method to struct domain for "externalizing" a sockaddr, and
  provide an implementation for IPv6.  Expect more work in this area: it
  may be more proper to say that the IPv6 implementation "internalizes"
  a sockaddr.  Add sockaddr_externalize().

2 Add a subroutine, sofamily(), that returns a struct socket's address
  family or AF_UNSPEC.

3 Make a lot of IPv4-specific code generic, and move it from
  sys/netinet/ to sys/net/ for re-use by IPv6 parts of the kernel and
  ifconfig(8).

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Aug 7 19:35:55 2009 UTC (15 years, 4 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +21 -8 lines
Use getnameinfo(3) instead of inet_ntoa(3) to convert IPv4 addresses
to names.

Revision 1.5.18.2: download - view: text, markup, annotated - select for diffs
Sun Sep 28 11:17:11 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.5.18.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.18.1: +20 -6 lines
Sync with HEAD.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:28:24 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.7.2.1: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.1: +22 -8 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jul 2 07:44:14 2008 UTC (16 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +22 -8 lines
Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile.  This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age.  Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.

(In principle, ifconfig could load virtually all of its syntax from
shared objects.)

Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit.  Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses.  That may have broken atalk and
iso, despite my best efforts.

Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.

Sprinkle static.  Change some int's to bool's.  Constify.

Add RCS Ids to carp.c and env.c.  Move media code to a new file,
media.c.  Delete several unneeded header files.

Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.

Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:29:57 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +60 -43 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.5.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:21:22 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +80 -124 lines
Sync with HEAD.

Revision 1.5.20.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:52 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +80 -124 lines
sync with head.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon May 12 20:59:13 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
Make prototype and definition of in_alias() agree: it's static.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun May 11 23:25:46 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +29 -42 lines
Don't export in_alias().  Pass in_alias() a more useful template.
Misc. cosmetic changes.  Delete dead code.  Treat the address
preference as int16_t, since that is its real type.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun May 11 22:07:23 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2 lines
Let the address family modules zero initialize their own ifreqs,
instead of zeroing them in commit_address().

Switch to in6_commit_address() from in6_getprefix() and in6_getaddr().

Temporarily add some debugging code to setia6eui64_impl().

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu May 8 07:13:20 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +30 -2 lines
Move IPv4/IPv6-specific code from commit_address() to in_commit_address()
and in6_commit_address().  Fixes the USE_INET6=no build.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 6 16:15:17 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Branch point for: wrstuden-revivesa
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Rename in_addr_commit() to commit_address(), and refactor slightly
to support IPv6 as well as IPv4 (a work in progress).

Make the second argument of af_status() a bool instead of an int.

Exit early with an error if the operator specifies an unsupported
address family on the command line.  The change should help rc
scripts to detect that IPv6 support is missing from the kernel,
with 'ifconfig lo0 inet6'.

Start using prop_dictionary_util(3).

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue May 6 04:33:42 2008 UTC (16 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +47 -108 lines
Overhaul ifconfig.  Use fewer global variables.  Take a leap toward
improved modularity and extensibility.

In the new architecture, a directed graph of argument-matching
objects (match objects) expresses the set of feasible ifconfig
statements.  Match objects are labelled by subroutines that provide
the statement semantics.

Many IPv4, IPv6, 802.11, tunnel, and media configurations have been
tested.

AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need
testing.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Nov 13 05:13:39 2006 UTC (18 years, 1 month ago) by dyoung
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, mjf-devfs2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +64 -3 lines
Add a source-address selection policy mechanism to the kernel.

Also, add ioctls SIOCGIFADDRPREF/SIOCSIFADDRPREF to get/set preference
numbers for addresses.  Make ifconfig(8) set/display preference
numbers.

To activate source-address selection policies in your kernel, add
'options IPSELSRC' to your kernel configuration.

Miscellaneous changes in support of source-address selection:

        1 Factor out some common code, producing rt_replace_ifa().

        2 Abbreviate a for-loop with TAILQ_FOREACH().

        3 Add the predicates on IPv4 addresses IN_LINKLOCAL() and
          IN_PRIVATE(), that are true for link-local unicast
          (169.254/16) and RFC1918 private addresses, respectively.
          Add the predicate IN_ANY_LOCAL() that is true for link-local
          unicast and multicast.

        4 Add IPv4-specific interface attach/detach routines,
          in_domifattach and in_domifdetach, which build #ifdef
          IPSELSRC.

See in_getifa(9) for a more thorough description of source-address
selection policy.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Aug 26 18:14:28 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -2 lines
Programs that use efun.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Jun 16 23:48:35 2006 UTC (18 years, 5 months ago) by elad
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5 lines
fix incorrect usage of strncpy() to (an internal implementation of)
estrlcpy().

okay christos

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Jun 14 11:05:42 2006 UTC (18 years, 6 months ago) by tron
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -3 lines
Adapt ifconfig(8) to new return value from socket(2). This stops
ifconfig(8) from printing errors like "ifconfig: socket: Address
family not supported by protocol family" when examining the status
of a network interface.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 20 02:43:50 2005 UTC (19 years, 8 months ago) by thorpej
Branches: MAIN
Split the IPv4 support into its own file.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>