Changeset 74516fe


Ignore:
Timestamp:
04/30/16 19:33:53 (6 years ago)
Author:
EaseTheWorld <easetheworld@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, master, ndag_format, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
f030e50
Parents:
bb0a1f4
Message:

sourcedemo doesn't support ipv6

because it uses string buffer char str[20].
str[40] should do.

I want to fix this by commit & pull request myself but it is not easy in my office situation.
sorry about that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/tutorial/sourcedemo.c

    r8835f5a r74516fe  
    2828static inline void print_ip(struct sockaddr *ip) {
    2929
    30         char str[20];
     30        char str[40];
    3131       
    3232        /* Check the sockaddr family so we can cast it to the appropriate
Note: See TracChangeset for help on using the changeset viewer.