svn commit: r567898 - head/net/vde2/files

Fernando Apesteguía fernape at FreeBSD.org
Tue Mar 9 06:48:03 UTC 2021


Author: fernape
Date: Tue Mar  9 06:48:02 2021
New Revision: 567898
URL: https://svnweb.freebsd.org/changeset/ports/567898

Log:
  net/vde2: fix build with "WITH_DEBUG"
  
  PR:	253791
  Submitted by:	mizhka at gmail.com

Added:
  head/net/vde2/files/patch-src_vde__l3_vde__l3.c   (contents, props changed)
  head/net/vde2/files/patch-src_vde__switch_fstp.c   (contents, props changed)

Added: head/net/vde2/files/patch-src_vde__l3_vde__l3.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/vde2/files/patch-src_vde__l3_vde__l3.c	Tue Mar  9 06:48:02 2021	(r567898)
@@ -0,0 +1,23 @@
+--- src/vde_l3/vde_l3.c.orig	2021-02-23 10:35:14 UTC
++++ src/vde_l3/vde_l3.c
+@@ -99,17 +99,19 @@ struct routing_policy unlimited_fifo_routing_policy ={
+ 	.policy_init = ufifo_init
+ };
+ 
+-
++static
+ inline struct vde_ethernet_header *ethhead(struct vde_buff *vdb)
+ {
+ 	return (struct vde_ethernet_header*)(vdb->data);
+ }
+ 
++static
+ inline struct iphdr *iphead(struct vde_buff *vdb)
+ {
+ 	return (struct iphdr*)(vdb->data + 14);
+ }
+ 
++static
+ inline void *payload(struct vde_buff *vdb)
+ {
+ 	return (uint8_t*)(vdb->data + 14 + sizeof(struct iphdr));

Added: head/net/vde2/files/patch-src_vde__switch_fstp.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/vde2/files/patch-src_vde__switch_fstp.c	Tue Mar  9 06:48:02 2021	(r567898)
@@ -0,0 +1,18 @@
+--- src/vde_switch/fstp.c.orig  2021-02-23 10:19:12 UTC
++++ src/vde_switch/fstp.c
+@@ -30,6 +30,7 @@ static int numports;
+ #ifdef FSTP
+ #include <fstp.h>
+ /*********************** sending macro used by FSTP & Core ******************/
++static
+ void inline ltonstring(unsigned long l,unsigned char *s) {
+        s[3]=l; l>>=8;
+        s[2]=l; l>>=8;
+@@ -37,6 +38,7 @@ void inline ltonstring(unsigned long l,unsigned char *
+        s[0]=l;
+ }
+
++static
+ unsigned long inline nstringtol(unsigned char *s) {
+        return (s[0]<<24)+(s[1]<<16)+(s[2]<<8)+s[3];
+ }


More information about the svn-ports-head mailing list