diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-16 10:23:17 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-16 10:23:17 -0600 |
commit | d8ea9b746373e0e88663288dad6f2663dee33f80 (patch) | |
tree | 1882809466fc7e7911e8541b3e3877e0f956f13b /nuttx/include | |
parent | 7a918737726e7542169bd4177fc6416df1f7e695 (diff) | |
download | px4-nuttx-d8ea9b746373e0e88663288dad6f2663dee33f80.tar.gz px4-nuttx-d8ea9b746373e0e88663288dad6f2663dee33f80.tar.bz2 px4-nuttx-d8ea9b746373e0e88663288dad6f2663dee33f80.zip |
Move SLIP prototypes from net.h to new slip.h
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/net/slip.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/net/slip.h b/nuttx/include/nuttx/net/slip.h new file mode 100644 index 000000000..2c3515eb0 --- /dev/null +++ b/nuttx/include/nuttx/net/slip.h @@ -0,0 +1,70 @@ +/**************************************************************************** + * include/nuttx/net/pkt.h + * Definitions for use with AF_PACKET sockets + * + * Copyright (C) 2014 Gregory Nutt. All rights reserved. + * Author: Daniel Laszlo Sitzer <dlsitzer@gmail.com> + * + * Includes some definitions that a compatible with the LGPL GNU C Library + * header file of the same name. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ****************************************************************************/ + +#ifndef __INCLUDE_NUTTX_NET_PKT_H +#define __INCLUDE_NUTTX_NET_PKT_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <nuttx/config.h> + +#include <nuttx/net/netconfig.h> + +/**************************************************************************** + * Public Type Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ +/* This function provides the interface between Ethernet device drivers and + * packet socket logic. All frames that are received should be provided to + * pkt_input() prior to other routing. + */ + +struct net_driver_s; /* Forward reference */ +int pkt_input(FAR struct net_driver_s *dev); + +#endif /* __INCLUDE_NUTTX_NET_PKT_H */ |