christos
86497ecc9f
It is now ``later''. Follow cgd's 1993 wish and move struct osockaddr
...
and struct omsghdr to a compat header.
2005-09-24 15:52:03 +00:00
rpaulo
dc5a3ff210
Use ANSI function declarations everywhere and a consistent indentation on
...
them.
2005-09-05 18:32:24 +00:00
martin
ebe6c135ee
Fix bogus uninitialized variable warning ifdef PPPOE_SERVER.
...
Noticed by Marcin Jessa on current-users.
2005-08-31 00:00:26 +00:00
yamt
2e85eff671
- introduce M_MOVE_PKTHDR and use it where appropriate.
...
intended to be mostly API compatible with openbsd/freebsd.
- remove a glue #define in netipsec/ipsec_osdep.h.
2005-08-18 00:30:58 +00:00
yamt
03661e8f33
include callout.h explicitly.
2005-08-12 10:02:31 +00:00
kiyohara
bbebe4a265
Using DLT_APPLE_IP_OVER_IEEE1394.
2005-08-06 14:09:54 +00:00
rpaulo
2fcfc4c276
Implemented the kernel part of BPF statistics and BPF peers, net.bpf.stats
...
and net.bpf.peers sysctls respectively.
A new structure was added to describe the external (user viewable)
representation of a BPF file; a new entry was added to the bpf_d
structure to store the PID of the calling process; a simple_lock was added
to protect the insert/removal from the net.bpf.peers sysctl handler.
This idea came from FreeBSD (Christian S.J. Peron) but while it is
implemented with sysctl's it differs a bit.
Reviewed by: christos@ and atatat@ (who gave me the tip for the net.bpf.peers
sysctl helper function).
2005-08-04 19:30:47 +00:00
dyoung
1d1035405a
Add members ifr_buf, ifr_buflen to ifreq for specifying the location
...
and size of a userland buffer. The kernel shall not copyout more
than ifr_buflen bytes to ifr_buf. For future ioctls that use
ifr_buf and ifr_buflen instead of ifr_data, the kernel can return
a larger struct in the future than when the ioctl is introduced,
without breaking ABI compatibility, provided that the size, order,
and semantics of the fields at the front of the struct does not
change.
2005-07-27 06:36:15 +00:00
gdt
b0239c745e
Add PR_PURGEIF flag for protocols to indicate that the protocol might
...
store a struct ifnet *, and define it for udp/tcp/rawip for INET and
INET6. When deleting a struct ifnet, invoke PRU_PURGEIF on all
protocols marked with PR_PURGEIF. Closes PR kern/29580 (mine).
2005-07-19 12:58:24 +00:00
kiyohara
c1a84a4d12
ieee1394 import from FreeBSD.
2005-07-11 15:29:05 +00:00
seanb
262c8cc8a7
- Rearranged layout of struct bridge_iflist slightly to
...
make members naturally aligned.
- This saves 8 bytes worth of pad.
2005-06-28 20:09:44 +00:00
christos
853504efa1
Add some casts to appease lint
2005-06-28 15:33:27 +00:00
christos
bbfb3b7295
Names could be const.
2005-06-26 21:18:00 +00:00
christos
305da7ae35
de-lint some pointer casts.
2005-06-26 20:55:44 +00:00
mlelstv
d23f1d6e16
expire cached route. Fixes PR 22792.
2005-06-26 10:39:21 +00:00
peter
26b3362b67
Missing m_freem() in bpf_write. PR/29138.
2005-06-22 10:36:16 +00:00
dyoung
9063402978
Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
...
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
atatat
df13e3579e
Change the rest of the sysctl subsystem to use const consistently.
...
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
2005-06-20 02:49:18 +00:00
peter
6cfd105f3a
Use 'pattr' consistently in the IFQ_* macros.
2005-06-19 11:34:42 +00:00
christos
137b9bc57b
30393/Miles Nordin: PF/ALTQ does not work on ppp(4) interfaces
...
This is because the mbuf chain created did not have a header.
2005-06-11 22:26:42 +00:00
bouyer
79824021ea
As ether_input() is always called at IPL_NET, there is no need to
...
protect the IF_* operations with splnet()/splx().
2005-06-10 11:11:38 +00:00
bouyer
5ce57a0010
call (ifp->if_input) at splnet(). ifp->if_input points to ether_input()
...
which doesn't raise the IPL itself in all cases.
Should also fix PR 29546 (the pkgsrc kernel module needs to be updated).
2005-06-10 10:28:17 +00:00
atatat
420d91208b
Properly fix the constipated lossage wrt -Wcast-qual and the sysctl
...
code. I know it's not the prettiest code, but it seems to work rather
well in spite of itself.
2005-06-09 02:19:59 +00:00
martin
71d020f371
Since we decided "const struct mbuf *" would not do the right thing (tm),
...
remove ~all const from mbuf pointers.
2005-06-06 06:06:50 +00:00
he
eae41d3752
Fix -Wcast-qual warning.
2005-06-05 22:31:40 +00:00
tron
c86b2622dd
Change the first argument of the encapsulation check function from
...
"const struct mbuf *" to "struct mbuf *". Without this change the
actual implementation cannot even use m_copydata() on the mbuf chain
which is broken.
2005-06-02 15:21:35 +00:00
tron
41dcb3a310
Remove type casts and lint directives which are now longer necessary
...
because the first argument of m_copydata() is "const struct mbuf *" now.
2005-06-02 10:54:58 +00:00
jdc
9e2e82eb16
Fix this properly by renaming the conflicting variables.
2005-06-01 19:45:34 +00:00
jdc
ee08c5a2f0
Remove extraneous definition of struct llc (found by shadow warning).
2005-06-01 19:38:13 +00:00
yamt
a45d9db267
-Wno-shadow for some pf files.
...
IMO there is no point to fix them in our tree.
2005-06-01 14:15:46 +00:00
yamt
9019b2a550
make lacp_timer_funcs static.
2005-06-01 13:34:48 +00:00
yamt
88b65022bb
constify.
2005-06-01 11:25:01 +00:00
christos
6c547ba0c6
change casts back to char * and explain why.
2005-05-31 01:47:24 +00:00
christos
f954cf7e94
Add a CLLADDR macro which is the same as LLADDR only const. Make both macros
...
return void pointers.
2005-05-30 22:11:47 +00:00
christos
9a118943bd
bcopy -> memcpy
...
bcmp -> memcmp
and remove casts.
2005-05-30 04:17:59 +00:00
christos
333e176687
- sprinkle const
...
- remove unneeded casts
- use more mem*() instead of b*() funcs.
2005-05-29 21:22:52 +00:00
christos
48aa099255
PR/30285: Mile Nordin: incorrect permission check joining/leaving multicast
...
groups.
2005-05-20 16:23:05 +00:00
christos
362a4a0bd5
Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
...
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +00:00
matt
56bbae8802
rate limit the printfs for oversized ethernet packets.
2005-05-02 21:20:27 +00:00
yamt
330cc0a11e
split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx.
2005-05-02 15:34:31 +00:00
martin
3cde73812d
Fix typo, from C. Plasschaert in PR kern/30069.
2005-04-27 07:48:02 +00:00
martin
691a804898
As noted by Christophe Plasschaert on tech-kern, g/c never used
...
idletimeout configuration ioctls.
2005-04-27 07:45:52 +00:00
christos
72ad9c4bc4
no point in assigning to ifq twice.
2005-03-31 21:19:35 +00:00
christos
200dc55908
fix compiling with -DALTQ
2005-03-31 21:14:52 +00:00
explorer
fcc0a1f852
Fix error with ifq not being set before use. Explicitly set it to NULL just before it may be set to the fastq, since if this becomes a loop (and in one case already is) this will always work. ifq_enqueue2() is designed to handle this case.
2005-03-31 17:07:39 +00:00
christos
d7ec95d370
factor out the interface queueing code into two functions. One used by
...
the non point-to-point interfaces that has one queue, and one used by
the point to point interfaces that has two queues. No functional changes.
XXX: The ALTQ stuff makes the code ugly.
XXX: More cleanup to come
2005-03-31 15:48:13 +00:00
is
a0c9bc9616
Add IPv6 over GRE (contributed by Gert Doering in PR 29150).
2005-03-30 16:34:54 +00:00
cube
bc5ea6f651
Set bit 0x2 of the first byte of the generated MAC address, to indicate it
...
is a locally administered address. Pointed out by Ignatios Souvatzis.
2005-03-24 22:20:35 +00:00
agc
dd93d335d3
Fix the spelling of Bill Studenmund's name - noticed from the licences
...
on the Sony PSP as found in:
http://www.scei.co.jp/psp-license/pspnet.txt
2005-03-20 07:47:29 +00:00
thorpej
6f219f734d
Define IFFBITS and IFCAPBITS here in <net/if.h>. Taken from ifconfig.
2005-03-20 02:51:33 +00:00