Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
7167cb3f
Commit
7167cb3f
authored
Mar 19, 2017
by
Alessandro Rubini
Committed by
Adam Wujek
Jun 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: avoid redundant redefinition of htons
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
678300fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
arp.c
lib/arp.c
+2
-4
ipv4.c
lib/ipv4.c
+2
-5
snmp.c
lib/snmp.c
+2
-5
No files found.
lib/arp.c
View file @
7167cb3f
...
...
@@ -6,16 +6,14 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <wrc.h>
#include <wrpc.h>
#include <string.h>
#include "endpoint.h"
#include "ipv4.h"
#include "ptpd_netif.h"
#ifndef htons
#define htons(x) x
#endif
static
uint8_t
__arp_queue
[
128
];
static
struct
wrpc_socket
__static_arp_socket
=
{
.
queue
.
buff
=
__arp_queue
,
...
...
lib/ipv4.c
View file @
7167cb3f
...
...
@@ -6,8 +6,9 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <
string
.h>
#include <
wrc
.h>
#include <wrpc.h>
#include <string.h>
#include "endpoint.h"
#include "ipv4.h"
...
...
@@ -16,10 +17,6 @@
#include "hw/memlayout.h"
#include "hw/etherbone-config.h"
#ifndef htons
#define htons(x) x
#endif
enum
ip_status
ip_status
=
IP_TRAINING
;
static
uint8_t
myIP
[
4
];
...
...
lib/snmp.c
View file @
7167cb3f
...
...
@@ -12,8 +12,9 @@
* Each OID is divided into the limb and twig part.
* The twig part can be handled as a group or a table
*/
#include <
string
.h>
#include <
wrc
.h>
#include <wrpc.h>
#include <string.h>
#include <minic.h>
#include <limits.h>
...
...
@@ -30,10 +31,6 @@
#include "storage.h"
#ifndef htons
#define htons(x) x
#endif
#define ASN_BOOLEAN ((u_char)0x01)
#define ASN_INTEGER ((u_char)0x02)
#define ASN_OCTET_STR ((u_char)0x04)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment