Openwrt sscanf problem: mt7620n and ar9341

Source: Internet
Author: User

Wifidog debugging has been completed on the mt7620n platform. Except for ETH driver and wireless performance problems, the rest can be basically normal. Complete the work on the ar9341 platform as needed.

In fact, it is also simple. The basic functions are similar, mainly for vswitch configuration.


A major problem was found during the speed limit test.

It was previously found that the upload speed was not effective at mt7620n, and later found that it was an interface problem, and it was necessary to restrict the interface for obtaining Wan IP addresses.

This is totally abnormal.

TC disc show displays some information but does not understand it. You need to continue learning.

TC-S Class show Dev Br-lan execution Information
TC-s filter show Dev Br-lan.

I asked Gao, saying that filter restricts the speed of an IP address!

Later, I added debugging information in the settings, and found that the program returned in sscanf.

Unsigned short flowid;

Sscanf (IP, "% * D. % u", flowid );

The flowid here is 0. obviously does not match the normal IP address.

I used the SDK to write a test program. If the problem is found, it is OK if it is defined as int flowid.

Finally, I will summarize this question for the compiler version, or (System Architecture problems ?).


Openwrt sscanf problem: mt7620n and ar9341

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.