Lines Matching refs:src
108 * @src: the start of the IPv4 address string
109 * @srclen: the length of the string, -1 means strlen(src)
111 * @delim: the delimiter of the IPv4 address in @src, -1 means no delimiter
118 int in4_pton(const char *src, int srclen,
130 srclen = strlen(src);
131 s = src;
174 * @src: the start of the IPv6 address string
175 * @srclen: the length of the string, -1 means strlen(src)
177 * @delim: the delimiter of the IPv6 address in @src, -1 means no delimiter
184 int in6_pton(const char *src, int srclen,
198 s = src;
201 srclen = strlen(src);
301 static int inet4_pton(const char *src, u16 port_num,
305 int srclen = strlen(src);
310 if (in4_pton(src, srclen, (u8 *)&addr4->sin_addr.s_addr,
320 static int inet6_pton(struct net *net, const char *src, u16 port_num,
325 int srclen = strlen(src);
330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr,
335 src + srclen != scope_delim && *scope_delim == '%') {
339 src + srclen - scope_delim - 1);
363 * @src: the start of the address string
370 const char *src, const char *port, struct sockaddr_storage *addr)
384 ret = inet4_pton(src, port_num, addr);
387 ret = inet6_pton(net, src, port_num, addr);
390 ret = inet4_pton(src, port_num, addr);
392 ret = inet6_pton(net, src, port_num, addr);
449 * Update layer 4 header as per the update in IPv6 src/dst address.
452 * fields a.) IPv6 src/dst address and b.) L4 header checksum cancels each other
454 * update skb->csum, because update in 3 fields a.) IPv4 src/dst address,