Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
7720-erts-preloaded-Updated.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 7720-erts-preloaded-Updated.patch of Package erlang
From 329bacc40705f2cb7918ae0839a22d53dab688c5 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Mon, 23 May 2022 16:14:25 +0200 Subject: [PATCH 10/11] [erts|preloaded] Updated Removed the ip 'type' (not used, so Dialyzer has issues). OTP-18091 --- erts/preloaded/ebin/prim_inet.beam | Bin 102920 -> 102424 bytes erts/preloaded/src/prim_inet.erl | 14 +++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/erts/preloaded/src/prim_inet.erl b/erts/preloaded/src/prim_inet.erl index 6e6f1dc3de..c6274f89d6 100644 --- a/erts/preloaded/src/prim_inet.erl +++ b/erts/preloaded/src/prim_inet.erl @@ -1921,7 +1921,7 @@ type_value_2(uint16, X) when X band 16#ffff =:= X -> true; type_value_2(uint8, X) when X band 16#ff =:= X -> true; type_value_2(time, infinity) -> true; type_value_2(time, X) when is_integer(X), X >= 0 -> true; -type_value_2(ip,{A,B,C,D}) when ?ip(A,B,C,D) -> true; +%% type_value_2(ip,{A,B,C,D}) when ?ip(A,B,C,D) -> true; type_value_2(mif,{A,B,C,D}) when ?ip(A,B,C,D) -> true; type_value_2(mif,Idx) when is_integer(Idx) -> true; type_value_2(membership,{{A1,B1,C1,D1}, {A2,B2,C2,D2}}) @@ -2109,10 +2109,10 @@ enc_value_2(uint16, Val) -> ?int16(Val); enc_value_2(uint8, Val) -> ?int8(Val); enc_value_2(time, infinity) -> ?int32(-1); enc_value_2(time, Val) -> ?int32(Val); -enc_value_2(ip, IP) - when (tuple_size(IP) =:= 4) -> ip4_to_bytes(IP); -enc_value_2(ip, any) -> [0,0,0,0]; -enc_value_2(ip, loopback) -> [127,0,0,1]; +%% enc_value_2(ip, IP) +%% when (tuple_size(IP) =:= 4) -> ip4_to_bytes(IP); +%% enc_value_2(ip, any) -> [0,0,0,0]; +%% enc_value_2(ip, loopback) -> [127,0,0,1]; enc_value_2(mif, IP) when (tuple_size(IP) =:= 4) -> ip4_to_bytes(IP); enc_value_2(mif, Idx) @@ -2145,7 +2145,7 @@ enc_value_2(membership, {IP, Idx}) is_integer(Idx) -> %% The reason for turning this thing around (the interface %% before the address) is because of the inet-driver (it reads out a - %% 32-bit value for *all* options, so we might as well put a 32-nit + %% 32-bit value for *all* options, so we might as well put a 32-bit %% value "first". [?int32(?INET_AF_INET6), ?int32(Idx), ip6_to_bytes(IP)]; @@ -2248,7 +2248,7 @@ dec_value(time, [X3,X2,X1,X0|T]) -> -1 -> {infinity, T}; Val -> {Val, T} end; -dec_value(ip, [A,B,C,D|T]) -> {{A,B,C,D}, T}; +%% dec_value(ip, [A,B,C,D|T]) -> {{A,B,C,D}, T}; dec_value(mif, [A,B,C,D, X3,X2,X1,X0|T]) -> Domain = ?i32(X3, X2, X1, X0), case Domain of -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor