Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: fusl/include/netinet/udp.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _NETINET_UDP_H 1 #ifndef _NETINET_UDP_H
2 #define _NETINET_UDP_H 2 #define _NETINET_UDP_H
3 3
4 #ifdef __cplusplus 4 #ifdef __cplusplus
5 extern "C" { 5 extern "C" {
6 #endif 6 #endif
7 7
8 #include <features.h> 8 #include <features.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #ifdef _GNU_SOURCE 11 #ifdef _GNU_SOURCE
12 #define uh_sport source 12 #define uh_sport source
13 #define uh_dport dest 13 #define uh_dport dest
14 #define uh_ulen len 14 #define uh_ulen len
15 #define uh_sum check 15 #define uh_sum check
16 #endif 16 #endif
17 17
18 struct udphdr { 18 struct udphdr {
19 » uint16_t uh_sport; 19 uint16_t uh_sport;
20 » uint16_t uh_dport; 20 uint16_t uh_dport;
21 » uint16_t uh_ulen; 21 uint16_t uh_ulen;
22 » uint16_t uh_sum; 22 uint16_t uh_sum;
23 }; 23 };
24 24
25 #define UDP_CORK» 1 25 #define UDP_CORK 1
26 #define UDP_ENCAP» 100 26 #define UDP_ENCAP 100
27 27
28 #define UDP_ENCAP_ESPINUDP_NON_IKE 1 28 #define UDP_ENCAP_ESPINUDP_NON_IKE 1
29 #define UDP_ENCAP_ESPINUDP» 2 29 #define UDP_ENCAP_ESPINUDP 2
30 #define UDP_ENCAP_L2TPINUDP» 3 30 #define UDP_ENCAP_L2TPINUDP 3
31 31
32 #define SOL_UDP 17 32 #define SOL_UDP 17
33 33
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 } 35 }
36 #endif 36 #endif
37 37
38 #endif 38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698