Skip to content
Snippets Groups Projects
Select Git revision
  • 9a7c9337a09b1ef07e55f95a4309957a2328a01f
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS-Ascend
  • openEuler-22.03-LTS
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
  • 5.10.0-106.16.0
  • 5.10.0-106.15.0
  • 5.10.0-117.0.0
  • 5.10.0-60.57.0
  • 5.10.0-116.0.0
33 results

inet.h

Blame
  • user avatar
    Patrick McHardy authored and David S. Miller committed
    Accept -1 as delimiter to abort parsing without an error at the first
    unknown character. This is needed by the upcoming nf_conntrack SIP
    helper, where addresses are delimited by either '\r' or '\n' characters.
    
    Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9a7c9337
    History
    inet.h 2.46 KiB
    /*
     *		Swansea University Computer Society NET3
     *
     *	This work is derived from NET2Debugged, which is in turn derived
     *	from NET2D which was written by:
     * 		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
     *
     *		This work was derived from Ross Biro's inspirational work
     *		for the LINUX operating system.  His version numbers were:
     *
     *		$Id: Space.c,v     0.8.4.5  1992/12/12 19:25:04 bir7 Exp $
     *		$Id: arp.c,v       0.8.4.6  1993/01/28 22:30:00 bir7 Exp $
     *		$Id: arp.h,v       0.8.4.6  1993/01/28 22:30:00 bir7 Exp $
     *		$Id: dev.c,v       0.8.4.13 1993/01/23 18:00:11 bir7 Exp $
     *		$Id: dev.h,v       0.8.4.7  1993/01/23 18:00:11 bir7 Exp $
     *		$Id: eth.c,v       0.8.4.4  1993/01/22 23:21:38 bir7 Exp $
     *		$Id: eth.h,v       0.8.4.1  1992/11/10 00:17:18 bir7 Exp $
     *		$Id: icmp.c,v      0.8.4.9  1993/01/23 18:00:11 bir7 Exp $
     *		$Id: icmp.h,v      0.8.4.2  1992/11/15 14:55:30 bir7 Exp $
     * 		$Id: ip.c,v        0.8.4.8  1992/12/12 19:25:04 bir7 Exp $
     * 		$Id: ip.h,v        0.8.4.2  1993/01/23 18:00:11 bir7 Exp $
     * 		$Id: loopback.c,v  0.8.4.8  1993/01/23 18:00:11 bir7 Exp $
     * 		$Id: packet.c,v    0.8.4.7  1993/01/26 22:04:00 bir7 Exp $
     *		$Id: protocols.c,v 0.8.4.3  1992/11/15 14:55:30 bir7 Exp $
     *		$Id: raw.c,v       0.8.4.12 1993/01/26 22:04:00 bir7 Exp $
     *		$Id: sock.c,v      0.8.4.6  1993/01/28 22:30:00 bir7 Exp $
     *		$Id: sock.h,v      0.8.4.7  1993/01/26 22:04:00 bir7 Exp $
     *		$Id: tcp.c,v       0.8.4.16 1993/01/26 22:04:00 bir7 Exp $
     *		$Id: tcp.h,v       0.8.4.7  1993/01/22 22:58:08 bir7 Exp $
     *		$Id: timer.c,v     0.8.4.8  1993/01/23 18:00:11 bir7 Exp $
     *		$Id: timer.h,v     0.8.4.2  1993/01/23 18:00:11 bir7 Exp $
     *		$Id: udp.c,v       0.8.4.12 1993/01/26 22:04:00 bir7 Exp $
     *		$Id: udp.h,v       0.8.4.1  1992/11/10 00:17:18 bir7 Exp $
     *		$Id: we.c,v        0.8.4.10 1993/01/23 18:00:11 bir7 Exp $
     *		$Id: wereg.h,v     0.8.4.1  1992/11/10 00:17:18 bir7 Exp $
     *
     *		This program is free software; you can redistribute it and/or
     *		modify it under the terms of the GNU General Public License
     *		as published by the Free Software Foundation; either version
     *		2 of the License, or (at your option) any later version.
     */
    #ifndef _LINUX_INET_H
    #define _LINUX_INET_H
    
    #ifdef __KERNEL__
    #include <linux/types.h>
    
    extern __be32 in_aton(const char *str);
    extern int in4_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
    extern int in6_pton(const char *src, int srclen, u8 *dst, int delim, const char **end);
    #endif
    #endif	/* _LINUX_INET_H */