summaryrefslogtreecommitdiff
path: root/sys/net/if.c
AgeCommit message (Collapse)Author
2002-09-11KNF - return is not a function.Jun-ichiro itojun Hagino
2002-07-03Change all variables definitions (int foo) in sys/sys/*.h to variableMiod Vallat
declarations (extern int foo), and compensate in the appropriate locations.
2002-06-30allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowJun-ichiro itojun Hagino
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
2002-06-11splassert(IPL_SOFTNET) where comment indicate that.Artur Grabowski
2002-06-08splnet -> splsoftnet where appropriateJun-ichiro itojun Hagino
2002-06-08more splnet protection to dom_ifattachJun-ichiro itojun Hagino
2002-06-08protect dom_ifattach by splnetJun-ichiro itojun Hagino
2002-05-30improve nd6_setmtu(), to warn too-small MTU on SIOCSIFMTU. sync w/kameJun-ichiro itojun Hagino
2002-05-29simplify comment, sync w/kameJun-ichiro itojun Hagino
2002-05-27if_attach() gets called before domaininit(). scan all interfaces for if_afdataJun-ichiro itojun Hagino
initialization after domaininit().
2002-05-27framework to add af-dependent data structure to struct ifnet.Jun-ichiro itojun Hagino
as discussed at bsd-api-discuss. sync w/kame
2002-04-24Initialize if_addrhooks in if_attachhead() like in if_attach(), eitherDaniel Hartmeier
one may be called.
2002-04-24Add hooks to struct ifnet that allow to register callbacks that will beDaniel Hartmeier
notified of interface address changes. ok provos@, angelos@
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-09Don't access the tq members directly, use the queue.h macros. Also,Jason Wright
convert several of the loops to TAILQ_FOREACH.
2001-06-29Move ifq_maxlen setting to if_attach(). Doing it at if_init() is wrong,Federico G. Schwindt
and has been wrong since PnP devices (pcmcia, carbus, etc) shown up. If you forgot to set ifq_maxlen somewhere in the driver, you're gonna see baaaad things; jason@ ok, angelos@ "should be ok" , theo "don't understand why".
2001-06-27ALTQ base modifications to the kernel.Kenjiro Cho
- ALTQ introduces a set of new queue macros that coexist with the traditional IF_XXX macros. - "struct ifaltq" replaces "struct ifqueue" in "struct ifnet". - assign cdev major 74 for i386 and 54 for alpha as ALTQ control interface.
2001-06-22KNFTheo de Raadt
2001-06-15change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.Jun-ichiro itojun Hagino
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
2001-06-08Move ifpromisc() from bpf.c to if.c, include cleanup.Angelos D. Keromytis
2001-05-30Remove ipf. Darren Reed has interpreted his (old, new, whichever)Theo de Raadt
licence in a way that makes ipf not free according to the rules we established over 5 years ago, at www.openbsd.org/goals.html (and those same basic rules govern the other *BSD projects too). Specifically, Darren says that modified versions are not permitted. But software which OpenBSD uses and redistributes must be free to all (be they people or companies), for any purpose they wish to use it, including modification, use, peeing on, or even integration into baby mulching machines or atomic bombs to be dropped on Australia. Furthermore, we know of a number of companies using ipf with modification like us, who are now in the same situation, and we hope that some of them will work with us to fill this gap that now exists in OpenBSD (temporarily, we hope).
2001-02-20provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation.Jun-ichiro itojun Hagino
sync with kame. old ioctls are kept but not really recommended.
2001-02-13When detaching an interface set the if_start, if_ioctl and if_watchdogArtur Grabowski
functions to 'nops'. Some protocols might want to output some packets while detaching and that could be a bad idea when the interface has gone away. Do we need to change more functions?
2001-01-30change ip_compat.h to ip_fil_compat.h for clarity. Impending ipf mergeKjell Wooding
2001-01-19pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).Jun-ichiro itojun Hagino
have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument. pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest. 3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr * (almost noone is using it anyways). benefit: the follwoing command now works. previously we need two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *. it was introduced by 4.3BSD-reno and never corrected. XXX is eon_rtrequest() change correct regarding to 3rd arg? eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno, so i do not have correct answer in the source code. someone with more clue about netiso-over-ip, please help.
2001-01-17IPF 3.4.15. (IPv6 not working yet).Federico G. Schwindt
Note: before building the userland part you need to do make includes.
2000-10-07repair SIOCGIFP*ADDR.Jun-ichiro itojun Hagino
2000-10-05there is no SIOCDIFPHYADDR in openbsd-current yet (in kame, there is)Jun-ichiro itojun Hagino
2000-10-04make sure we have root priv on SIOCSIFPHY*. from thorpej@netbsdJun-ichiro itojun Hagino
2000-06-20Convert if_slowtimo to use new timeouts.Artur Grabowski
2000-06-18increase my commit count by 1, because after telling niels three times that ↵Theo de Raadt
he has an indentation flaw, he has not fixed it, so i get a commit, thanks niels
2000-06-17fix commentsNiels Provos
2000-06-17on ifconfig down ignore all routes pointing to the downed interface.Niels Provos
okay itojun@ deraadt@
2000-05-05cope with interface detach (like pcmcia card removal). remove anyJun-ichiro itojun Hagino
IPv6 addresses assigned to the interface. reported by ho, bunch of help from niklas. KAME PR 231.
2000-03-22remove if_withname(), which was imported during KAME merge by mistake.Jun-ichiro itojun Hagino
2000-03-21add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ okMichael Shalayeff
2000-03-12remove redundant check against ifa_dstaddr.Jun-ichiro itojun Hagino
2000-01-02do in6_if_up() at splsoftnet() instead of splimp(), permitting ↵Theo de Raadt
device-related interrupts during that time. It is believed this is safe
1999-12-18ifdef myip_ifp (kernel/1014, thanks to dne@mayonnaise.net for testingAngelos D. Keromytis
the patch)
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
1999-11-20ioctl arguments are u_long.Marc Espie
Replaces `undefined' code with `defined' behavior... gcc 2.96 performs switch cases range analysis, warns about unreachable cases, and weeds them out. In switch(i) { case VALUE: } VALUE is first coerced into the type of i. If i is signed, VALUE is unsigned and exceeds i range, you lose... the result of the conversion is undefined.
1999-11-09Add SIOCSIFMEDIA and SIOCGIFMEDIA to the switch in ifioctl(). SIOCSIFMEDIATodd C. Miller
is only allowed if the user is the superuser. Aparently this got missed when the ifmedia support was added in ages ago. More or less based on how NetBSD does it (though it is rather obvious).
1999-10-27move nat_ifdetach() after interface is removed from the list; ↵Theo de Raadt
avalon@coombs.anu.edu.au
1999-08-08typoNiklas Hallqvist
1999-08-08Support detaching of network interfaces. Still work to do in ipf, andNiklas Hallqvist
other families than inet.
1999-07-04fix unsigned without a size-typeTheo de Raadt
1998-08-05fix ifc_len == 0 hack for variable size structures.Todd C. Miller
1998-08-04Add hack to SIOCGIFCONF where if ifc_len is 0, fill it in with the size ↵Todd C. Miller
needed and return; Linux does this too. Suggested by cmetz@inner.net
1998-03-25add SIOCGIFDATA; fetches ifdata structure attached to each interfaceTheo de Raadt
1997-12-31NULL is not 0Michael Shalayeff