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
wrstuden
9e2b945a7b
defparam BPF_BUFSIZE
2002-06-06 23:54:47 +00:00
itojun
fc6382d167
no need to set rmx_send/recvpipe.
2002-06-04 22:11:15 +00:00
itojun
b1654995d0
add a blank line
2002-06-04 10:00:24 +00:00
itojun
87fc46bce9
improve nd6_setmtu(), to warn too-small MTU on SIOCSIFMTU. sync w/kame
2002-05-30 05:06:28 +00:00
christos
ab57e25224
add 2 more CCP defines.
2002-05-29 19:11:05 +00:00
itojun
eee0912fd7
don't panic on invalid CONF_ACK from remote (in general, issueing panic
...
on remote input is bad practice)
2002-05-29 01:38:46 +00:00
itojun
ae5a9e211d
re-scan all ifnet after domaininit() for if_afdata initialization.
2002-05-27 13:46:45 +00:00
itojun
e5aa199677
framework to add af-dependent data structure to struct ifnet.
...
as discussed at bsd-api-discuss. sync w/kame
2002-05-27 02:53:49 +00:00
matt
486c7ce727
Add SIOCGIFDATA and SIOCZIFDATA ioctl's to get interface data. (the Z
...
variant also zeroes the counters after copying them). In ifunit, add
support for dealing all numeric ifname by treating them as an ifindex
which is used to look up the interface.
2002-05-23 21:34:39 +00:00