Skip to content

Commit 8764410

Browse files
authored
Merge pull request #1720 from glebpom/linux-udp-constants
Add Linux UDP constants
2 parents 93f7d83 + 126dc0c commit 8764410

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

ci/docker/mips-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# FIXME: Ubuntu 19.10 is missing gcc-mips-linux-gnu.
2-
FROM ubuntu:19.04
1+
FROM ubuntu:20.04
32

43
RUN apt-get update && apt-get install -y --no-install-recommends \
54
gcc libc6-dev qemu-user ca-certificates \

ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:19.10
1+
FROM ubuntu:20.04
22

33
RUN apt-get update && apt-get install -y --no-install-recommends \
44
gcc libc6-dev qemu-user ca-certificates \

ci/docker/mips64el-unknown-linux-gnuabi64/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# FIXME: Ubuntu 19.10 is missing gcc-mips-linux-gnu.
2-
FROM ubuntu:19.04
1+
FROM ubuntu:20.04
32

43
RUN apt-get update && apt-get install -y --no-install-recommends \
54
gcc libc6-dev qemu-user ca-certificates \

src/unix/linux_like/linux/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,14 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
23222322
pub const ALG_OP_DECRYPT: ::c_int = 0;
23232323
pub const ALG_OP_ENCRYPT: ::c_int = 1;
23242324

2325+
// include/uapi/linux/udp.h
2326+
pub const UDP_CORK: ::c_int = 1;
2327+
pub const UDP_ENCAP: ::c_int = 100;
2328+
pub const UDP_NO_CHECK6_TX: ::c_int = 101;
2329+
pub const UDP_NO_CHECK6_RX: ::c_int = 102;
2330+
pub const UDP_SEGMENT: ::c_int = 103;
2331+
pub const UDP_GRO: ::c_int = 104;
2332+
23252333
// include/uapi/linux/mman.h
23262334
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
23272335

0 commit comments

Comments
 (0)