Skip to content

Commit

Permalink
git subrepo clone https://github.com/mjansson/mdns deps/mdns
Browse files Browse the repository at this point in the history
subrepo:
  subdir:   "deps/mdns"
  merged:   "c36996e0"
upstream:
  origin:   "https://github.com/mjansson/mdns"
  branch:   "main"
  commit:   "c36996e0"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo.git"
  commit:   "2f68596"
  • Loading branch information
pcercuei committed Mar 21, 2022
1 parent a5c9cf5 commit 219714a
Show file tree
Hide file tree
Showing 12 changed files with 3,418 additions and 0 deletions.
47 changes: 47 additions & 0 deletions deps/mdns/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
BasedOnStyle: Google
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: 'false'
AlignConsecutiveDeclarations: 'false'
AlignOperands: 'true'
AlignTrailingComments: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'false'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: 'false'
AllowShortLoopsOnASingleLine: 'false'
AlwaysBreakAfterDefinitionReturnType: TopLevel
AlwaysBreakAfterReturnType: TopLevel
AlwaysBreakBeforeMultilineStrings: 'true'
AlwaysBreakTemplateDeclarations: 'true'
BinPackArguments: 'true'
BinPackParameters: 'true'
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: 'false'
ColumnLimit: '100'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'false'
DerivePointerAlignment: 'false'
ExperimentalAutoDetectBinPacking: 'false'
IndentCaseLabels: 'true'
IndentWidth: '4'
IndentWrappedFunctionNames: 'false'
KeepEmptyLinesAtTheStartOfBlocks: 'false'
MaxEmptyLinesToKeep: '1'
NamespaceIndentation: None
ObjCSpaceAfterProperty: 'true'
ObjCSpaceBeforeProtocolList: 'true'
PointerAlignment: Left
SortIncludes: 'false'
SpaceAfterCStyleCast: 'false'
SpaceAfterTemplateKeyword: 'true'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
SpacesInContainerLiterals: 'false'
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
TabWidth: '4'
UseTab: ForIndentation
29 changes: 29 additions & 0 deletions deps/mdns/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Auto detect text files and perform LF normalization
* text=auto

# Never mangle resource blob files
*.blob -text

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# Ignore build scripts in language stats
build/* linguist-vendored
configure.py linguist-vendored=true
3 changes: 3 additions & 0 deletions deps/mdns/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [mjansson]
230 changes: 230 additions & 0 deletions deps/mdns/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
.ninja*
build.ninja

# Generated version
version.c

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

#Android local build files
build/android/assets
build/android/libs

#Xcode build
build/xcode/foundation/build

#Doxygen generated
doc/html

#Coverity scan
cov-int/
cov-int.*

#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
[Pp]rofile/
[Dd]eploy/
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pchi
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.vspscc
.builds
*.dotCover
*.lastbuildstate
*.unsuccessfulbuild
*.opendb
*.vc
*.VC.db
*.db-shm
*.db-wal

## TODO: If you have NuGet Package Restore enabled, uncomment this
#packages/

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf

# Visual Studio profiler
*.psess
*.vsp

# ReSharper is a .NET coding add-in
_ReSharper*

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish

# Others
[Bb]in
[Oo]bj
sql
TestResults
*.Cache
ClientBin
stylecop.*
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML


############
## Windows
############

# Windows image file caches
Thumbs.db

# Folder config file
Desktop.ini


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
dist
eggs
parts
var
sdist
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg

# Mac crap
.DS_Store


###############
## Generic
###############

#Project builds
lib/**
bin/**
dist/**
libs/**

#Log files
*.log
*.tlog

#Scons build
.sconsign.dblite
build/scons/debug*
build/scons/release*
build/scons/profi*
build/scons/deploy*

#Backups
*~

#Object files
*.o

#XCode
xcuserdata
*.xccheckout

#SublimeText local workspace
*.sublime-workspace

#Never store keystores in version control!
*.keystore

#Do not store local build prefs
build.json
codesign.json
coveralls.json
coverallsreport.json
codecov.json
codecovreport.json
12 changes: 12 additions & 0 deletions deps/mdns/.gitrepo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = https://github.com/mjansson/mdns
branch = main
commit = c36996e067202691c562e2ea1ee59f9494c87231
parent = e175f25bbf6b131f3cdb52a4b6662412dbdd286a
method = merge
cmdver = 0.4.3
35 changes: 35 additions & 0 deletions deps/mdns/CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
1.4.2

Add mdns_goodbye_multicast function to send end of service announcement

Fix the rclass and TTL for announce and goodbye to avoid flush flag on shared records

Fixed an issue with parsing multiple answer records in discovery

All authority and additional records are now sent to service callback function

Various code cleanups, making all functions inline declared.

Added a dump mode to the example application for listing all mDNS traffic on port 5353


1.4.1

Use const pointers in socket open and setup functions.

Avoid null pointer arithmetics for standard compliance.


1.4

Returning non-zero from callback function during record parsing immedediately stops parsing and returns the number of records parsed so far.

The function to send a query answer has been split in two, one for unicast answer and one for multicast.

The functions to send query answers have been generalized to send any number of records.

Added new function to do multicast announce on start/wake-up (unsolicited answer).

Added parsing of ANY question records and DNS-SD queries with multiple questions

Removed mdns_discovery_answer in favour of the new generalized answer functions, to handle both unicast and multicast response
Loading

0 comments on commit 219714a

Please sign in to comment.