summaryrefslogtreecommitdiff
path: root/src/pkg/net/ip.go
AgeCommit message (Collapse)AuthorFilesLines
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-2/+63
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-2/+3
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-8/+114
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-0/+5
2010-05-21go/printer, gofmt: fix printing of labels,Robert Griesemer1-1/+2
apply gofmt to src, misc Fixes issue 752. R=rsc CC=golang-dev http://codereview.appspot.com/1240044 Committer: Robert Griesemer <gri@golang.org>
2010-03-16net: fix IPMask.String not to crash on all-0xff maskRuss Cox1-21/+38
R=r CC=golang-dev http://codereview.appspot.com/438042
2010-01-15Use /etc/hosts when resolving names.Yves Junqueira1-0/+4
http://code.google.com/p/go/issues/detail?id=313 This conflics with Chris' patch at: http://codereview.appspot.com/181063 But I believe this is more complete since it has a simple caching and proper tests. R=cw, rsc CC=golang-dev http://codereview.appspot.com/183066 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer1-91/+91
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-3/+3
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-8/+8
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-42/+42
R=rsc, r http://go/go-review/1025029
2009-11-04gofmt-ify netRobert Griesemer1-86/+85
R=rsc http://go/go-review/1017045
2009-11-02package net cleanupRuss Cox1-0/+4
added ReadFrom/WriteTo for packet protocols like UDP. simplified the net.Conn interface. added new net.PacketConn interface for packet protocols. implemented proper UDP listener. cleaned up LocalAddr/RemoteAddr methods - cache in netFD. threw away various unused methods. an interface change: introduced net.Addr as a network address interface, to avoid conversion of UDP host:port to string and back for every ReadFrom/WriteTo sequence. another interface change: since signature of Listener.Accept was changing anyway, dropped the middle return value, because it is available as c.RemoteAddr(). (the Accept signature predates the existence of that method.) Dial and Listen still accept strings, but the proto-specific versions DialTCP, ListenUDP, etc. take net.Addr instead. because the generic Dial didn't change and because no one calls Accept directly (only indirectly via the http server), very little code will be affected by these interface changes. design comments welcome. R=p CC=go-dev, r http://go/go-review/1018017
2009-11-01split ipsock.go, sock.go, and unixsock.go out of net.goRuss Cox1-3/+0
prior to cleanup. no changes, only moving. remove dependencies on strconv and strings R=r http://go/go-review/1017010
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-1/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-01clean up some BUG/TODO in go codeRuss Cox1-1/+0
R=r DELTA=23 (1 added, 12 deleted, 10 changed) OCL=30957 CL=30980
2009-06-09mv src/lib to src/pkgRob Pike1-0/+421
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102