Repository: rsmarples/dhcpcd Branch: master Commit: 9a298fd9b45e Files: 158 Total size: 1.5 MB Directory structure: gitextract_70kvohjb/ ├── .clang-format ├── .clang-tidy ├── .clangd ├── .github/ │ └── workflows/ │ ├── build.yml │ └── format.yml ├── .gitignore ├── BUILDING.md ├── LICENSE ├── Makefile ├── Makefile.inc ├── README.md ├── compat/ │ ├── _strtoi.h │ ├── arc4random.c │ ├── arc4random.h │ ├── arc4random_uniform.c │ ├── arc4random_uniform.h │ ├── bitops.h │ ├── chacha_private.h │ ├── closefrom.c │ ├── closefrom.h │ ├── consttime_memequal.h │ ├── crypt/ │ │ ├── hmac.c │ │ ├── hmac.h │ │ ├── md5.c │ │ ├── md5.h │ │ ├── sha256.c │ │ └── sha256.h │ ├── crypt_openssl/ │ │ ├── hmac.c │ │ ├── hmac.h │ │ ├── sha256.c │ │ └── sha256.h │ ├── dprintf.c │ ├── dprintf.h │ ├── endian.h │ ├── pidfile.c │ ├── pidfile.h │ ├── queue.h │ ├── reallocarray.c │ ├── reallocarray.h │ ├── setproctitle.c │ ├── setproctitle.h │ ├── strlcpy.c │ ├── strlcpy.h │ ├── strtoi.c │ ├── strtoi.h │ └── strtou.c ├── config-null.mk ├── configure ├── hooks/ │ ├── 01-test │ ├── 10-wpa_supplicant │ ├── 15-timezone │ ├── 20-resolv.conf │ ├── 29-lookup-hostname │ ├── 30-hostname.in │ ├── 50-dhcpcd-compat │ ├── 50-ntp.conf │ ├── 50-timesyncd.conf │ ├── 50-yp.conf │ ├── 50-ypbind.in │ ├── Makefile │ ├── dhcpcd-run-hooks.8.in │ └── dhcpcd-run-hooks.in ├── iconfig.mk ├── src/ │ ├── GNUmakefile │ ├── Makefile │ ├── Makefile.inc │ ├── arp.c │ ├── arp.h │ ├── auth.c │ ├── auth.h │ ├── bpf-bsd.c │ ├── bpf-dlpi.c │ ├── bpf-dlpi.h │ ├── bpf-linux.c │ ├── bpf-pcap.c │ ├── bpf.c │ ├── bpf.h │ ├── common.c │ ├── common.h │ ├── control.c │ ├── control.h │ ├── defs.h │ ├── dev/ │ │ ├── Makefile │ │ └── udev.c │ ├── dev.c │ ├── dev.h │ ├── dhcp-common.c │ ├── dhcp-common.h │ ├── dhcp.c │ ├── dhcp.h │ ├── dhcp6.c │ ├── dhcp6.h │ ├── dhcpcd-definitions-small.conf │ ├── dhcpcd-definitions.conf │ ├── dhcpcd-embedded.c.in │ ├── dhcpcd-embedded.h.in │ ├── dhcpcd.8.in │ ├── dhcpcd.c │ ├── dhcpcd.conf │ ├── dhcpcd.conf.5.in │ ├── dhcpcd.h │ ├── duid.c │ ├── duid.h │ ├── eloop.c │ ├── eloop.h │ ├── genembedc │ ├── genembedh │ ├── if-bsd.c │ ├── if-linux-wext.c │ ├── if-linux.c │ ├── if-options.c │ ├── if-options.h │ ├── if-sun.c │ ├── if.c │ ├── if.h │ ├── ipv4.c │ ├── ipv4.h │ ├── ipv4ll.c │ ├── ipv4ll.h │ ├── ipv6.c │ ├── ipv6.h │ ├── ipv6nd.c │ ├── ipv6nd.h │ ├── logerr.c │ ├── logerr.h │ ├── privsep-bpf.c │ ├── privsep-bpf.h │ ├── privsep-bsd.c │ ├── privsep-control.c │ ├── privsep-control.h │ ├── privsep-inet.c │ ├── privsep-inet.h │ ├── privsep-linux.c │ ├── privsep-root.c │ ├── privsep-root.h │ ├── privsep-sun.c │ ├── privsep.c │ ├── privsep.h │ ├── queue.h │ ├── route.c │ ├── route.h │ ├── sa.c │ ├── sa.h │ ├── script.c │ └── script.h ├── tests/ │ ├── Makefile │ └── crypt/ │ ├── .gitignore │ ├── GNUmakefile │ ├── Makefile │ ├── README.md │ ├── run-test.c │ ├── test.h │ ├── test_hmac_md5.c │ └── test_sha256.c └── vendor/ ├── README.md ├── queue.h ├── rbtree.c └── rbtree.h ================================================ FILE CONTENTS ================================================ ================================================ FILE: .clang-format ================================================ # Basic .clang-format taken from FreeBSD --- BasedOnStyle: WebKit AlignAfterOpenBracket: DontAlign AlignConsecutiveMacros: AcrossEmptyLines AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false AlignEscapedNewlines: Left AlignOperands: false AlignTrailingComments: true AllowAllArgumentsOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: InlineOnly AllowShortIfStatementsOnASingleLine: Never AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: TopLevelDefinitions AlwaysBreakBeforeMultilineStrings: false AlwaysBreakTemplateDeclarations: MultiLine BinPackArguments: true BinPackParameters: true BreakBeforeBinaryOperators: None BreakBeforeBraces: WebKit BreakBeforeTernaryOperators: false # TODO: BreakStringLiterals can cause very strange formatting so turn it off? BreakStringLiterals: false # Prefer: # some_var = function(arg1, # arg2) # over: # some_var = # function(arg1, arg2) PenaltyBreakAssignment: 100 # Prefer: # some_long_function(arg1, arg2 # arg3) # over: # some_long_function( # arg1, arg2, arg3) PenaltyBreakBeforeFirstCallParameter: 100 CompactNamespaces: true DerivePointerAlignment: false DisableFormat: false ForEachMacros: - ARB_ARRFOREACH - ARB_ARRFOREACH_REVWCOND - ARB_ARRFOREACH_REVERSE - ARB_FOREACH - ARB_FOREACH_FROM - ARB_FOREACH_SAFE - ARB_FOREACH_REVERSE - ARB_FOREACH_REVERSE_FROM - ARB_FOREACH_REVERSE_SAFE - BIT_FOREACH_ISCLR - BIT_FOREACH_ISSET - CPU_FOREACH - CPU_FOREACH_ISCLR - CPU_FOREACH_ISSET - FOREACH_THREAD_IN_PROC - FOREACH_PROC_IN_SYSTEM - FOREACH_PRISON_CHILD - FOREACH_PRISON_DESCENDANT - FOREACH_PRISON_DESCENDANT_LOCKED - FOREACH_PRISON_DESCENDANT_LOCKED_LEVEL - MNT_VNODE_FOREACH_ALL - MNT_VNODE_FOREACH_ACTIVE - RB_FOREACH - RB_FOREACH_FROM - RB_FOREACH_SAFE - RB_FOREACH_REVERSE - RB_FOREACH_REVERSE_FROM - RB_FOREACH_REVERSE_SAFE - SLIST_FOREACH - SLIST_FOREACH_FROM - SLIST_FOREACH_FROM_SAFE - SLIST_FOREACH_SAFE - SLIST_FOREACH_PREVPTR - SPLAY_FOREACH - LIST_FOREACH - LIST_FOREACH_FROM - LIST_FOREACH_FROM_SAFE - LIST_FOREACH_SAFE - STAILQ_FOREACH - STAILQ_FOREACH_FROM - STAILQ_FOREACH_FROM_SAFE - STAILQ_FOREACH_SAFE - TAILQ_FOREACH - TAILQ_FOREACH_FROM - TAILQ_FOREACH_FROM_SAFE - TAILQ_FOREACH_REVERSE - TAILQ_FOREACH_REVERSE_FROM - TAILQ_FOREACH_REVERSE_FROM_SAFE - TAILQ_FOREACH_REVERSE_SAFE - TAILQ_FOREACH_SAFE - VM_MAP_ENTRY_FOREACH - VM_PAGE_DUMP_FOREACH SpaceBeforeParens: ControlStatementsExceptForEachMacros IndentCaseLabels: false IndentPPDirectives: None Language: Cpp NamespaceIndentation: None PointerAlignment: Right ContinuationIndentWidth: 4 IndentWidth: 8 TabWidth: 8 ColumnLimit: 80 UseTab: Always SpaceAfterCStyleCast: false IncludeBlocks: Regroup IncludeCategories: - Regex: '^\"opt_.*\.h\"' Priority: 1 SortPriority: 10 - Regex: '^' Priority: 2 SortPriority: 20 - Regex: '^' Priority: 2 SortPriority: 21 - Regex: '^' Priority: 2 SortPriority: 22 - Regex: '^' Priority: 2 SortPriority: 23 - Regex: '^' Priority: 3 SortPriority: 30 - Regex: '^ before this ... - Regex: '^' Priority: 7 SortPriority: 71 # Most BSD require before this ... - Regex: '^' Priority: 7 SortPriority: 71 - Regex: '^