Skip to content

Instantly share code, notes, and snippets.

--- ../passenger-4.0.44/build/basics.rb.orig 2013-10-26 22:00:00.000000000 +0000
+++ ../passenger-4.0.44/build/basics.rb 2014-06-19 16:23:44.541302596 +0000
@@ -171,6 +171,7 @@
[EXTRA_CFLAGS, EXTRA_CXXFLAGS].each do |flags|
flags << " -fno-omit-frame-pointers" if USE_ASAN
flags << " -DPASSENGER_DISABLE_THREAD_LOCAL_STORAGE" if !boolean_option('PASSENGER_THREAD_LOCAL_STORAGE', true)
+ flags << " -fPIC"
end
# Extra linker flags that should always be passed to the linker.
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_tap.h>
#include <netinet/in.h>
#include <err.h>
amd64_syscall() at amd64_syscall+0x276/frame 0xfffffe018eceaab0
______ ____ _____ _____
| ____| | _ \ / ____| __ \
| |___ _ __ ___ ___ | |_) | (___ | | | |
| ___| '__/ _ \/ _ \| _ < \___ \| | | |
| | | | | __/ __/| |_) |____) | |__| |
| | | | | | || | | |
|_| |_| \___|\___||____/|_____/|_____/ ``` `
s` `.....---.......--.``` -/
+============Welcome to FreeBSD===========+ +o .--` /y:` +.
package main
import (
"fmt"
"time"
)
var end = make(chan struct{})
func tick(n int) {
Index: dev/xen/netback/netback.c
===================================================================
--- dev/xen/netback/netback.c (revision 304674)
+++ dev/xen/netback/netback.c (working copy)
@@ -116,7 +116,7 @@
#define GNTTAB_LEN (64)
/* Features supported by all backends. TSO and LRO can be negotiated */
-#define XNB_CSUM_FEATURES (CSUM_TCP | CSUM_UDP)
+#define XNB_CSUM_FEATURES (0)
ext_if="vtnet0"
jail_net="172.22.0.0/16"
nat pass log on $ext_if from $jail_net to !$jail_net -> $ext_if
rdr log on $ext_if proto tcp to port 8080 -> 172.22.0.22 port 8080
rdr log on lo0 proto tcp from $jail_net to ($ext_if) port 8080 -> 172.22.0.22 port 8080
pass all
ext_if="vtnet0"
jail_net="172.22.0.0/16"
nat pass on $ext_if from $jail_net to !$jail_net -> $ext_if
rdr on $ext_if proto tcp to port 8080 -> 172.22.0.22 port 8080
rdr on lo0 proto tcp from $jail_net to ($ext_if) port 8080 -> 172.22.0.22 port 8080
pass all
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 r309815: Sat Dec 10 20:13:02 UTC 2016
root@rpi3:/usr/obj/usr/src/sys/GENERIC-NODEBUG arm64
FreeBSD clang version 3.9.0 (tags/RELEASE_390/final 280324) (based on LLVM 3.9.0)
VT: init without driver.
# fetch http://avalon.dragonflybsd.org/snapshots/x86_64/DragonFly-x86_64-LATEST-ISO.iso.bz2
# bzip2 -d DragonFly-x86_64-LATEST-ISO.iso.bz2
# zfs create -V 100G root/vms/data/dfly
# bhyve -A -H -l com1,/dev/nmdm3A -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -m 2G -s 0,hostbridge -s 3:0,ahci-cd,/vms/iso/DragonFly-x86_64-LATEST-ISO.iso -s 5:0,virtio-net,tap4 -s 3:1,ahci-hd,/dev/zvol/zroot/vms/data/dfly -s 29,fbuf,tcp=0.0.0.0:5903,w=1024,h=768,wait -s 30,xhci,tablet -s 31,lpc -w -u dfly
diff --git a/usr.sbin/jail/command.c b/usr.sbin/jail/command.c
index f95344cfe4e..7e8fc974a91 100644
--- a/usr.sbin/jail/command.c
+++ b/usr.sbin/jail/command.c
@@ -30,6 +30,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/event.h>
#include <sys/mount.h>
+#include <sys/rtprio.h>
#include <sys/stat.h>