summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--staging/layer1.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/staging/layer1.c b/staging/layer1.c
index a1ca417..bf00a52 100644
--- a/staging/layer1.c
+++ b/staging/layer1.c
@@ -58,7 +58,8 @@ int send_eth(void)
j=0;
char
err_buf[LIBNET_ERRBUF_SIZE],
- message[MAX_PAYLOAD_SIZE*3];
+ message[MAX_PAYLOAD_SIZE*3],
+ argval[MAX_PAYLOAD_SIZE*2];
u_int8_t bytestring[MAX_PAYLOAD_SIZE];
libnet_ptag_t t;
@@ -100,7 +101,10 @@ int send_eth(void)
// Create a temporal, local bytestring:
//
for (i=0; i<MAX_PAYLOAD_SIZE; i++) bytestring[i]=0x00;
- bytestring_s = str2hex (tx.arg_string, bytestring, MAX_PAYLOAD_SIZE);
+ if ( (getarg(tx.arg_string,"payload", argval)==1) || (getarg(tx.arg_string,"p", argval)==1))
+ {
+ bytestring_s = str2hex (argval, bytestring, MAX_PAYLOAD_SIZE);
+ }
// Set the flags to shorten subsequent decisions:
src = strlen(tx.eth_src_txt);
able>
Documentation: fsl-mc: binding updates for MSIs, ranges, PHYs
-The Freescale Management Complex and all associated objects use message interrupts, and thus an msi-parent is required. -Define a ranges property to specify the mapping between the MC address space and the system address space. -The fsl-mc node may optionally have dpmac sub-nodes that describe the relationship between the Ethernet MACs which belong to the MC and the Ethernet PHYs on the system board. Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com> Acked-by: J. German Rivera <German.Rivera@nxp.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'Documentation/input/gamepad.txt')