{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24652","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24652/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24652/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24652/events","html_url":"https://github.com/rust-lang/rust/pull/24652","id":69735074,"number":24652,"title":"Add functions to convert IPv4 to long and back","user":{"login":"achanda","id":2165463,"avatar_url":"https://avatars.githubusercontent.com/u/2165463?v=3","gravatar_id":"","url":"https://api.github.com/users/achanda","html_url":"https://github.com/achanda","followers_url":"https://api.github.com/users/achanda/followers","following_url":"https://api.github.com/users/achanda/following{/other_user}","gists_url":"https://api.github.com/users/achanda/gists{/gist_id}","starred_url":"https://api.github.com/users/achanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achanda/subscriptions","organizations_url":"https://api.github.com/users/achanda/orgs","repos_url":"https://api.github.com/users/achanda/repos","events_url":"https://api.github.com/users/achanda/events{/privacy}","received_events_url":"https://api.github.com/users/achanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-21T03:38:37Z","updated_at":"2015-04-21T22:40:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/24652","html_url":"https://github.com/rust-lang/rust/pull/24652","diff_url":"https://github.com/rust-lang/rust/pull/24652.diff","patch_url":"https://github.com/rust-lang/rust/pull/24652.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/94963312","html_url":"https://github.com/rust-lang/rust/pull/24652#issuecomment-94963312","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/24652","id":94963312,"user":{"login":"achanda","id":2165463,"avatar_url":"https://avatars.githubusercontent.com/u/2165463?v=3","gravatar_id":"","url":"https://api.github.com/users/achanda","html_url":"https://github.com/achanda","followers_url":"https://api.github.com/users/achanda/followers","following_url":"https://api.github.com/users/achanda/following{/other_user}","gists_url":"https://api.github.com/users/achanda/gists{/gist_id}","starred_url":"https://api.github.com/users/achanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achanda/subscriptions","organizations_url":"https://api.github.com/users/achanda/orgs","repos_url":"https://api.github.com/users/achanda/repos","events_url":"https://api.github.com/users/achanda/events{/privacy}","received_events_url":"https://api.github.com/users/achanda/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T22:40:02Z","updated_at":"2015-04-21T22:40:02Z","body":"@alexcrichton sorry, I misunderstood you in the other PR. I thought you were asking about the implementation. \r\n\r\nI've been working on implementing CIDR handling functionality in Rust. Converting an IP to and int is a convenient way to work with IP ranges. And I thought these functions might be useful to others too. Another example is, say creating a hash table of IPs."}}