Skip to content

Commit

Permalink
Merge pull request #105 from I2SE/netinfo-osa
Browse files Browse the repository at this point in the history
NetInfo: Print OSA to stdout
  • Loading branch information
ch-aurich authored Apr 13, 2017
2 parents 18b7e2a + 9bc2b37 commit 2abd3b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plc/NetInfo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ signed NetInfo1 (struct plc * plc)
{
char string [24];
Confirm (plc, "Found %d Network(s)\n", networks->NUMAVLNS);
hexdecode (message->ethernet.OSA, sizeof (message->ethernet.OSA), string, sizeof (string));
printf("source address = %s\n\n", string);
network = (struct network *)(&networks->networks);
while (networks->NUMAVLNS--)
{
Expand Down
2 changes: 2 additions & 0 deletions plc/NetInfo2.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ signed NetInfo2 (struct plc * plc)
{
char string [24];
Confirm (plc, "Found %d Network(s)\n", networks->NUMAVLNS);
hexdecode (message->ethernet.OSA, sizeof (message->ethernet.OSA), string, sizeof (string));
printf("source address = %s\n\n", string);
network = (struct network *)(&networks->networks);
while (networks->NUMAVLNS--)
{
Expand Down

0 comments on commit 2abd3b9

Please sign in to comment.