File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,5 +4,7 @@ int main() {
44 int tcp = IPPROTO_TCP;
55 int udp = IPPROTO_UDP;
66 int ip = IPPROTO_IP;
7- return tcp + udp + ip;
7+ int ip6 = IPPROTO_IPV6;
8+ int mptcp = IPPROTO_MPTCP;
9+ return tcp + udp + ip + ip6 + mptcp;
810}
Original file line number Diff line number Diff line change @@ -13,5 +13,8 @@ fn main_0() -> i32 {
1313 let tcp: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_TCP ) ) ;
1414 let udp: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_UDP ) ) ;
1515 let ip: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_IP ) ) ;
16- return ( ( ( * tcp. borrow ( ) ) + ( * udp. borrow ( ) ) ) + ( * ip. borrow ( ) ) ) ;
16+ let ip6: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_IPV6 ) ) ;
17+ let mptcp: Value < i32 > = Rc :: new ( RefCell :: new ( libc:: IPPROTO_MPTCP ) ) ;
18+ return ( ( ( ( ( * tcp. borrow ( ) ) + ( * udp. borrow ( ) ) ) + ( * ip. borrow ( ) ) ) + ( * ip6. borrow ( ) ) )
19+ + ( * mptcp. borrow ( ) ) ) ;
1720}
Original file line number Diff line number Diff line change @@ -15,5 +15,7 @@ unsafe fn main_0() -> i32 {
1515 let mut tcp: i32 = libc:: IPPROTO_TCP ;
1616 let mut udp: i32 = libc:: IPPROTO_UDP ;
1717 let mut ip: i32 = libc:: IPPROTO_IP ;
18- return ( ( ( tcp) + ( udp) ) + ( ip) ) ;
18+ let mut ip6: i32 = libc:: IPPROTO_IPV6 ;
19+ let mut mptcp: i32 = libc:: IPPROTO_MPTCP ;
20+ return ( ( ( ( ( tcp) + ( udp) ) + ( ip) ) + ( ip6) ) + ( mptcp) ) ;
1921}
You can’t perform that action at this time.
0 commit comments