X-Git-Url: http://git.rot13.org/?p=bcm963xx.git;a=blobdiff_plain;f=userapps%2Fbroadcom%2Fcfm%2Finc%2Fsyscall.h;h=4b262714c4b92e30b73da3d1f7134b8ab5639528;hp=792f3f9b8677beb5581db2b9be6597119df8a080;hb=57a096f051259ceaefd5977f30d269884e1dd248;hpb=9887430fc6b7c0f8eb8e81de2bfe3bba12d8d4a1 diff --git a/userapps/broadcom/cfm/inc/syscall.h b/userapps/broadcom/cfm/inc/syscall.h index 792f3f9b..4b262714 100755 --- a/userapps/broadcom/cfm/inc/syscall.h +++ b/userapps/broadcom/cfm/inc/syscall.h @@ -51,9 +51,7 @@ #define PROTO_BRIDGE 3 #define PROTO_PPPOE_RELAY 4 #define PROTO_IPOA 5 -#if SUPPORT_ETHWAN #define PROTO_IPOWAN 6 -#endif #define PROTO_NONE 10 #define SYSTEM_APPID "SystemInfo" @@ -68,6 +66,7 @@ #define SYS_LOG_ID 9 #define SYS_SNMP_ID 10 #define SYS_FLAG_ID 11 +#define SYS_TR69C_ID 12 // Values that are used in syscall.c #define SYS_CMD_LEN 256 @@ -95,6 +94,7 @@ extern "C" { int bcmSystemEx (char *command, int printFlag); int bcmSystemNoHang (char *command); int bcmGetPid (char *command); +int *bcmGetPidList(char * command); int bcmCreateDhcpCfg(char *ipAddr, char *mask, char *addrStart, char *addrEnd, char *dns1, char *dns2, int leasedTime, int protocol, int enblNat, int enblFirewall); @@ -129,6 +129,7 @@ void bcmGetIpExtInfo(char *buf, int type); int bcmGetIfcIndexByName(char *ifcName); int bcmIsValidIfcName(char *ifcName); char *bcmGetIfcNameById(int ifcId, char *ifcName); +char *bcmGetIfcNameByIpAddr(unsigned long ipAddr, char *ifcName); void getPppoeServiceName(char *service, char *ifName); void bcmGetDefaultRouteInterfaceName(char *ifcName); @@ -140,6 +141,12 @@ void bcmInsertModule(char *modName); int bcmIsModuleInserted(char *modName); int bcmRemoveIpTableRule(char *device, char *table, char *chain); void bcmRemoveAllIpTableRules(char *device); +#if SUPPORT_TC +void bcmRemoveTrafficControlRules(unsigned short vpi, unsigned short vci, + unsigned short conId, unsigned char protocol); +void bcmAddTrafficControlRules(unsigned short vpi, unsigned short vci, + unsigned short conId, unsigned char protocol); +#endif int bcmRemoveRipIpTableRule(void); int bcmRemoveUpnpIpTableRule(void); void bcmInsertAllUpnpIpTableRules(void); @@ -153,15 +160,19 @@ void parseStrInfo(char *info, char *var, char *val, int len); void bcmConvertStrToShellStr(char *str, char *buf); void bcmProcessMarkStrChars(char *str); int bcmIsMarkStrChar(char c); -void bcmSetSwVer(char *swVer); void bcmGetSwVer(char *swVer, int size); void bcmGetBuildVer(char *swVer, int size); // USR9108 int isAccessFromLan(struct in_addr clntAddr); int checkChipId(char *strTagChipId, char *sig2); void bcmRemoveModules(int lanIf); int bcmWaitIntfExists(char *ifName); -int base64Encode(const void *inp, int insize, char **outptr); -void base64Decode(unsigned char *dest, char *src, int *rawLength); + +int bcmMacStrToNum(char *macAddr, char *str); +int bcmMacNumToStr(char *macAddr, char *str); + +int bcmWanEnetQuerySwitch(char *ifName); + +int bcmConfigPortMirroring (void *pMirrorCfg) ; #define BCM_PPPOE_CLIENT_STATE_PADO 0 /* waiting for PADO */ #define BCM_PPPOE_CLIENT_STATE_PADS 1 /* got PADO, waiting for PADS */