From c8bec02f683426f7532d5d1e81e90bd7b1fdd6cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20GIBERT?= Date: Sun, 10 Jan 2016 23:17:49 +0100 Subject: [PATCH] adding ARP offload support... --- LIB/LIBTCPIP.S.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/LIB/LIBTCPIP.S.txt b/LIB/LIBTCPIP.S.txt index 6c874ec0..d4e52771 100644 --- a/LIB/LIBTCPIP.S.txt +++ b/LIB/LIBTCPIP.S.txt @@ -112,8 +112,23 @@ GET.IPCFG lda #K.PROTOID.IP lda IPCFG,x >SYSCALL SYS.GetDevByIDA >STYA NetDevJmp+1 + + ldx #DEVMGR.GETINFO + jsr NetDevJmp + + >STYA ZPTmpPtr2 + ldy #S.DEVINFO.FLAGS + lda (ZPTmpPtr2),y + sta DevFlags + and #S.DEVINFO.FLAGS.ARPOFFLOAD + beq .2 >LDYA ZPTmpPtr1 + ldx #DEVMGR.SETIPCFG + jsr NetDevJmp + +.2 >LDYA ZPTmpPtr1 + clc GET.IPCFG.RTS rts *-------------------------------------- @@ -477,6 +492,7 @@ CS.END *-------------------------------------- bFirstLoad .DA #0 Status .BS 1 +DevFlags .BS 1 DNSMessageID .BS 2 DNSDynamicPort .BS 2 DNSHostTTL .BS 4