onoe
226930604b
Add new numbers from IANA: 0x83 - 0xbd
2000-10-26 06:51:31 +00:00
wiz
75311ca708
Fix typo (thinko?), which didn't allow MRU to be set below the default
...
value (instead of the minimum value). Patch supplied by Stephen Degler
in PR #9945 , and reviewed by Ignatios Souvatzis.
2000-10-26 01:26:15 +00:00
itojun
27fcf101a1
prevent stack overwrite due to bzero() arg mistake. from msaitoh.
2000-10-19 01:07:42 +00:00
matt
cf67b6ff59
When discarding oversized frame, say how long it was.
2000-10-15 19:49:55 +00:00
itojun
d7a216bb96
suppress warning on nd6_storelladdr failure. the failure could happen
...
easily when we have routing table with too many entries. sync with kame.
2000-10-15 15:39:11 +00:00
bouyer
29fdeefaff
Don't try to handle SIOCSIFADDR/SIOCADDMULTI/SIOCDELMULTI if a vlan/vlanif
...
hasn't been configured (prevent a panic in arp_ifinit when setting an
IP addr with no vlan/vlanif).
2000-10-15 11:58:26 +00:00
thorpej
fabbb33a60
Implement ether_ioctl(), ioctl operations common to all Ethernet
...
interfaces.
2000-10-11 16:53:41 +00:00
thorpej
7e2259325b
Change the if_reset vector to if_init, and add an if_stop. if_stop
...
also takes an argument indicating whether or not the interface should
also be disabled (i.e. power removed, resources freed, etc.)
2000-10-11 16:52:34 +00:00
itojun
014e2a97b5
fix comment (s/IPv6/IP/)
2000-10-10 11:43:51 +00:00
ad
04e67112d6
Remove defunct bpfdetach()/ether_ifdetach() calls.
2000-10-10 10:07:35 +00:00
itojun
4eb5250694
fix operator precedence (& and &&). do not transmit too much message
...
from LCP layer to NCP layer. PR 11161.
2000-10-08 02:37:42 +00:00
itojun
08af3d2f82
validate args to SIOC[SG]IFPHY* better.
2000-10-07 04:18:04 +00:00
itojun
ff01d6f0b1
repair SIOCGIFP{DST,SRC}ADDR.
2000-10-07 03:41:38 +00:00
onoe
3ec2a62f74
unique #include opt_inet.h
2000-10-06 04:49:53 +00:00
itojun
bb4b4d9e39
ifp->if_ioctl may be NULL, so check it for SIOCSIFPHY*.
2000-10-04 22:37:41 +00:00
thorpej
3ba709aec7
Make sure we're super-user for SIOCSIFPHYADDR, SIOCDIFPHYADDR,
...
and SIOCSIFPHYADDR_IN6.
2000-10-04 21:12:40 +00:00
enami
d86752997f
Free mbuf when dropping VLAN frame due to no configured vlan interface.
2000-10-04 07:01:52 +00:00
enami
b817ce40cb
Cosmetic changes.
2000-10-04 06:51:12 +00:00
enami
bc50cb2cae
Remove redundant assignment.
2000-10-04 06:20:05 +00:00
itojun
6b9793517d
need opt_inet.h for #ifdef INET
2000-10-04 02:51:18 +00:00
thorpej
9f76a74e1e
Pop one off the TODO list.
2000-10-03 23:52:39 +00:00
thorpej
efbead5055
When an Ethernet interface detaches, unconfigure any VLANs associated
...
with it.
2000-10-03 23:50:52 +00:00
thorpej
96375e93ea
Improve the VLAN support, in particular, handling of MTU:
...
- Add a macro to compute the max frame length based on Ethertype
and presence of FCS, and use it to validate the packet size
in ether_input().
- Add capabilites to struct ethercom, and allow hardware drivers
to specify that they can handle the larger hardware MTU that
VLANs require in order to strictly conform to 802.1Q.
- Make ether_ifdetach() clear out the link address and free all of
the Ethernet multicast structures.
Also, rearrange the VLAN driver itself in preparation to supporting
other hardware types, including FDDI (which has 802.1Q VLAN capability).
2000-10-03 23:33:38 +00:00
itojun
2fe73fd967
typo
2000-10-03 22:46:21 +00:00
itojun
6653c1a74d
forgot to update maximum number of algorithms
2000-10-03 22:43:52 +00:00
itojun
553ce2a5e7
add official # for AES (12), and make it equal to rijndael.
...
Note that:
- IANA assignment was made for AES
- we still have some time window till AES gets finalized, so until it gets
finalized, we are not certain if AES == rijndael
but it should now be okay.
2000-10-03 21:45:44 +00:00
itojun
05d1b41473
get rid of RC5 algorithm # completely (#if 0'ed for a long time)
...
sync with kame.
2000-10-03 06:36:31 +00:00
ad
3a739b04a0
htons -> ntohs. From Alan Barrett <apb@cequrux.com>.
2000-10-02 14:41:26 +00:00
itojun
dcfe05e7c1
fix compilation without INET. fix confusion between ipsecstat and ipsec6stat.
...
sync with kame.
2000-10-02 03:55:41 +00:00
itojun
dd859d3462
enable VJC only with INET
2000-10-02 03:54:10 +00:00
itojun
b8453a0291
fix compilation without INET
2000-10-02 03:53:47 +00:00
itojun
1af3d80bce
fix compilation without INET.
2000-10-02 03:53:07 +00:00
itojun
412b3abb5f
fix IPv6 packet manipulation. (use ip6intrq)
2000-10-02 03:52:10 +00:00
itojun
253515cca1
cosmetic; repair indentation
2000-10-02 03:51:18 +00:00
thorpej
4a66a476e9
Make the previous code path simpler (and possible easier for the
...
compiler to optimize), based on fddi_input().
2000-10-01 23:43:44 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
thorpej
8dc841aa19
Change the behavior of ifpromisc() slightly. If interface is not IFF_UP,
...
attempting to enable promisc would result in ENETDOWN. Change this to
allow the interface to always be placed in promiscuous mode, regardless
of IFF_UP. When the interface does come up, the IFF_PROMISC flag will
be consulted, and this matches the behavior that disabling promiscuous
mode has.
2000-10-01 23:16:07 +00:00
mellon
b58f5e5835
- Figure out how long if list buffer needs to be if it's too short (fixes
...
PR#10968).
2000-09-29 00:37:37 +00:00
ad
d74621ea64
Add an item to the TODO list.
2000-09-28 10:02:09 +00:00
enami
a5028df36d
Don't unconfigure if it is already unconfigured.
2000-09-28 08:28:56 +00:00
enami
177a258793
Fix think-o in previous; don't do the same test twice.
2000-09-28 07:35:36 +00:00
enami
8e1cd4f341
Port the multicast handling to NetBSD correctly.
2000-09-28 07:20:56 +00:00
enami
bf888fcd19
Factor out and give a name to the common functionality to translate
...
sockaddr which represents a multicast address into an Ethernet address
or range of Etherenet addresses.
2000-09-28 07:15:27 +00:00
enami
dcf72a770a
s/6/ETHER_ADDR_LEN/
2000-09-28 07:01:41 +00:00
enami
63b56285cd
Remove unnecessary test.
2000-09-28 07:00:53 +00:00
enami
2c4a718932
Remove unnecessary function decl.
2000-09-28 06:13:35 +00:00
enami
b531012315
Install if_vlanvar.h.
2000-09-28 06:06:50 +00:00
erh
d921f48d7a
When grabbing address structures out of a character array make sure that the number of addresses and length of each match up with the size of the data we're handed. Fixes arp on the alpha.
2000-09-28 01:14:06 +00:00
thorpej
77efca7976
Glue VLANs into ether_input().
2000-09-27 22:58:21 +00:00
thorpej
00746cb0d6
Support for 802.1Q Virtual LANs. Derived and cleaned up by
...
Andy Doran <ad@netbsd.org> from the FreeBSD/OpenBSD implementation.
A few minor changes to how it all hooks into the system by me.
2000-09-27 22:40:54 +00:00