Changeset a1bb198


Ignore:
Timestamp:
Feb 10, 2007, 10:29:09 PM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1c2e0b3
Parents:
0c10a79
Message:
Tweak for NOC messages from rcmd.achilles.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    re78397d ra1bb198  
    360360  if (!strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) {
    361361    return(owl_zephyr_get_field(n, 1));
     362  }
     363  /* deal with MIT NOC messages */
     364  else if (!strcasecmp(n->z_sender, "rcmd.achilles@ATHENA.MIT.EDU")) {
     365    /* $opcode service on $instance $3.\n$4 */
     366    char *msg, *opcode, *instance, *field3, *field4;
     367
     368    opcode = n->z_opcode;
     369    instance = n->z_class_inst;
     370    field3 = owl_zephyr_get_field(n, 3);
     371    field4 = owl_zephyr_get_field(n, 4);
     372
     373    msg = owl_sprintf("%s service on %s %s\n%s", opcode, instance, field3, field4);
     374    if (msg) {
     375      return msg;
     376    }
    362377  }
    363378
Note: See TracChangeset for help on using the changeset viewer.