[nbusers] Unexpected token: (

  • From: "kentj" < >
  • To:
  • Subject: [nbusers] Unexpected token: (
  • Date: Mon, 05 Nov 2012 21:01:00 -0500

SourcePort, DestPort,   SeqNumber, and AckNumber all have the error.  Above 
this code is just comments stating that the code originated from Microchip.  
There is nothing but /*....*/ up there with it.  I have cut it out, saved it, 
the errors were still there so I put it back.

#include "tcpip_private.h"
#include "tcp_private.h"

#if defined(TCPIP_STACK_USE_TCP)

        TCP Header Data Types

#define FIN     (0x01)          // FIN Flag as defined in RFC
#define SYN     (0x02)          // SYN Flag as defined in RFC
#define RST     (0x04)          // Reset Flag as defined in RFC
#define PSH     (0x08)          // Push Flag as defined in RFC
#define ACK     (0x10)          // Acknowledge Flag as defined in RFC
#define URG     (0x20)          // Urgent Flag as defined in RFC

// TCP Header Data Structure
typedef struct TCP_HEADER
        uint16_t   SourcePort;          // Local port number
        uint16_t   DestPort;            // Remote port number
        uint32_t   SeqNumber;           // Local sequence number
        uint32_t   AckNumber;           // Acknowledging remote sequence 

                unsigned char Reserved3      : 4;
                unsigned char Val            : 4;
        } DataOffset;                   // Data offset flags nibble

                        unsigned char flagFIN    : 1;
                        unsigned char flagSYN    : 1;
                        unsigned char flagRST    : 1;
                        unsigned char flagPSH    : 1;
                        unsigned char flagACK    : 1;
                        unsigned char flagURG    : 1;
                        unsigned char Reserved2  : 2;
                } bits;
                uint8_t byte;
        } Flags;                        // TCP Flags as defined in RFC

        uint16_t    Window;             // Local free RX buffer window
        uint16_t    Checksum;           // Data payload checksum
        uint16_t    UrgentPointer;      // Urgent pointer


[nbusers] Unexpected token: (

kentj 11/02/2012

[nbusers] Re: Unexpected token: (

Bayless Kirtley 11/02/2012

[nbusers] Unexpected token: (

kentj 11/04/2012

[nbusers] Re: Unexpected token: (

Edson Richter 11/04/2012

[nbusers] Unexpected token: (

kentj 11/06/2012

[nbusers] Re: Unexpected token: (

Jari Fredriksson 11/11/2012

Message not available

[nbusers] Unexpected token: (

kentj 11/28/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 25 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150226.965aeb8). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm