The problem of OpenWrt sscanf to mt7620n and AR9341

Source: Internet
Author: User

In the mt7620n platform to do the WiFiDog related debugging work, in addition to the ETH drive. Wireless performance problems, the rest can be basically normal.

According to the actual need to the completed work on the AR9341 platform to achieve.

In fact, it's simple. The basic functionality is similar, mainly for the configuration of the switch.


When testing the speed limit function, a large problem was found.

Because the upload speed limit did not work in the previous mt7620n, it was found to be an interface problem, to restrict access to the WAN IP interface.

This is totally not normal.

TC Disc Show shows some information, but. Do not understand, need to continue to study ah.

Tc-s class Show Dev Br-lan run this is informative.
Tc-s Filter Show Dev Br-lan but here it is.

Asked an expert. It is the filter that restricts the speed of an IP!

The debugging information is then added to these places. Sure enough, the program returned here in SSCANF.

unsigned short flowid;

SSCANF (IP, "%*d.%*d.%*d.%u", Flowid);

The flowid here is 0. Obviously does not conform to normal IP.

Using the SDK to write a test program, found that the problem here is assumed to be defined as int flowid OK.

Finally I summarize this issue for the compiler version number problem, or is it (System architecture problem?). )。


The problem of OpenWrt sscanf to 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.