christos
d64bbf607d
Fix async map handling. Many thanks to Joerg Wunsch for the explanation.
2002-07-30 13:16:35 +00:00
atatat
6675196afb
Make tun interfaces perform auto-creation. This means that if a
...
program opens /dev/tun# and tun# has not been SIOCIFCREATE'd already,
it will be SIOCIFCREATE'd automatically. FreeBSD's tun interfaces
behave in a somewhat similar fashion.
2002-07-29 16:53:30 +00:00
christos
42f6b6f836
Patches from Frank Kardel:
...
- length was one off in names and secrets.
- add win 98 kludge but we keep it disabled for now.
- setup the authorization bit early so that we don't end up doing ppp
negotiations without authorization.
2002-07-28 22:16:47 +00:00
christos
59d3d6c274
Don't throw away the name and the secret lengths. This eliminates all the
...
strlen() calls, and there was a whole bunch of them.
2002-07-28 19:54:47 +00:00
christos
450091b937
avoid modifying the buffers, by checking for matching lengths first. From
...
Frank Kardel.
2002-07-28 15:12:29 +00:00
christos
ca989d9a38
Use strcmp() instead of memcmp() because if we get passed a 0 length name
...
and secret, we'll authenticate successfully! While there, rename passwd to
secret so that code looks nicer.
2002-07-27 19:09:07 +00:00
wiz
645df36eff
Spell '[Rr]ight' correctly. From Jim Bernard.
2002-07-26 14:11:34 +00:00
tron
e5e66e171b
Increase interface output error count in case of a failure.
2002-07-23 06:59:51 +00:00
tron
5126e6107d
Increase interface output counter for every encapsulated packet sent to IP.
2002-07-23 06:44:53 +00:00
martin
5d9a5f68c8
Use "mono_time" instead of "time" for timeout calculations.
2002-07-13 11:08:03 +00:00
yamt
43b3a8007f
don't access freed memory.
2002-07-11 21:37:51 +00:00
yamt
c56faa76d8
don't access freed memory.
2002-07-11 21:21:53 +00:00
itojun
db705b375f
use iana-assigned value for IFT_STF. sync w/kame
2002-07-10 21:01:06 +00:00
itojun
c6f53f281c
correct tcp header chasing in pp_fastq processing. should fix kern/17491.
2002-07-06 18:33:45 +00:00
itojun
fb05cd3dd3
new copyright boilerplate from CMU. from openbsd
2002-07-01 22:09:31 +00:00
onoe
b00ef6acdd
Fill ar_hrd for AF_ARP.
2002-06-25 03:42:28 +00:00
enami
92912a1744
Actually inject the arp packet into softintr queue.
2002-06-24 12:00:49 +00:00
itojun
0143dfc42f
integrate IEEE1394 ARP into generic ARP logic.
...
XXX there's no check at all in ar_hrd, and we don't set ar_hrd on outgoing.
it seems like a bad thing.
2002-06-24 08:06:20 +00:00
itojun
39cf9ef1f5
g/c last bit of old ipv6 prefix management.
2002-06-23 23:34:08 +00:00
yamt
a113bc6fa4
- free buf when unneeded.
...
- pass a consistent type to free(9).
2002-06-22 17:41:23 +00:00
yamt
f6849cb26f
fix loop condition.
...
(don't skip last tag)
2002-06-22 16:56:11 +00:00
itojun
f16149934e
avoid unneeded call to m_pullup
2002-06-22 11:46:16 +00:00
itojun
9f260b4865
do not require PPPoE control packet to be put into a single mbuf.
...
reviewed/tested by ymmt
2002-06-22 11:37:48 +00:00
itojun
32e2727406
more style
2002-06-22 05:59:27 +00:00
itojun
98171fbccc
style
2002-06-22 05:54:14 +00:00
itojun
a028d35cfd
more KNF. warn about mbuf misuse (passing pointer outside of mbuf is dangerous)
2002-06-22 05:52:00 +00:00
itojun
e94ae067d1
tabify. minor KNF
2002-06-22 05:33:42 +00:00
itojun
a10b39ecad
reject packets with IPv4 private address range. sync w/kame
2002-06-20 07:43:39 +00:00
itojun
425b0d2350
typo
2002-06-13 05:12:12 +00:00
itojun
00f97b0202
drop too short IPv6 frame
2002-06-13 05:10:34 +00:00
itojun
bc880e4114
correect AF_INET6 handling
2002-06-13 05:09:52 +00:00
pooka
fef2794715
s/splimp/splnet/ in comment
2002-06-11 11:03:55 +00:00
pooka
dc325578c7
fix a few typos in comments
2002-06-11 06:00:57 +00:00
itojun
c9faadc40f
return EPROTONOSUPPORT if unsupported protocol is specified
2002-06-10 17:40:26 +00:00
itojun
53b229d4cb
don't abuse IFF_UP
2002-06-10 17:38:31 +00:00
itojun
c0a05a111d
raise output errcnt
2002-06-10 17:30:16 +00:00
itojun
2d509e83c4
ENETDOWN if outer ip address is not configured.
...
plug mbuf leak while here.
2002-06-10 17:12:22 +00:00
itojun
ccdab26a23
don't use inner address configured by SIOCSIFADDR/DSTADDR
...
as outer addresses; now you need to configure outer address by
SIOCS*PHYADDR ("ifconfig tunnel"). as discussed on tech-net
2002-06-10 17:07:51 +00:00
itojun
7864ca478f
deprecate IFF_LINK2, !IFF_LINK0 is enough.
...
no need to manipulate IFF_LINK1 with IFF_LINK0.
remove reference to greconfig(8).
2002-06-09 19:17:43 +00:00
itojun
4c4b38eb0b
no need for if_addrlen be 4. From: Martin Husemann <martin@duskware.de>
2002-06-09 17:59:45 +00:00
itojun
c284599930
make sure to bzero sockaddr_in
2002-06-09 17:32:54 +00:00
itojun
9c95390f4a
style
2002-06-09 17:22:41 +00:00
itojun
a8b0c39863
don't forget splx
2002-06-09 17:18:32 +00:00
itojun
04aa2a1c65
avoid code duplicate (route lookup)
2002-06-09 17:17:15 +00:00
itojun
1a5eede494
style
2002-06-09 17:13:31 +00:00
itojun
6f21655564
support SIOCSLIFPHYADDR, SIOCDIFPHYADDR and SIOCGLIFPHYADDR, so that
...
we can manipulate tunnel endpoint by ifconfig(8).
2002-06-09 17:10:09 +00:00
martin
aed31ed511
Change default MTU to 1476 (same value that Cisco uses).
...
Do not limit the MTU when set by the admin with ifconfig, per discussion
on tech-net.
This fixes PR 16761 from Jasper Wallace.
2002-06-09 09:45:39 +00:00
itojun
a636441cdc
reject "add" request if if_mtu is different.
2002-06-08 23:17:01 +00:00
itojun
f64f00cc3f
need to protect if_attachdomain() too
2002-06-08 11:58:50 +00:00
itojun
ad2c23cb75
protect dom_ifattach by splnet
2002-06-08 11:54:24 +00:00