opp->peer = htonl(opp->peer);
}
+static int
+handle_echo_request(struct ofconn *ofconn, struct ofp_header *oh)
+{
+ struct ofp_header *rq = oh;
+ queue_tx(make_echo_reply(rq), ofconn);
+ return 0;
+}
+
static int
handle_features_request(struct ofproto *p, struct ofconn *ofconn,
struct ofp_header *oh)
int error;
switch (oh->type) {
+ case OFPT_ECHO_REQUEST:
+ error = handle_echo_request(ofconn, oh);
+ break;
+
case OFPT_ECHO_REPLY:
error = 0;
break;