Hi, I'm trying to send messages from a client written in C + + to NOx towards port 6633. I made The connection through the socket and the tcp packet is received by NOX. To send the header of the message HELLO I am using the function:
connect(sock, (struct sockaddr *) &echoServAddr, sizeof(echoServAddr)); send(sock, H_HEADER, sizeof(H_HEADER), 0); my questions are two: how do I assign to the components of the structure ofp_header (which are uintx_t) values of type char or numeric? (sniffing the packets that the switch sends the normal controller I have seen that the values of the fields are ofp_header struct ofp_header { uint8_t version; /* OFP_VERSION. */ uint8_t type; /* One of the OFPT_ constants. */ uint16_t length; /* Length including this ofp_header. */ uint32_t xid; /* Transaction id associated with this packet. Replies use the same id as was in the request to facilitate pairing. */ }; version = 0x01; type= Hello lenght =8 xid: 12354324 ) How do I send the header to the controller? which function to use? where can i find a NOX library that contain this type of function ? Thx a lot _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev