Home | History | Annotate | Download | only in net

Lines Matching refs:IP

22 func ipv4AddrToInterface(ip IP) (*Interface, error) {
35 if ip.Equal(v.IP) {
39 if ip.Equal(v.IP) {
45 if ip.Equal(IPv4zero) {
51 func interfaceToIPv4Addr(ifi *Interface) (IP, error) {
62 if v.IP.To4() != nil {
63 return v.IP, nil
66 if v.IP.To4() != nil {
67 return v.IP, nil
85 if a := v.IP.To4(); a != nil {
90 if a := v.IP.To4(); a != nil {