Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new flag '-x' prevents script execution #258

Closed
wants to merge 1 commit into from
Closed

Added new flag '-x' prevents script execution #258

wants to merge 1 commit into from

Conversation

marjohn56
Copy link

In pfsense, dhcp6c will launch the wan script on receipt of a reply from the dhcp6 server. When in dhcp6withoutRA mode, that same script will also get called on receipt of the RA signal by rtsold. This is not an optimal situation with the same script running twice at the same time. The additional flag prevents dhcp6c from running the script only when it receives a REPLY signal from the server. As the REPLY signal is only sent when replying to a REQUEST, and as the REQUEST is only sent at the start of a session then any other trigger to run the script will execute it as normal.

In pfsense, dhcp6c will launch the wan script on receipt of a reply from the dhcp6 server. When in dhcp6withoutRA mode, that same script will also get called on receipt of the RA signal by rtsold. This is not an optimal situation with the same script running twice at the same time. The additional flag prevents dhcp6c from running the script only when it receives a REPLY signal from the server. As the REPLY signal is only sent when replying to a REQUEST, and as the REQUEST is only sent at the start of a session then any other trigger to run the script will execute it as normal.
@rbgarga
Copy link
Member

rbgarga commented Jan 17, 2017

Hello @marjohn56. It would be nice if you submit this change upstream, what would make us to carry less patches around. Could you submit it to https://github.com/hrs-allbsd/wide-dhcpv6, on branch called 'freebsd'?

@marjohn56
Copy link
Author

marjohn56 commented Jan 17, 2017 via email

@rbgarga
Copy link
Member

rbgarga commented Jan 17, 2017

I don't see it as pfSense specific, IMO it can be useful for other users

@marjohn56
Copy link
Author

OK, submitted.

@rbgarga
Copy link
Member

rbgarga commented Jan 18, 2017

Waiting the discussion at hrs-allbsd/wide-dhcpv6#2

@marjohn56
Copy link
Author

This is no longer required, alternative solution found.

@marjohn56 marjohn56 closed this Jan 19, 2017
netgate-git-updates pushed a commit that referenced this pull request Aug 17, 2017
  [ Robert Edmonds ]
  * Release 1.3.0.

  * Add test case for the issue in #220 (#254).

  * Fix issue #251, "Bad enums with multiple oneofs" (#256).

  * Add warning flags to my_CFLAGS (#257).

  * Fix namespace errors when compiled with latest protobuf (#280).

  * Bump minimum required header version for proto3 syntax (#282).

  [ Paolo Borelli ]
  * Turn the compiler into a protoc plugin (#206). This allows the protobuf-c
    compiler to be invoked as "protoc --c_out=...". For backwards
    compatibility, we still ship a protoc-c command, but it's a symlink to the
    protoc-gen-c binary.

  * proto3 support (#228).

  * Remove leftover FIXME comment (#258).

  * Fix proto3 "is zeroish" evaluation (#264).

  * Small cleanup in oneof handling (#265).

  * Rework is_zeroish one more time (#267).

  * proto3: make strings default to "" instead of NULL (#274).

  [ Tomek Wasilczyk ]
  * Fix -Wsign-compare warnings (#213).

  * Fix ISO C90 -Wdeclaration-after-statement warnings (#214).

  * Fix bigendian -Wunused-label warning (#215).

  [ Ilya Lipnitsky ]
  * protoc-c/c_message.cc: Force int size on oneof enums (#221). Fixes wrong
    enum generation and handling for onceof cases (#220).

  [ Adnan ]
  * Fix cmake build if built as part of an external project (#231).

  [ Gregory Detal ]
  * Remove .pb.{cc,h} in distdir instead of top_distdir in order to prevent
    removing files from other projects when protobuf-c is included as an
    autotools subproject (#232).

  [ Ben Farnham ]
  * Relax autoconf constraint from v2.64 to v2.63 so that it works on older
    Linux distros (#233).

  [ Thomas Koeckerbauer ]
  * rm argument fix for Solaris (#234).

  * Add 'const' qualifier to 'init_value' variable in generated files (#236).

  [ Richard Kettlewell ]
  * Document and extend the effect of passing NULL to ..._free_unpacked
    functions (#255).

  [ Alex Milich ]
  * CMake: Workaround for static builds that use MSVC (#243).

  [ Josh Junon ]
  * CMake: Allow protobuf-c to be included via include_subdirectory (#245).

  [ Alexei Kasatkin ]
  * CMake: Windows fixes (#266).

This fixes the build breakage with devel/protobuf 1.3.0 [1]

PR:		221572 [1]
Sponsored by:	Farsight Security, Inc.
netgate-git-updates pushed a commit that referenced this pull request Nov 27, 2021
Changelog:
	* Fixed: Crash while typing text on wayland. (#256)
	* Changed: Show scrollbar when not all tools visible. (#258)
netgate-git-updates pushed a commit that referenced this pull request Nov 27, 2021
Changelog:
	* Fixed: Version `Qt_5.15' not found (required by
	  /usr/bin/ksnip). (#712)
	* Fixed: CI packages show continuous suffix for tagged build.
	  (#710)
	* Fixed: kImageAnnotator not translated with deb package. (#359)
	* Fixed: Windows packages increased in size. (#713)
	* Fixed: The string 'Actions' is not available for translation.
	  (#729)
	* Fixed: HiDPI issue with multiple screen on Windows. (#668)
	* Fixed: Snipping Area not closing when pressing ESC. (#735)
	* Fixed: Sometimes "Snipping Area Rulers" not shown after
	  starting rectangular selection. (#684)
	* Fixed: Cursor not positioned correctly when snipping area
	  opens. (#736)
	* Fixed: Mouse cursor not captured when triggered via global
	  shortcut. (#737)
	* Fixed: Dual 4K screens get scrambled on X11. (#734)
	* Fixed: VCRUNTIME140_1.dll was not found. (#743)
	* Fixed: Screenshot area issue when monitor count changes on
	  Windows. (#722)
	* Fixed: Wayland does not support QWindow::requestActivate().
	  (#656)
	* Fixed: Wrong area is captured on a Wayland screen scaling.
	  (#691)
	* Changed: Enforce xdg-desktop-portal screenshots for Gnome >=
	  41. (#727)
	* Fixed kImageAnnotator: Crash while typing text on wayland.
	  (#256)
	* Changed kImageAnnotator: Show scrollbar when not all tools
	  visible. (#258)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants