Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
cde108ef
Commit
cde108ef
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Move SLIP prototypes from net.h to new slip.h
parent
4fada956
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/nuttx/net/slip.h
+39
-13
39 additions, 13 deletions
include/nuttx/net/slip.h
with
39 additions
and
13 deletions
include/nuttx/net/slip.h
+
39
−
13
View file @
cde108ef
/****************************************************************************
* include/nuttx/net/pkt.h
* Definitions for use with AF_PACKET sockets
* include/nuttx/net/slip.h
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
* Author:
Daniel Laszlo Sitzer <dlsitzer@gmail.com
>
* Author
:
Gregory Nutt <gnutt@nuttx.org
>
*
* Includes some definitions that a compatible with the LGPL GNU C Library
* header file of the same name.
...
...
@@ -37,8 +36,8 @@
*
****************************************************************************/
#ifndef __INCLUDE_NUTTX_NET_
PKT
_H
#define __INCLUDE_NUTTX_NET_
PKT
_H
#ifndef __INCLUDE_NUTTX_NET_
SLIP
_H
#define __INCLUDE_NUTTX_NET_
SLIP
_H
/****************************************************************************
* Included Files
...
...
@@ -46,7 +45,7 @@
#include
<nuttx/config.h>
#i
nclude
<nuttx/net/netconfig.h>
#i
fdef CONFIG_NET_SLIP
/****************************************************************************
* Public Type Definitions
...
...
@@ -56,15 +55,42 @@
* Public Data
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern
"C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* 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
);
/****************************************************************************
* Function: slip_initialize
*
* Description:
* Instantiate a SLIP network interface.
*
* Parameters:
* intf - In the case where there are multiple SLIP interfaces, this value
* identifies which is to be initialized. The network name will be,
* for example, "/dev/slip5" for intf == 5
*
* Returned Value:
* OK on success; Negated errno on failure.
*
* Assumptions:
*
****************************************************************************/
int
slip_initialize
(
int
intf
,
FAR
const
char
*
devname
);
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif
/* __INCLUDE_NUTTX_NET_PKT_H */
#endif
/* CONFIG_NET_SLIP */
#endif
/* __INCLUDE_NUTTX_NET_SLIP_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment