|
go.net/ipv4: drop DIffServ and ECN constants, add ICMPType
This CL removes DiffServ and ECN constants assigned by IANA because
for now we don't have an appropriate package to put those constants
as part of API. There were used for the type-of-service field of IPv4
header and the traffic class field of IPv6 header.
Also adds ICMPType for convenience, makes use of internal IANA
protocol number constants instead of syscall's to prevent churning of
package syscall in the near future.
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+754 lines, -140 lines) |
Patch |
 |
M |
ipv4/control_bsd.go
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ipv4/control_linux.go
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ipv4/doc.go
|
View
|
|
3 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ipv4/example_test.go
|
View
|
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
A |
ipv4/gen.go
|
View
|
|
1 chunk |
+242 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ipv4/gentest.go
|
View
|
|
1 chunk |
+196 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipv4/header.go
|
View
|
|
2 chunks |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
A |
ipv4/iana.go
|
View
|
|
1 chunk |
+179 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ipv4/iana_test.go
|
View
|
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ipv4/icmp.go
|
View
|
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ipv4/mockicmp_test.go
|
View
|
|
3 chunks |
+4 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ipv4/multicast_test.go
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ipv4/multicastsockopt_test.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipv4/sockopt_bsd.go
|
View
|
|
12 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ipv4/sockopt_freebsd.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ipv4/sockopt_linux.go
|
View
|
|
12 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ipv4/sockopt_unix.go
|
View
|
|
8 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ipv4/sockopt_windows.go
|
View
|
1
|
12 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
ipv4/unicast_test.go
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ipv4/unicastsockopt_test.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 13
|