(address)
| 3716 | return ipv4; |
| 3717 | } |
| 3718 | function serializeIPv4(address) { |
| 3719 | let output = ""; |
| 3720 | let n2 = address; |
| 3721 | for (let i3 = 1; i3 <= 4; ++i3) { |
| 3722 | output = String(n2 % 256) + output; |
| 3723 | if (i3 !== 4) { |
| 3724 | output = `.${output}`; |
| 3725 | } |
| 3726 | n2 = Math.floor(n2 / 256); |
| 3727 | } |
| 3728 | return output; |
| 3729 | } |
| 3730 | function parseIPv6(input) { |
| 3731 | const address = [0, 0, 0, 0, 0, 0, 0, 0]; |
| 3732 | let pieceIndex = 0; |
no outgoing calls
no test coverage detected
searching dependent graphs…