diff options
| author | junyulai <junyulai@google.com> | 2018-11-26 22:36:10 +0900 |
|---|---|---|
| committer | junyulai <junyulai@google.com> | 2018-12-11 10:12:47 +0800 |
| commit | c4e591aa04552541a8ae63af00541baa9046858b (patch) | |
| tree | 7f8d90d2ec6145679c647e8759bb47e509663d26 /config.h | |
| parent | 3850bee1d5dd1eae3c28ce09f8e4bd0c7099c5a8 (diff) | |
| download | platform_external_android-clat-c4e591aa04552541a8ae63af00541baa9046858b.tar.gz platform_external_android-clat-c4e591aa04552541a8ae63af00541baa9046858b.tar.bz2 platform_external_android-clat-c4e591aa04552541a8ae63af00541baa9046858b.zip | |
Re-indent clatd code with clang-format
clang-format --style file -i *.{c,h,cpp}
Bug: 118848635
Test: 1. browse over ipv6-only network
2. atest clatd_test
3. clang-format --style file -i *.{c,h,cpp}
Change-Id: I7389426101df7745370d0ac5c55176cd8fe2b08b
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,8 +18,8 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ -#include <netinet/in.h> #include <linux/if.h> +#include <netinet/in.h> #define DEFAULT_IPV4_LOCAL_SUBNET "192.0.0.4" #define DEFAULT_IPV4_LOCAL_PREFIXLEN "29" @@ -40,7 +40,7 @@ struct clat_config { extern struct clat_config Global_Clatd_Config; int read_config(const char *file, const char *uplink_interface, const char *plat_prefix, - unsigned net_id); + unsigned net_id); void config_generate_local_ipv6_subnet(struct in6_addr *interface_ip); in_addr_t config_select_ipv4_address(const struct in_addr *ip, int16_t prefixlen); int ipv6_prefix_equal(struct in6_addr *a1, struct in6_addr *a2); |
