Ticket #21762: patch-leopard.diff
File patch-leopard.diff, 2.3 KB (added by mklein-de (Michael Klein), 15 years ago) |
---|
-
./src/tap/Makefile
old new 25 25 -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"$(TUNTAP_VERSION)\" \ 26 26 -DTAP_KEXT_VERSION=\"$(TAP_KEXT_VERSION)\" 27 27 CCFLAGS = $(CFLAGS) 28 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ -Xlinker -kext28 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ 29 29 30 30 CCP = g++ 31 31 CC = gcc -
./src/tun/Makefile
old new 26 26 -DKERNEL -D__APPLE__ -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"$(TUNTAP_VERSION)\" \ 27 27 -DTUN_KEXT_VERSION=\"$(TUN_KEXT_VERSION)\" 28 28 CCFLAGS = $(CFLAGS) 29 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ -Xlinker -kext29 LDFLAGS = -Wall -mkernel -nostdlib -r -lcc_kext __CFLAGS__ 30 30 31 31 CCP = g++ 32 32 CC = gcc -
./src/tuntap.cc
old new 75 75 } 76 76 77 77 errno_t 78 tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg)78 tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg) 79 79 { 80 80 if (ifp != NULL) { 81 81 tuntap_interface *ttif = (tuntap_interface *) ifnet_softc(ifp); -
./src/tuntap.h
old new 54 54 extern "C" { 55 55 56 56 errno_t tuntap_if_output(ifnet_t ifp, mbuf_t m); 57 errno_t tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg);57 errno_t tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg); 58 58 errno_t tuntap_if_set_bpf_tap(ifnet_t ifp, bpf_tap_mode mode, int (*cb)(ifnet_t, mbuf_t)); 59 59 errno_t tuntap_if_demux(ifnet_t ifp, mbuf_t m, char *header, protocol_family_t *proto); 60 60 errno_t tuntap_if_framer(ifnet_t ifp, mbuf_t *m, const struct sockaddr *dest, … … 264 264 265 265 /* interface functions. friends and implementation methods */ 266 266 friend errno_t tuntap_if_output(ifnet_t ifp, mbuf_t m); 267 friend errno_t tuntap_if_ioctl(ifnet_t ifp, long unsigned int cmd, void *arg);267 friend errno_t tuntap_if_ioctl(ifnet_t ifp, uint32_t cmd, void *arg); 268 268 friend errno_t tuntap_if_set_bpf_tap(ifnet_t ifp, bpf_tap_mode mode, 269 269 int (*cb)(ifnet_t, mbuf_t)); 270 270 friend errno_t tuntap_if_demux(ifnet_t ifp, mbuf_t m, char *header,