74f7269ef6
Merge pull request #1679 from tickerguy/tickerguy-patch-1
...
BridgeUnix.c: Disable MTU changes on FreeBSD
2024-04-19 16:46:16 +02:00
1493ccb44d
Merge PR #1865 : Fix build when NO_VLAN
2023-07-05 09:55:35 +02:00
0ab5199272
Fix build when NO_VLAN
...
Occurred at: #670
Closes: #1864
Tested build on FreeBSD with NO_VLAN by modifying CMakeLists.txt like this:
```diff
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c49a3c78..1dad3691 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -93,6 +93,7 @@ if(UNIX)
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
add_definitions(-DUNIX_BSD -DBRIDGE_BPF)
+ add_definitions(-DNO_VLAN)
include_directories(SYSTEM /usr/local/include)
link_directories(SYSTEM /usr/local/lib)
endif()
```
2023-06-17 02:18:04 +09:00
8826484245
Rename macro BRDEST -> BRIDGE for simplicity
...
UNIX_VLAN_BRDEST_IFACE_PREFIX -> UNIX_VLAN_BRIDGE_IFACE_PREFIX
2023-06-15 00:15:17 +09:00
09708bc8cb
Cedar/BridgeUnix: make sure to destroy tap device for bridge on FreeBSD
...
Also, rename NewTap/FreeTap to NewBridgeTap/FreeBridgeTap because these
functions are used to create/destroy tap device used for bridge
destination.
2023-06-15 00:15:17 +09:00
696a9bc0a1
Cedar: Don't hardcode prefix for virtual brige destination
2023-06-15 00:15:17 +09:00
0643ae70f5
Update BridgeUnix.c
...
On FreeBSD the stock code will attempt to expand the interface MTU any time a packet is to be sent that exceeds the current MTU. This results in a down/up on the interface that is wildly disruptive to existing services on that adapter and, eventually, is likely to run into MTU limits and start logging failures, even with jumbo-frame capable adapters. Thus if compiling on a FreeBSD machine disable this capability. Tested against 12.3-STABLE and 13.1-STABLE on v4.38-9760 from the FreeBSD ports tree but likely applies here as well; see bug report https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267178
2022-10-19 12:39:32 -04:00
fd92c754fc
Add missing headers required for solaris/illumos
2022-01-06 23:06:36 -05:00
f1b464e84d
fix alpine compile issue.
2021-12-25 21:22:06 +01:00
fc15d1ebd5
fix alpine compile issue.
2021-12-23 21:06:19 +01:00
73ffa10f50
Fix build error on alpine
2021-12-23 20:59:48 +01:00
2f801f30de
Fix compile errors on OpenBSD
...
- <pthread.h> included for the "pthread_t" type definition.
- <net/ethernet.h> include removed as the header doesn't exist.
- AI_ALL and AI_V4MAPPED defined to 0 as the options don't exist.
2021-05-03 19:58:12 +02:00
a6ba9b8788
Include headers properly
2021-04-05 04:48:25 +02:00
f2fee4d32c
Preliminary implementation of IPv6CP and IPv6 for PPP (untested)
2020-05-12 18:05:18 +03:00
881f34ac56
Compacting headers, updating trivial texts to fit to the license change from GPLv2 to Apache License 2.0.
2019-01-14 12:25:53 +09:00
34f443c0c7
Merge PR #718 : src/Cedar/BridgeUnix.c: resolve null pointer dereference
2018-09-29 23:30:28 +02:00
aee6084b19
BridgeUnix.c: enable local bridge function on all BSD systems
2018-09-28 20:56:10 +02:00
60bb1c34de
src/Cedar/BridgeUnix.c: resolve null pointer dereference
...
found by coverity
2018-09-28 16:17:20 +05:00
60a2583ee4
BridgeUnix.c: add TAP local bridge support for FreeBSD
2018-09-18 01:35:23 +02:00
cb2aec1314
BridgeUnix.c: convert line endings from CRLF to LF
2018-09-18 01:32:01 +02:00
2017e43ad1
Clean up device name parsing code to eliminate Coverity errors
2018-09-13 19:22:00 +02:00
b5f391016e
src/Cedar/BridgeUnix.c: resolve possible null pointer dereference
...
found by coverity
2018-09-01 15:00:42 +05:00
dbb0bb83f7
Cedar: fix segmentation fault during local bridge creation on FreeBSD
2018-08-27 00:46:59 +02:00
3ff5c061d7
Add TAP devices support for FreeBSD and OpenBSD
...
Thanks to @kennylam777 for the first implementation: https://github.com/kennylam777/SoftEtherVPN/commits/FreeBSD-TAP
2018-08-23 10:56:30 +02:00
f3ff7e2743
src/Cedar/BridgeUnix: resolve coverity "issue"
2018-08-21 11:04:48 +05:00
29c991c487
src/Cedar/BridgeUnix: null pointer dereference resolved, unused variables, functions removed
...
found by coverity, cppcheck
[src/Cedar/BridgeUnix.c:270] -> [src/Cedar/BridgeUnix.c:279]: (style) Variable 'ret' is reassigned a value before the old one has been used.
[src/Cedar/BridgeUnix.c:560] -> [src/Cedar/BridgeUnix.c:569]: (style) Variable 't' is reassigned a value before the old one has been used.
[src/Cedar/BridgeUnix.c:1528] -> [src/Cedar/BridgeUnix.c:1537]: (style) Variable 'ret' is reassigned a value before the old one has been used.
[src/Cedar/BridgeUnix.c:1278]: (style) Unused variable: c
[src/Cedar/BridgeUnix.c:1090]: (style) The function 'DlipAttachRequest' is never used.
2018-08-18 18:59:51 +05:00
e969749bc1
initialize variables (it makes coverity a bit happier)
2018-08-06 12:40:06 +05:00
59e1483dbf
Put TUN down on client disconnect.
...
On startup client creates TUN interface in UP state and kept it UP even
if connection to the server was lost. Creating interface in DOWN state,
turning it UP on successful (re-)connection to server and DOWN on either
disconnect or connection loss would enable DHCP client (say dhclient5)
to detect necessity for lease renewal.
Added a client configuration parameter to create TUN interface in DOWN
state and commands to enable, disable, and query the configuration
parameter.
Enabling the parameter causes client to put all unused TUN interfaces
DOWN, create new TUN interfaces in DOWN state, and turn TUN interfaces
corresponding to active sessions DOWN on connection loss or
disconnecting from server.
Disabling the parameter forces client to turn all TUN interfaces UP and
create new TUN interfaces in UP state.
Default value is 'Disable'.
2018-08-05 17:36:05 +02:00
e3e38873d1
Solaris: use DLPI style 1 attachment and check for /dev/net used by Illumos and Solaris 10+.
2018-07-26 03:21:05 +02:00
ac865f04fc
Correct Spelling ( #458 )
...
* spelling: accepts
* spelling: account
* spelling: accept
* spelling: accumulate
* spelling: adapter
* spelling: address
* spelling: additional
* spelling: aggressive
* spelling: adhered
* spelling: allowed
* spelling: ambiguous
* spelling: amount
* spelling: anonymous
* spelling: acquisition
* spelling: assemble
* spelling: associated
* spelling: assigns
* spelling: attach
* spelling: attempt
* spelling: attribute
* spelling: authenticate
* spelling: authentication
* spelling: available
* spelling: bridging
* spelling: cascade
* spelling: cancel
* spelling: check
* spelling: challenge
* spelling: changing
* spelling: characters
* spelling: cloud
* spelling: compare
* spelling: communication
* spelling: compatible
* spelling: compatibility
* spelling: completion
* spelling: complete
* spelling: computers
* spelling: configure
* spelling: configuration
* spelling: conformant
* spelling: connection
* spelling: contains
* spelling: continuously
* spelling: continue
* spelling: convert
* spelling: counters
* spelling: create
* spelling: created
* spelling: cumulate
* spelling: currently
* spelling: debugging
* spelling: decryption
* spelling: description
* spelling: default
* spelling: driver
* spelling: delete
* spelling: destination
* spelling: disabled
* spelling: different
* spelling: dynamically
* spelling: directory
* spelling: disappeared
* spelling: disable
* spelling: doesn't
* spelling: download
* spelling: dropped
* spelling: enable
* spelling: established
* spelling: ether
* spelling: except
* spelling: expired
* spelling: field
* spelling: following
* spelling: forever
* spelling: firewall
* spelling: first
* spelling: fragment
* spelling: function
* spelling: gateway
* spelling: identifier
* spelling: identify
* spelling: incoming
* spelling: information
* spelling: initialize
* spelling: injection
* spelling: inner
* spelling: instead
* spelling: installation
* spelling: inserted
* spelling: integer
* spelling: interrupt
* spelling: intuitive
* spelling: interval
* spelling: january
* spelling: keybytes
* spelling: know
* spelling: language
* spelling: length
* spelling: library
* spelling: listener
* spelling: maintain
* spelling: modified
* spelling: necessary
* spelling: number
* spelling: obsoleted
* spelling: occurred
* spelling: occurring
* spelling: occur
* spelling: original
* spelling: omittable
* spelling: omit
* spelling: opening
* spelling: operation
* spelling: packet
* spelling: parameters
* spelling: pointed
* spelling: popupmenuopen
* spelling: privilege
* spelling: product
* spelling: protection
* spelling: promiscuous
* spelling: prompt
* spelling: query
* spelling: random
* spelling: reconnection
* spelling: revocation
* spelling: received
* spelling: red hat
* spelling: registry
* spelling: release
* spelling: retrieve
2018-05-16 23:47:10 +02:00
9f9dc459a7
Preparing the development branch
2017-10-19 15:00:41 +09:00
faee11ff09
v4.23-9647-beta
2017-10-18 18:24:21 +09:00
17e624ac26
v4.19-9605-beta
2016-03-06 23:16:01 +09:00
4e862a7e40
v4.19-9582-beta
2015-10-06 20:18:00 +09:00
860f743dd7
v4.17-9566-beta
2015-07-17 00:31:57 +09:00
06a72040a3
v4.13-9522-beta
2015-01-30 22:30:34 +09:00
10d4b2c43d
v4.10-9505-beta
2014-10-04 00:09:23 +09:00
9f7d8578a7
v4.10-9472-beta
2014-07-12 02:06:20 +09:00
cf2a6a42bc
v4.06-9430-beta
2014-03-20 05:45:05 +09:00
001fd910fe
v4.04-9412-rtm
2014-01-15 18:01:42 +09:00
749497dde0
v4.03-9408-rtm
2014-01-04 22:00:08 +09:00