From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 11:01:27 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC8751065675 for ; Mon, 13 Feb 2012 11:01:27 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id B281F8FC19 for ; Mon, 13 Feb 2012 11:01:27 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4381215vbb.13 for ; Mon, 13 Feb 2012 03:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=NDmd29pUXBj2uhylq/UWv6JMfTsivEmhlkct7odegcA=; b=K86wF5Hp4o5OiVg5b0EBPy4PXHN99WPtfe5jqrWFmDmhvjUe4Q4exm79+iaD+xdOa1 9171Ot7eNuPvKdO5pz5bOjqNELDhGCRa7BLobnIX27ZI1bgmNZP07WvrnnUQTlg7uHuY vCEKjCoNvBeEwLzEKgn0StXuRT0CTs4WRi8y4= Received: by 10.52.29.11 with SMTP id f11mr6666682vdh.66.1329129097301; Mon, 13 Feb 2012 02:31:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.34.143 with HTTP; Mon, 13 Feb 2012 02:31:17 -0800 (PST) From: Maxim Ignatenko Date: Mon, 13 Feb 2012 12:31:17 +0200 Message-ID: To: freebsd-net@freebsd.org Content-Type: text/plain; charset=UTF-8 Subject: userfw - modular packet filter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:01:28 -0000 Dear -net, Today I want to present new packet filter for FreeBSD: userfw. It's main design goal - to be easily extensible. Source code is here: http://git.userfw.net/ https://github.com/gelraen/userfw/ Dedicated website: http://userfw.net/ userfw's packet processing is, much like ipfw's, based on idea of ruleset as a list of rules that checked sequentially and performing some actions if packet matches the rule. Each rule consists of rule number, rule action and rule condition (match). But unlike in ipfw, action is not just single keyword with one argument and match is not list of options. Instead, it implements something like tree structure: each match and action can have many arguments of different types: numbers, strings, addresses and even other actions and matches. Even basic logical operations implemented as matches that takes one (not) or two (and, or) matches as arguments. Now there is only small number of operations implemented, but it already includes support for dummynet and ipfw tables. I hope to release userfw-0.1 soon and I'll be glad if someone else will join my work on userfw. From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 11:08:05 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 246071065689 for ; Mon, 13 Feb 2012 11:08:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 116668FC13 for ; Mon, 13 Feb 2012 11:08:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1DB857V090966 for ; Mon, 13 Feb 2012 11:08:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1DB83uf090963 for freebsd-net@FreeBSD.org; Mon, 13 Feb 2012 11:08:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Feb 2012 11:08:03 GMT Message-Id: <201202131108.q1DB83uf090963@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-net@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:08:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/164569 net [msk] [hang] msk network driver cause freeze in FreeBS o kern/164495 net [igb] connect double head igb to switch cause system t o kern/164490 net [pfil] Incorrect IP checksum on pfil pass from ip_outp o kern/164475 net [gre] gre misses RUNNING flag after a reboot o kern/164400 net [ipsec] immediate crash after the start of ipsec proce o kern/164265 net [netinet] [patch] tcp_lro_rx computes wrong checksum i o kern/163903 net [igb] "igb0:tx(0)","bpf interface lock" v2.2.5 9-STABL o kern/163481 net freebsd do not add itself to ping route packet o kern/162927 net [tun] Modem-PPP error ppp[1538]: tun0: Phase: Clearing o kern/162926 net [ipfilter] Infinite loop in ipfilter with fragmented I o kern/162558 net [dummynet] [panic] seldom dummynet panics o kern/162509 net [re] [panic] Kernel panic may be related to if_re.c (r o kern/162352 net [patch] Enhancement: add SO_PROTO to socket.h o kern/162153 net [em] intel em driver 7.2.4 don't compile o kern/162110 net [igb] [panic] RELENG_9 panics on boot in IGB driver - o kern/162028 net [ixgbe] [patch] misplaced #endif in ixgbe.c o kern/161381 net [re] RTL8169SC - re0: PHY write failed o kern/161277 net [em] [patch] BMC cannot receive IPMI traffic after loa o kern/160873 net [igb] igb(4) from HEAD fails to build on 7-STABLE o kern/160750 net Intel PRO/1000 connection breaks under load until rebo o kern/160693 net [gif] [em] Multicast packet are not passed from GIF0 t o kern/160420 net [msk] phy write timeout on HP 5310m o kern/160293 net [ieee80211] ppanic] kernel panic during network setup o kern/160206 net [gif] gifX stops working after a while (IPv6 tunnel) o kern/159817 net [udp] write UDPv4: No buffer space available (code=55) o kern/159795 net [tcp] excessive duplicate ACKs and TCP session freezes o kern/159629 net [ipsec] [panic] kernel panic with IPsec in transport m o kern/159621 net [tcp] [panic] panic: soabort: so_count o kern/159603 net [netinet] [patch] in_ifscrubprefix() - network route c o kern/159601 net [netinet] [patch] in_scrubprefix() - loopback route re o kern/159294 net [em] em watchdog timeouts o kern/159203 net [wpi] Intel 3945ABG Wireless LAN not support IBSS o kern/158930 net [bpf] BPF element leak in ifp->bpf_if->bif_dlist o kern/158726 net [ip6] [patch] ICMPv6 Router Announcement flooding limi o kern/158694 net [ix] [lagg] ix0 is not working within lagg(4) o kern/158665 net [ip6] [panic] kernel pagefault in in6_setscope() o kern/158635 net [em] TSO breaks BPF packet captures with em driver f kern/157802 net [dummynet] [panic] kernel panic in dummynet o kern/157785 net amd64 + jail + ipfw + natd = very slow outbound traffi o kern/157429 net [re] Realtek RTL8169 doesn't work with re(4) o kern/157418 net [em] em driver lockup during boot on Supermicro X9SCM- o kern/157410 net [ip6] IPv6 Router Advertisements Cause Excessive CPU U o kern/157287 net [re] [panic] INVARIANTS panic (Memory modified after f o kern/157209 net [ip6] [patch] locking error in rip6_input() (sys/netin o kern/157200 net [network.subr] [patch] stf(4) can not communicate betw o kern/157182 net [lagg] lagg interface not working together with epair o kern/156877 net [dummynet] [panic] dummynet move_pkt() null ptr derefe o kern/156667 net [em] em0 fails to init on CURRENT after March 17 o kern/156408 net [vlan] Routing failure when using VLANs vs. Physical e o kern/156328 net [icmp]: host can ping other subnet but no have IP from o kern/156317 net [ip6] Wrong order of IPv6 NS DAD/MLD Report o kern/156283 net [ip6] [patch] nd6_ns_input - rtalloc_mpath does not re o kern/156279 net [if_bridge][divert][ipfw] unable to correctly re-injec o kern/156226 net [lagg]: failover does not announce the failover to swi o kern/156030 net [ip6] [panic] Crash in nd6_dad_start() due to null ptr o kern/155772 net ifconfig(8): ioctl (SIOCAIFADDR): File exists on direc o kern/155680 net [multicast] problems with multicast s kern/155642 net [request] Add driver for Realtek RTL8191SE/RTL8192SE W o kern/155597 net [panic] Kernel panics with "sbdrop" message o kern/155420 net [vlan] adding vlan break existent vlan o kern/155177 net [route] [panic] Panic when inject routes in kernel o kern/155030 net [igb] igb(4) DEVICE_POLLING does not work with carp(4) o kern/155010 net [msk] ntfs-3g via iscsi using msk driver cause kernel o kern/154943 net [gif] ifconfig gifX create on existing gifX clears IP s kern/154851 net [request]: Port brcm80211 driver from Linux to FreeBSD o kern/154850 net [netgraph] [patch] ng_ether fails to name nodes when t o kern/154679 net [em] Fatal trap 12: "em1 taskq" only at startup (8.1-R o kern/154600 net [tcp] [panic] Random kernel panics on tcp_output o kern/154557 net [tcp] Freeze tcp-session of the clients, if in the gat o kern/154443 net [if_bridge] Kernel module bridgestp.ko missing after u o kern/154286 net [netgraph] [panic] 8.2-PRERELEASE panic in netgraph o kern/154255 net [nfs] NFS not responding o kern/154214 net [stf] [panic] Panic when creating stf interface o kern/154185 net race condition in mb_dupcl o kern/154169 net [multicast] [ip6] Node Information Query multicast add o kern/154134 net [ip6] stuck kernel state in LISTEN on ipv6 daemon whic o kern/154091 net [netgraph] [panic] netgraph, unaligned mbuf? o conf/154062 net [vlan] [patch] change to way of auto-generatation of v o kern/153937 net [ral] ralink panics the system (amd64 freeBSDD 8.X) wh o kern/153936 net [ixgbe] [patch] MPRC workaround incorrectly applied to o kern/153816 net [ixgbe] ixgbe doesn't work properly with the Intel 10g o kern/153772 net [ixgbe] [patch] sysctls reference wrong XON/XOFF varia o kern/153497 net [netgraph] netgraph panic due to race conditions o kern/153454 net [patch] [wlan] [urtw] Support ad-hoc and hostap modes o kern/153308 net [em] em interface use 100% cpu o kern/153244 net [em] em(4) fails to send UDP to port 0xffff o kern/152893 net [netgraph] [panic] 8.2-PRERELEASE panic in netgraph o kern/152853 net [em] tftpd (and likely other udp traffic) fails over e o kern/152828 net [em] poor performance on 8.1, 8.2-PRE o kern/152569 net [net]: Multiple ppp connections and routing table prob o kern/152235 net [arp] Permanent local ARP entries are not properly upd o kern/152141 net [vlan] [patch] encapsulate vlan in ng_ether before out o kern/152036 net [libc] getifaddrs(3) returns truncated sockaddrs for n o kern/151690 net [ep] network connectivity won't work until dhclient is o kern/151681 net [nfs] NFS mount via IPv6 leads to hang on client with o kern/151593 net [igb] [panic] Kernel panic when bringing up igb networ o kern/150920 net [ixgbe][igb] Panic when packets are dropped with heade o kern/150557 net [igb] igb0: Watchdog timeout -- resetting o kern/150251 net [patch] [ixgbe] Late cable insertion broken o kern/150249 net [ixgbe] Media type detection broken o bin/150224 net ppp(8) does not reassign static IP after kill -KILL co f kern/149969 net [wlan] [ral] ralink rt2661 fails to maintain connectio o kern/149937 net [ipfilter] [patch] kernel panic in ipfilter IP fragmen o kern/149643 net [rum] device not sending proper beacon frames in ap mo o kern/149609 net [panic] reboot after adding second default route o kern/149117 net [inet] [patch] in_pcbbind: redundant test o kern/149086 net [multicast] Generic multicast join failure in 8.1 o kern/148018 net [flowtable] flowtable crashes on ia64 o kern/147912 net [boot] FreeBSD 8 Beta won't boot on Thinkpad i1300 11 o kern/147894 net [ipsec] IPv6-in-IPv4 does not work inside an ESP-only o kern/147155 net [ip6] setfb not work with ipv6 o kern/146845 net [libc] close(2) returns error 54 (connection reset by f kern/146792 net [flowtable] flowcleaner 100% cpu's core load o kern/146719 net [pf] [panic] PF or dumynet kernel panic o kern/146534 net [icmp6] wrong source address in echo reply o kern/146427 net [mwl] Additional virtual access points don't work on m o kern/146426 net [mwl] 802.11n rates not possible on mwl o kern/146425 net [mwl] mwl dropping all packets during and after high u f kern/146394 net [vlan] IP source address for outgoing connections o bin/146377 net [ppp] [tun] Interface doesn't clear addresses when PPP o kern/146358 net [vlan] wrong destination MAC address o kern/146165 net [wlan] [panic] Setting bssid in adhoc mode causes pani o kern/146082 net [ng_l2tp] a false invaliant check was performed in ng_ o kern/146037 net [panic] mpd + CoA = kernel panic o kern/145825 net [panic] panic: soabort: so_count o kern/145728 net [lagg] Stops working lagg between two servers. p kern/145600 net TCP/ECN behaves different to CE/CWR than ns2 reference f kern/144917 net [flowtable] [panic] flowtable crashes system [regressi o kern/144882 net MacBookPro =>4.1 does not connect to BSD in hostap wit o kern/144874 net [if_bridge] [patch] if_bridge frees mbuf after pfil ho o conf/144700 net [rc.d] async dhclient breaks stuff for too many people o kern/144616 net [nat] [panic] ip_nat panic FreeBSD 7.2 f kern/144315 net [ipfw] [panic] freebsd 8-stable reboot after add ipfw o kern/144231 net bind/connect/sendto too strict about sockaddr length o kern/143846 net [gif] bringing gif3 tunnel down causes gif0 tunnel to s kern/143673 net [stf] [request] there should be a way to support multi s kern/143666 net [ip6] [request] PMTU black hole detection not implemen o kern/143622 net [pfil] [patch] unlock pfil lock while calling firewall o kern/143593 net [ipsec] When using IPSec, tcpdump doesn't show outgoin o kern/143591 net [ral] RT2561C-based DLink card (DWL-510) fails to work o kern/143208 net [ipsec] [gif] IPSec over gif interface not working o kern/143034 net [panic] system reboots itself in tcp code [regression] o kern/142877 net [hang] network-related repeatable 8.0-STABLE hard hang o kern/142774 net Problem with outgoing connections on interface with mu o kern/142772 net [libc] lla_lookup: new lle malloc failed o kern/142018 net [iwi] [patch] Possibly wrong interpretation of beacon- o kern/141861 net [wi] data garbled with WEP and wi(4) with Prism 2.5 f kern/141741 net Etherlink III NIC won't work after upgrade to FBSD 8, o kern/140742 net rum(4) Two asus-WL167G adapters cannot talk to each ot o kern/140682 net [netgraph] [panic] random panic in netgraph o kern/140634 net [vlan] destroying if_lagg interface with if_vlan membe o kern/140619 net [ifnet] [patch] refine obsolete if_var.h comments desc o kern/140346 net [wlan] High bandwidth use causes loss of wlan connecti o kern/140142 net [ip6] [panic] FreeBSD 7.2-amd64 panic w/IPv6 o kern/140066 net [bwi] install report for 8.0 RC 2 (multiple problems) o kern/139565 net [ipfilter] ipfilter ioctl SIOCDELST broken o kern/139387 net [ipsec] Wrong lenth of PF_KEY messages in promiscuous o bin/139346 net [patch] arp(8) add option to remove static entries lis o kern/139268 net [if_bridge] [patch] allow if_bridge to forward just VL p kern/139204 net [arp] DHCP server replies rejected, ARP entry lost bef o kern/139117 net [lagg] + wlan boot timing (EBUSY) o kern/139058 net [ipfilter] mbuf cluster leak on FreeBSD 7.2 o kern/138850 net [dummynet] dummynet doesn't work correctly on a bridge o kern/138782 net [panic] sbflush_internal: cc 0 || mb 0xffffff004127b00 o kern/138688 net [rum] possibly broken on 8 Beta 4 amd64: able to wpa a o kern/138678 net [lo] FreeBSD does not assign linklocal address to loop o kern/138620 net [lagg] [patch] lagg port bpf-writes blocked o kern/138407 net [gre] gre(4) interface does not come up after reboot o kern/138332 net [tun] [lor] ifconfig tun0 destroy causes LOR if_adata/ o kern/138266 net [panic] kernel panic when udp benchmark test used as r o kern/138177 net [ipfilter] FreeBSD crashing repeatedly in ip_nat.c:257 f kern/138029 net [bpf] [panic] periodically kernel panic and reboot o kern/137881 net [netgraph] [panic] ng_pppoe fatal trap 12 p bin/137841 net [patch] wpa_supplicant(8) cannot verify SHA256 signed p kern/137776 net [rum] panic in rum(4) driver on 8.0-BETA2 o bin/137641 net ifconfig(8): various problems with "vlan_device.vlan_i o kern/137392 net [ip] [panic] crash in ip_nat.c line 2577 o kern/137372 net [ral] FreeBSD doesn't support wireless interface from o kern/137089 net [lagg] lagg falsely triggers IPv6 duplicate address de o bin/136994 net [patch] ifconfig(8) print carp mac address o kern/136911 net [netgraph] [panic] system panic on kldload ng_bpf.ko t o kern/136618 net [pf][stf] panic on cloning interface without unit numb o kern/135502 net [periodic] Warning message raised by rtfree function i o kern/134583 net [hang] Machine with jail freezes after random amount o o kern/134531 net [route] [panic] kernel crash related to routes/zebra o kern/134157 net [dummynet] dummynet loads cpu for 100% and make a syst o kern/133969 net [dummynet] [panic] Fatal trap 12: page fault while in o kern/133968 net [dummynet] [panic] dummynet kernel panic o kern/133736 net [udp] ip_id not protected ... o kern/133595 net [panic] Kernel Panic at pcpu.h:195 o kern/133572 net [ppp] [hang] incoming PPTP connection hangs the system o kern/133490 net [bpf] [panic] 'kmem_map too small' panic on Dell r900 o kern/133235 net [netinet] [patch] Process SIOCDLIFADDR command incorre f kern/133213 net arp and sshd errors on 7.1-PRERELEASE o kern/133060 net [ipsec] [pfsync] [panic] Kernel panic with ipsec + pfs o kern/132889 net [ndis] [panic] NDIS kernel crash on load BCM4321 AGN d o conf/132851 net [patch] rc.conf(5): allow to setfib(1) for service run o kern/132734 net [ifmib] [panic] panic in net/if_mib.c o kern/132705 net [libwrap] [patch] libwrap - infinite loop if hosts.all o kern/132672 net [ndis] [panic] ndis with rt2860.sys causes kernel pani o kern/132554 net [ipl] There is no ippool start script/ipfilter magic t o kern/132354 net [nat] Getting some packages to ipnat(8) causes crash o kern/132277 net [crypto] [ipsec] poor performance using cryptodevice f o kern/131781 net [ndis] ndis keeps dropping the link o kern/131776 net [wi] driver fails to init o kern/131753 net [altq] [panic] kernel panic in hfsc_dequeue o kern/131601 net [ipfilter] [panic] 7-STABLE panic in nat_finalise (tcp o bin/131567 net [socket] [patch] Update for regression/sockets/unix_cm o bin/131365 net route(8): route add changes interpretation of network f kern/130820 net [ndis] wpa_supplicant(8) returns 'no space on device' o kern/130628 net [nfs] NFS / rpc.lockd deadlock on 7.1-R o conf/130555 net [rc.d] [patch] No good way to set ipfilter variables a o kern/130525 net [ndis] [panic] 64 bit ar5008 ndisgen-erated driver cau o kern/130311 net [wlan_xauth] [panic] hostapd restart causing kernel pa o kern/130109 net [ipfw] Can not set fib for packets originated from loc f kern/130059 net [panic] Leaking 50k mbufs/hour f kern/129719 net [nfs] [panic] Panic during shutdown, tcp_ctloutput: in o kern/129517 net [ipsec] [panic] double fault / stack overflow f kern/129508 net [carp] [panic] Kernel panic with EtherIP (may be relat o kern/129219 net [ppp] Kernel panic when using kernel mode ppp o kern/129197 net [panic] 7.0 IP stack related panic o bin/128954 net ifconfig(8) deletes valid routes o bin/128602 net [an] wpa_supplicant(8) crashes with an(4) o kern/128448 net [nfs] 6.4-RC1 Boot Fails if NFS Hostname cannot be res o bin/128295 net [patch] ifconfig(8) does not print TOE4 or TOE6 capabi o bin/128001 net wpa_supplicant(8), wlan(4), and wi(4) issues o kern/127826 net [iwi] iwi0 driver has reduced performance and connecti o kern/127815 net [gif] [patch] if_gif does not set vlan attributes from o kern/127724 net [rtalloc] rtfree: 0xc5a8f870 has 1 refs f bin/127719 net [arp] arp: Segmentation fault (core dumped) f kern/127528 net [icmp]: icmp socket receives icmp replies not owned by p kern/127360 net [socket] TOE socket options missing from sosetopt() o bin/127192 net routed(8) removes the secondary alias IP of interface f kern/127145 net [wi]: prism (wi) driver crash at bigger traffic o kern/126895 net [patch] [ral] Add antenna selection (marked as TBD) o kern/126874 net [vlan]: Zebra problem if ifconfig vlanX destroy o kern/126695 net rtfree messages and network disruption upon use of if_ o kern/126339 net [ipw] ipw driver drops the connection o kern/126075 net [inet] [patch] internet control accesses beyond end of o bin/125922 net [patch] Deadlock in arp(8) o kern/125920 net [arp] Kernel Routing Table loses Ethernet Link status o kern/125845 net [netinet] [patch] tcp_lro_rx() should make use of hard o kern/125258 net [socket] socket's SO_REUSEADDR option does not work o kern/125239 net [gre] kernel crash when using gre o kern/124341 net [ral] promiscuous mode for wireless device ral0 looses o kern/124225 net [ndis] [patch] ndis network driver sometimes loses net o kern/124160 net [libc] connect(2) function loops indefinitely o kern/124021 net [ip6] [panic] page fault in nd6_output() o kern/123968 net [rum] [panic] rum driver causes kernel panic with WPA. o kern/123892 net [tap] [patch] No buffer space available o kern/123890 net [ppp] [panic] crash & reboot on work with PPP low-spee o kern/123858 net [stf] [patch] stf not usable behind a NAT o kern/123796 net [ipf] FreeBSD 6.1+VPN+ipnat+ipf: port mapping does not o kern/123758 net [panic] panic while restarting net/freenet6 o bin/123633 net ifconfig(8) doesn't set inet and ether address in one o kern/123559 net [iwi] iwi periodically disassociates/associates [regre o bin/123465 net [ip6] route(8): route add -inet6 -interfac o kern/123463 net [ipsec] [panic] repeatable crash related to ipsec-tool o conf/123330 net [nsswitch.conf] Enabling samba wins in nsswitch.conf c o kern/123160 net [ip] Panic and reboot at sysctl kern.polling.enable=0 o kern/122989 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/122954 net [lagg] IPv6 EUI64 incorrectly chosen for lagg devices f kern/122780 net [lagg] tcpdump on lagg interface during high pps wedge o kern/122685 net It is not visible passing packets in tcpdump(1) o kern/122319 net [wi] imposible to enable ad-hoc demo mode with Orinoco o kern/122290 net [netgraph] [panic] Netgraph related "kmem_map too smal o kern/122033 net [ral] [lor] Lock order reversal in ral0 at bootup ieee o bin/121895 net [patch] rtsol(8)/rtsold(8) doesn't handle managed netw s kern/121774 net [swi] [panic] 6.3 kernel panic in swi1: net o kern/121555 net [panic] Fatal trap 12: current process = 12 (swi1: net o kern/121443 net [gif] [lor] icmp6_input/nd6_lookup o kern/121437 net [vlan] Routing to layer-2 address does not work on VLA o bin/121359 net [patch] [security] ppp(8): fix local stack overflow in o kern/121257 net [tcp] TSO + natd -> slow outgoing tcp traffic o kern/121181 net [panic] Fatal trap 3: breakpoint instruction fault whi o kern/120966 net [rum] kernel panic with if_rum and WPA encryption o kern/120566 net [request]: ifconfig(8) make order of arguments more fr o kern/120304 net [netgraph] [patch] netgraph source assumes 32-bit time o kern/120266 net [udp] [panic] gnugk causes kernel panic when closing U o bin/120060 net routed(8) deletes link-level routes in the presence of o kern/119945 net [rum] [panic] rum device in hostap mode, cause kernel o kern/119791 net [nfs] UDP NFS mount of aliased IP addresses from a Sol o kern/119617 net [nfs] nfs error on wpa network when reseting/shutdown f kern/119516 net [ip6] [panic] _mtx_lock_sleep: recursed on non-recursi o kern/119432 net [arp] route add -host -iface causes arp e o kern/119225 net [wi] 7.0-RC1 no carrier with Prism 2.5 wifi card [regr o kern/118727 net [netgraph] [patch] [request] add new ng_pf module o kern/117423 net [vlan] Duplicate IP on different interfaces o bin/117339 net [patch] route(8): loading routing management commands o kern/117271 net [tap] OpenVPN TAP uses 99% CPU on releng_6 when if_tap o bin/116643 net [patch] [request] fstat(1): add INET/INET6 socket deta o kern/116185 net [iwi] if_iwi driver leads system to reboot o kern/115239 net [ipnat] panic with 'kmem_map too small' using ipnat o kern/115019 net [netgraph] ng_ether upper hook packet flow stops on ad o kern/115002 net [wi] if_wi timeout. failed allocation (busy bit). ifco o kern/114915 net [patch] [pcn] pcn (sys/pci/if_pcn.c) ethernet driver f o kern/113432 net [ucom] WARNING: attempt to net_add_domain(netgraph) af o kern/112722 net [ipsec] [udp] IP v4 udp fragmented packet reject o kern/112686 net [patm] patm driver freezes System (FreeBSD 6.2-p4) i38 o bin/112557 net [patch] ppp(8) lock file should not use symlink name o kern/112528 net [nfs] NFS over TCP under load hangs with "impossible p o kern/111537 net [inet6] [patch] ip6_input() treats mbuf cluster wrong o kern/111457 net [ral] ral(4) freeze o kern/110284 net [if_ethersubr] Invalid Assumption in SIOCSIFADDR in et o kern/110249 net [kernel] [regression] [patch] setsockopt() error regre o kern/109470 net [wi] Orinoco Classic Gold PC Card Can't Channel Hop o bin/108895 net pppd(8): PPPoE dead connections on 6.2 [regression] o kern/107944 net [wi] [patch] Forget to unlock mutex-locks o conf/107035 net [patch] bridge(8): bridge interface given in rc.conf n o kern/106444 net [netgraph] [panic] Kernel Panic on Binding to an ip to o kern/106438 net [ipf] ipfilter: keep state does not seem to allow repl o kern/106316 net [dummynet] dummynet with multipass ipfw drops packets o kern/105945 net Address can disappear from network interface s kern/105943 net Network stack may modify read-only mbuf chain copies o bin/105925 net problems with ifconfig(8) and vlan(4) [regression] o kern/104851 net [inet6] [patch] On link routes not configured when usi o kern/104751 net [netgraph] kernel panic, when getting info about my tr o kern/103191 net Unpredictable reboot o kern/103135 net [ipsec] ipsec with ipfw divert (not NAT) encodes a pac o kern/102540 net [netgraph] [patch] supporting vlan(4) by ng_fec(4) o conf/102502 net [netgraph] [patch] ifconfig name does't rename netgrap o kern/102035 net [plip] plip networking disables parallel port printing o kern/101948 net [ipf] [panic] Kernel Panic Trap No 12 Page Fault - cau o kern/100709 net [libc] getaddrinfo(3) should return TTL info o kern/100519 net [netisr] suggestion to fix suboptimal network polling o kern/98978 net [ipf] [patch] ipfilter drops OOW packets under 6.1-Rel o kern/98597 net [inet6] Bug in FreeBSD 6.1 IPv6 link-local DAD procedu o bin/98218 net wpa_supplicant(8) blacklist not working o kern/97306 net [netgraph] NG_L2TP locks after connection with failed o conf/97014 net [gif] gifconfig_gif? in rc.conf does not recognize IPv f kern/96268 net [socket] TCP socket performance drops by 3000% if pack o kern/95519 net [ral] ral0 could not map mbuf o kern/95288 net [pppd] [tty] [panic] if_ppp panic in sys/kern/tty_subr o kern/95277 net [netinet] [patch] IP Encapsulation mask_match() return o kern/95267 net packet drops periodically appear f kern/93378 net [tcp] Slow data transfer in Postfix and Cyrus IMAP (wo o kern/93019 net [ppp] ppp and tunX problems: no traffic after restarti o kern/92880 net [libc] [patch] almost rewritten inet_network(3) functi s kern/92279 net [dc] Core faults everytime I reboot, possible NIC issu o kern/91859 net [ndis] if_ndis does not work with Asus WL-138 s kern/91777 net [ipf] [patch] wrong behaviour with skip rule inside an o kern/91364 net [ral] [wep] WF-511 RT2500 Card PCI and WEP o kern/91311 net [aue] aue interface hanging s kern/90086 net [hang] 5.4p8 on supermicro P8SCT hangs during boot if o kern/87521 net [ipf] [panic] using ipfilter "auth" keyword leads to k o kern/87421 net [netgraph] [panic]: ng_ether + ng_eiface + if_bridge s kern/86920 net [ndis] ifconfig: SIOCS80211: Invalid argument [regress o kern/86871 net [tcp] [patch] allocation logic for PCBs in TIME_WAIT s o kern/86427 net [lor] Deadlock with FASTIPSEC and nat o kern/86103 net [ipf] Illegal NAT Traversal in IPFilter o kern/85780 net 'panic: bogus refcnt 0' in routing/ipv6 o bin/85445 net ifconfig(8): deprecated keyword to ifconfig inoperativ p kern/85320 net [gre] [patch] possible depletion of kernel stack in ip o bin/82975 net route change does not parse classfull network as given o kern/82881 net [netgraph] [panic] ng_fec(4) causes kernel panic after o kern/82468 net Using 64MB tcp send/recv buffers, trafficflow stops, i o bin/82185 net [patch] ndp(8) can delete the incorrect entry o kern/81095 net IPsec connection stops working if associated network i o kern/78968 net FreeBSD freezes on mbufs exhaustion (network interface o kern/78090 net [ipf] ipf filtering on bridged packets doesn't work if o kern/77341 net [ip6] problems with IPV6 implementation o kern/77273 net [ipf] ipfilter breaks ipv6 statefull filtering on 5.3 s kern/77195 net [ipf] [patch] ipfilter ioctl SIOCGNATL does not match o kern/75873 net Usability problem with non-RFC-compliant IP spoof prot s kern/75407 net [an] an(4): no carrier after short time a kern/71474 net [route] route lookup does not skip interfaces marked d o kern/71469 net default route to internet magically disappears with mu o kern/70904 net [ipf] ipfilter ipnat problem with h323 proxy support o kern/68889 net [panic] m_copym, length > size of mbuf chain o kern/66225 net [netgraph] [patch] extend ng_eiface(4) control message o kern/65616 net IPSEC can't detunnel GRE packets after real ESP encryp s kern/60293 net [patch] FreeBSD arp poison patch a kern/56233 net IPsec tunnel (ESP) over IPv6: MTU computation is wrong s bin/41647 net ifconfig(8) doesn't accept lladdr along with inet addr s kern/39937 net ipstealth issue a kern/38554 net [patch] changing interface ipaddress doesn't seem to w o kern/34665 net [ipf] [hang] ipfilter rcmd proxy "hangs". o kern/31940 net ip queue length too short for >500kpps o kern/31647 net [libc] socket calls can return undocumented EINVAL o kern/30186 net [libc] getaddrinfo(3) does not handle incorrect servna o kern/27474 net [ipf] [ppp] Interactive use of user PPP and ipfilter c f kern/24959 net [patch] proper TCP_NOPUSH/TCP_CORK compatibility o conf/23063 net [arp] [patch] for static ARP tables in rc.network o kern/21998 net [socket] [patch] ident only for outgoing connections o kern/5877 net [socket] sb_cc counts control data as well as data dat 385 problems total. From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 11:16:32 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61DC61065675 for ; Mon, 13 Feb 2012 11:16:32 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [IPv6:2a02:6b8:0:602::3]) by mx1.freebsd.org (Postfix) with ESMTP id C740E8FC12 for ; Mon, 13 Feb 2012 11:16:31 +0000 (UTC) Received: from smtp2.mail.yandex.net (smtp2.mail.yandex.net [77.88.46.102]) by forward3.mail.yandex.net (Yandex) with ESMTP id 32FCFB42D6F; Mon, 13 Feb 2012 15:16:30 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329131790; bh=B3zqtX9t0v9vtdoYkYb4gEheXH4NbgoaBDvbsANnmkg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=jwd1JjhyxB/M6ww6OXxEmx8/gcauvHxdyDgXUF+e24V4Hr1Ki23ABTjbwrOTpUcoY 2RpXm869/iETYDZoV//8DIBhO9+ptp07EDQOIRstuuzrVnJL94b8NHIVsaMjrL2OK0 faKZAWkyTrV2+vyPpD/akcxCZ6LYChO1SwoXXz4Y= Received: from smtp2.mail.yandex.net (localhost [127.0.0.1]) by smtp2.mail.yandex.net (Yandex) with ESMTP id 073FFE2034D; Mon, 13 Feb 2012 15:16:29 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1329131790; bh=B3zqtX9t0v9vtdoYkYb4gEheXH4NbgoaBDvbsANnmkg=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=jwd1JjhyxB/M6ww6OXxEmx8/gcauvHxdyDgXUF+e24V4Hr1Ki23ABTjbwrOTpUcoY 2RpXm869/iETYDZoV//8DIBhO9+ptp07EDQOIRstuuzrVnJL94b8NHIVsaMjrL2OK0 faKZAWkyTrV2+vyPpD/akcxCZ6LYChO1SwoXXz4Y= Received: from ns.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by smtp2.mail.yandex.net (nwsmtp/Yandex) with ESMTP id GTiCR9ZG-GTiud4El; Mon, 13 Feb 2012 15:16:29 +0400 X-Yandex-Spam: 1 Message-ID: <4F38F10D.6050008@yandex.ru> Date: Mon, 13 Feb 2012 15:16:29 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Maxim Ignatenko References: In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: userfw - modular packet filter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:16:32 -0000 On 13.02.2012 14:31, Maxim Ignatenko wrote: > Dear -net, > > Today I want to present new packet filter for FreeBSD: userfw. It's > main design goal - to be easily extensible. > Source code is here: http://git.userfw.net/ https://github.com/gelraen/userfw/ > Dedicated website: http://userfw.net/ Hi, Maxim Why do you called it "userfw"? Does it work in user level? :) -- WBR, Andrey V. Elsukov From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 11:20:56 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35773106566C for ; Mon, 13 Feb 2012 11:20:56 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id E78758FC16 for ; Mon, 13 Feb 2012 11:20:55 +0000 (UTC) Received: by vcmm1 with SMTP id m1so4445461vcm.13 for ; Mon, 13 Feb 2012 03:20:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=wEr0prlkMC1d5N6G4yMn/vxfa7iltlUnE/MCLGPHdV8=; b=NyKsb0Q+zPJ2328W8eQzL3q4sE9HnGN8IWqHtfxPF4JaMwU2ksJuhsdh0PUqVllYI7 YFHs7uSzsQDJKrTFZaXRrJMbSB8+wNax3hlY3aOLwzDsBSv0sMvI1IF2JW3pNNAwlHPJ 3Wg48TzwZxxUL1i0z+Mno1UMLCvFl6jGIn+3s= Received: by 10.220.142.5 with SMTP id o5mr8804904vcu.68.1329132055201; Mon, 13 Feb 2012 03:20:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.34.143 with HTTP; Mon, 13 Feb 2012 03:20:35 -0800 (PST) In-Reply-To: <4F38F10D.6050008@yandex.ru> References: <4F38F10D.6050008@yandex.ru> From: Maxim Ignatenko Date: Mon, 13 Feb 2012 13:20:35 +0200 Message-ID: To: "Andrey V. Elsukov" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: userfw - modular packet filter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 11:20:56 -0000 2012/2/13 Andrey V. Elsukov : > On 13.02.2012 14:31, Maxim Ignatenko wrote: >> Dear -net, >> >> Today I want to present new packet filter for FreeBSD: userfw. It's >> main design goal - to be easily extensible. >> Source code is here: http://git.userfw.net/ https://github.com/gelraen/u= serfw/ >> Dedicated website: http://userfw.net/ > > Hi, Maxim > > Why do you called it "userfw"? Does it work in user level? :) > Original idea was to write something like desktop firewalls found on Windows=E2=84=A2, it changed later, but name was left the same and I don't = see a reason to do s/userfw/some_other_name/ through all sources now. Also, I still plan to implement such functionality as a module, but not right now. From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 08:11:10 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4EA3106566B for ; Mon, 13 Feb 2012 08:11:10 +0000 (UTC) (envelope-from liuhuixi@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 839308FC0A for ; Mon, 13 Feb 2012 08:11:10 +0000 (UTC) Received: by iaeo4 with SMTP id o4so4896843iae.13 for ; Mon, 13 Feb 2012 00:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=G3asG/NFOwhsrt+ADjLuBNCLGiXSq9FeMwTvzOWnYgs=; b=MxO8WcdCPOV0PLwF1D8amHjgOByPS/4AxSC3jbdUBwarfeZwKMdrqGnnQk5BPzD1EL BgO1LxS/aXFG2POZ7PNlV6LyCwltejxEkvGDs0jCc5oaf12Ss/6k2OVBTUnEqEf9z5Jm EfS6BgtGVPh+/MJa46yh2ethMa66t03fww/q0= MIME-Version: 1.0 Received: by 10.50.89.196 with SMTP id bq4mr24809810igb.26.1329118817773; Sun, 12 Feb 2012 23:40:17 -0800 (PST) Received: by 10.42.230.131 with HTTP; Sun, 12 Feb 2012 23:40:17 -0800 (PST) Date: Mon, 13 Feb 2012 15:40:17 +0800 Message-ID: From: =?GB2312?B?wfW73c71?= To: freebsd-net@freebsd.org X-Mailman-Approved-At: Mon, 13 Feb 2012 12:03:54 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: jiang.yuelong@zte.com.cn, liu.huixi@zte.com.cn, gu.feng1@zte.com.cn Subject: About KAME project and automated testing IPv6 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 08:11:10 -0000 Hi, I have installed the FreeBSD 5.4, and make install the right version of mysql,php and httpd. How can I set up a web site like "www.kame.net" in a local network ,which is used to automated testing ipv6? Do you have the source code of "www.kame.net"? Or do you know where to find the source code ? Looking forward to your reply Thanks! Henry From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 16:01:20 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6D7D106564A; Mon, 13 Feb 2012 16:01:20 +0000 (UTC) (envelope-from alexey@kouznetsov.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6345D8FC15; Mon, 13 Feb 2012 16:01:19 +0000 (UTC) Received: by vcmm1 with SMTP id m1so4698474vcm.13 for ; Mon, 13 Feb 2012 08:01:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.176.130 with SMTP id ci2mr7274154vdc.33.1329148878137; Mon, 13 Feb 2012 08:01:18 -0800 (PST) Received: by 10.220.2.80 with HTTP; Mon, 13 Feb 2012 08:01:18 -0800 (PST) In-Reply-To: References: Date: Mon, 13 Feb 2012 20:01:18 +0400 Message-ID: From: Alexey Kouznetsov To: zi@freebsd.org, net@freebsd.org X-Gm-Message-State: ALoCoQn0aCe9heSUoXMuIFl8TvY6nI/WrtbQCR5qhoEIbOCudFjP2mF+jLAa6gVQ+6puvOq2J2HL Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Fwd: FW: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 16:01:20 -0000 Hello! There are commited to net-snmp's GIT patch for problem bellow! Could you, please add this to the FreeBSD ports tree also! http://net-snmp.git.sourceforge.net/git/gitweb.cgi?p=net-snmp/net-snmp;a=commitdiff;h=0fc8221b24988c4ae6180ed42b86b9852fd586ad Thank you! /Alexey ---------- Forwarded message ---------- From: Alexey Kouznetsov Date: 2012/2/11 Subject: FW: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) To: zi@freebsd.org, net@freebsd.org Hello! Could you, please look at this also? Explanation bellow at SF bug track --- work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-@@ +++ work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-11 21:55:16.000000000 +0400-322,7 +321,7 @@ switch (vp->magic) { case MIBINDEX: + long_ret = disknum + 1; - long_ret = disknum; return ((u_char *) (&long_ret)); case ERRORNAME: /* DISKPATH */ *var_len = strlen(entry->path); Thank you! -----Original Message----- From: SourceForge.net [mailto:noreply@sourceforge.net] Sent: Saturday, February 11, 2012 10:16 PM To: SourceForge.net Subject: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) Bugs item #3480541, was opened at 2012-01-27 05:47 Message generated for change (Comment added) made by st-da You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3480541&group_i d=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: agent Group: freeBSD Status: Open Resolution: None Priority: 5 Private: No Submitted By: Alexey (st-da) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong index of disk (dskIndex) Initial Comment: # snmpwalk -c public 127.0.0.1 dskIndex UCD-SNMP-MIB::dskIndex.1 = INTEGER: 0 UCD-SNMP-MIB::dskIndex.2 = INTEGER: 1 UCD-SNMP-MIB::dskIndex.3 = INTEGER: 2 UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3 UCD-SNMP-MIB::dskIndex.5 = INTEGER: 4 UCD-SNMP-MIB::dskIndex.6 = INTEGER: 5 UCD-SNMP-MIB::dskIndex.7 = INTEGER: 6 In my mind it have to be same mumbers in OID and in index UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1 UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2 UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3 UCD-SNMP-MIB::dskIndex.4 = INTEGER: 4 UCD-SNMP-MIB::dskIndex.5 = INTEGER: 5 UCD-SNMP-MIB::dskIndex.6 = INTEGER: 6 UCD-SNMP-MIB::dskIndex.7 = INTEGER: 7 # /usr/local/sbin/snmpd -v NET-SNMP version: 5.7.1 Web: http://www.net-snmp.org/ Email: net-snmp-coders@lists.sourceforge.net recenly built from ports on FreeBSD 8.2 stable. Looks lite it started from 5.7 and was correctly before. ---------------------------------------------------------------------- >Comment By: Alexey (st-da) Date: 2012-02-11 10:15 Message: ops reverse + and - at last patch... ---------------------------------------------------------------------- Comment By: Alexey (st-da) Date: 2012-02-11 10:07 Message: disk index fixed for me by small path: --- work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-11 21:55:16.000000000 +0400 +++ work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-@@ -322,7 +321,7 @@ switch (vp->magic) { case MIBINDEX: - long_ret = disknum + 1; + long_ret = disknum; return ((u_char *) (&long_ret)); case ERRORNAME: /* DISKPATH */ *var_len = strlen(entry->path); ---------------------------------------------------------------------- Comment By: Alexey (st-da) Date: 2012-02-02 06:09 Message: there are same requets sfter we clean up the disk UCD-SNMP-MIB::dskTotal.4 = INTEGER: 50777034 UCD-SNMP-MIB::dskAvail.4 = INTEGER: 36894232 UCD-SNMP-MIB::dskUsed.4 = INTEGER: 9820640 ---------------------------------------------------------------------- Comment By: Alexey (st-da) Date: 2012-02-02 05:53 Message: There are some more problem: df -k | egrep logs /dev/aacd0s1g 50777034 46745456 -30584 100% /logs /usr/local/bin/snmpwalk -c public xxxxxx dsk| egrep '\.4 = ' UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3 UCD-SNMP-MIB::dskPath.4 = STRING: /logs UCD-SNMP-MIB::dskDevice.4 = STRING: /dev/aacd0s1g UCD-SNMP-MIB::dskMinimum.4 = INTEGER: 524288 UCD-SNMP-MIB::dskMinPercent.4 = INTEGER: -1 UCD-SNMP-MIB::dskTotal.4 = INTEGER: 50777034 UCD-SNMP-MIB::dskAvail.4 = INTEGER: 2147483647 UCD-SNMP-MIB::dskUsed.4 = INTEGER: 46745264 UCD-SNMP-MIB::dskPercent.4 = INTEGER: 92 UCD-SNMP-MIB::dskPercentNode.4 = INTEGER: 1 UCD-SNMP-MIB::dskTotalLow.4 = Gauge32: 50777034 UCD-SNMP-MIB::dskTotalHigh.4 = Gauge32: 0 UCD-SNMP-MIB::dskAvailLow.4 = Gauge32: 4294936904 UCD-SNMP-MIB::dskAvailHigh.4 = Gauge32: 4294967295 UCD-SNMP-MIB::dskUsedLow.4 = Gauge32: 46745264 UCD-SNMP-MIB::dskUsedHigh.4 = Gauge32: 0 UCD-SNMP-MIB::dskErrorFlag.4 = INTEGER: noError(0) UCD-SNMP-MIB::dskErrorMsg.4 = STRING: some unrealistic unavailable value dskAvail.4 = INTEGER: 2147483647 Somethiong like unsigned where we save negative value ? FreeBSD 8.2-STABLE #9: Tue Oct 11 07:07:46 UTC 2011 pkg_info -aI | egrep snmp net-snmp-5.7_4 An extendable SNMP implementation ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3480541&group_i d=12694 From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 16:17:58 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30E0A106566B for ; Mon, 13 Feb 2012 16:17:58 +0000 (UTC) (envelope-from zi@freebsd.org) Received: from fast.rit.edu (fast.rit.edu [129.21.182.30]) by mx1.freebsd.org (Postfix) with ESMTP id F31138FC1B for ; Mon, 13 Feb 2012 16:17:57 +0000 (UTC) Received: from fast.rit.edu (localhost.rit.edu [127.0.0.1]) by fast.rit.edu (Postfix) with ESMTP id 45E871D2CB; Mon, 13 Feb 2012 11:17:57 -0500 (EST) X-Virus-Scanned: by amavisd-new at fast.rit.edu Received: from fast.rit.edu ([127.0.0.1]) by fast.rit.edu (fast.rit.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JMoSZQj0EHC2; Mon, 13 Feb 2012 11:17:55 -0500 (EST) Received: from syn.rit.edu (syn.rit.edu [129.21.182.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fast.rit.edu (Postfix) with ESMTPS id E18AD1D2CA; Mon, 13 Feb 2012 11:17:55 -0500 (EST) Received: from syn.rit.edu (localhost.rit.edu [127.0.0.1]) by syn.rit.edu (8.14.4/8.14.3) with ESMTP id q1DGHtwK080172; Mon, 13 Feb 2012 11:17:55 -0500 (EST) (envelope-from zi@freebsd.org) Received: (from zi@localhost) by syn.rit.edu (8.14.4/8.14.3/Submit) id q1DGHtAG075244; Mon, 13 Feb 2012 11:17:55 -0500 (EST) (envelope-from zi@freebsd.org) Date: Mon, 13 Feb 2012 11:17:55 -0500 From: Ryan Steinmetz To: Alexey Kouznetsov Message-ID: <20120213161755.GA59841@fast.rit.edu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: net@freebsd.org Subject: Re: Fwd: FW: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 16:17:58 -0000 I've committed this to the port, however, did not bump PORTREVISION. I have a couple other open PRs that will most likely result in additional patch changes and I do not want to force people to update over and over if I can avoid it. To get the fix into your systems, simply update your ports tree and then rebuild/reinstall net-snmp. -r On (02/13/12 20:01), Alexey Kouznetsov wrote: > Hello! > > There are commited to net-snmp's GIT patch for problem bellow! > > Could you, please add this to the FreeBSD ports tree also! > > http://net-snmp.git.sourceforge.net/git/gitweb.cgi?p=net-snmp/net-snmp;a=commitdiff;h=0fc8221b24988c4ae6180ed42b86b9852fd586ad > > Thank you! > /Alexey > > ---------- Forwarded message ---------- > From: Alexey Kouznetsov > Date: 2012/2/11 > Subject: FW: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) > To: zi@freebsd.org, net@freebsd.org > > > Hello! > Could you, please look at this also? > Explanation bellow at SF bug track > > --- work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-@@ > +++ work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-11 > 21:55:16.000000000 +0400-322,7 +321,7 @@ > > switch (vp->magic) { > case MIBINDEX: > + long_ret = disknum + 1; > - long_ret = disknum; > return ((u_char *) (&long_ret)); > case ERRORNAME: /* DISKPATH */ > *var_len = strlen(entry->path); > > Thank you! > > -----Original Message----- > From: SourceForge.net [mailto:noreply@sourceforge.net] > Sent: Saturday, February 11, 2012 10:16 PM > To: SourceForge.net > Subject: [ net-snmp-Bugs-3480541 ] Wrong index of disk (dskIndex) > > Bugs item #3480541, was opened at 2012-01-27 05:47 > Message generated for change (Comment added) made by st-da > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3480541&group_i > d=12694 > > Please note that this message will contain a full copy of the comment > thread, > including the initial issue submission, for this request, > not just the latest update. > Category: agent > Group: freeBSD > Status: Open > Resolution: None > Priority: 5 > Private: No > Submitted By: Alexey (st-da) > Assigned to: Nobody/Anonymous (nobody) > Summary: Wrong index of disk (dskIndex) > > Initial Comment: > # snmpwalk -c public 127.0.0.1 dskIndex > > UCD-SNMP-MIB::dskIndex.1 = INTEGER: 0 > UCD-SNMP-MIB::dskIndex.2 = INTEGER: 1 > UCD-SNMP-MIB::dskIndex.3 = INTEGER: 2 > UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3 > UCD-SNMP-MIB::dskIndex.5 = INTEGER: 4 > UCD-SNMP-MIB::dskIndex.6 = INTEGER: 5 > UCD-SNMP-MIB::dskIndex.7 = INTEGER: 6 > > > In my mind it have to be same mumbers in OID and in index > > UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1 > UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2 > UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3 > UCD-SNMP-MIB::dskIndex.4 = INTEGER: 4 > UCD-SNMP-MIB::dskIndex.5 = INTEGER: 5 > UCD-SNMP-MIB::dskIndex.6 = INTEGER: 6 > UCD-SNMP-MIB::dskIndex.7 = INTEGER: 7 > > > # /usr/local/sbin/snmpd -v > > NET-SNMP version: 5.7.1 > Web: http://www.net-snmp.org/ > Email: net-snmp-coders@lists.sourceforge.net > > recenly built from ports on FreeBSD 8.2 stable. Looks lite it started from > 5.7 and was correctly before. > > ---------------------------------------------------------------------- > > >Comment By: Alexey (st-da) > Date: 2012-02-11 10:15 > > Message: > ops reverse + and - at last patch... > > ---------------------------------------------------------------------- > > Comment By: Alexey (st-da) > Date: 2012-02-11 10:07 > > Message: > disk index fixed for me by small path: > > --- work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-11 > 21:55:16.000000000 +0400 > +++ work/net-snmp-5.7.1/agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-@@ > -322,7 +321,7 @@ > > switch (vp->magic) { > case MIBINDEX: > - long_ret = disknum + 1; > + long_ret = disknum; > return ((u_char *) (&long_ret)); > case ERRORNAME: /* DISKPATH */ > *var_len = strlen(entry->path); > > > ---------------------------------------------------------------------- > > Comment By: Alexey (st-da) > Date: 2012-02-02 06:09 > > Message: > there are same requets sfter we clean up the disk > > > UCD-SNMP-MIB::dskTotal.4 = INTEGER: 50777034 > UCD-SNMP-MIB::dskAvail.4 = INTEGER: 36894232 > UCD-SNMP-MIB::dskUsed.4 = INTEGER: 9820640 > > > ---------------------------------------------------------------------- > > Comment By: Alexey (st-da) > Date: 2012-02-02 05:53 > > Message: > There are some more problem: > > df -k | egrep logs > /dev/aacd0s1g 50777034 46745456 -30584 100% /logs > > > /usr/local/bin/snmpwalk -c public xxxxxx dsk| egrep '\.4 = ' > UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3 > UCD-SNMP-MIB::dskPath.4 = STRING: /logs > UCD-SNMP-MIB::dskDevice.4 = STRING: /dev/aacd0s1g > UCD-SNMP-MIB::dskMinimum.4 = INTEGER: 524288 > UCD-SNMP-MIB::dskMinPercent.4 = INTEGER: -1 > UCD-SNMP-MIB::dskTotal.4 = INTEGER: 50777034 > UCD-SNMP-MIB::dskAvail.4 = INTEGER: 2147483647 > UCD-SNMP-MIB::dskUsed.4 = INTEGER: 46745264 > UCD-SNMP-MIB::dskPercent.4 = INTEGER: 92 > UCD-SNMP-MIB::dskPercentNode.4 = INTEGER: 1 > UCD-SNMP-MIB::dskTotalLow.4 = Gauge32: 50777034 > UCD-SNMP-MIB::dskTotalHigh.4 = Gauge32: 0 > UCD-SNMP-MIB::dskAvailLow.4 = Gauge32: 4294936904 > UCD-SNMP-MIB::dskAvailHigh.4 = Gauge32: 4294967295 > UCD-SNMP-MIB::dskUsedLow.4 = Gauge32: 46745264 > UCD-SNMP-MIB::dskUsedHigh.4 = Gauge32: 0 > UCD-SNMP-MIB::dskErrorFlag.4 = INTEGER: noError(0) > UCD-SNMP-MIB::dskErrorMsg.4 = STRING: > > some unrealistic unavailable value > dskAvail.4 = INTEGER: 2147483647 > > Somethiong like unsigned where we save negative value ? > > FreeBSD 8.2-STABLE #9: Tue Oct 11 07:07:46 UTC 2011 > > pkg_info -aI | egrep snmp > net-snmp-5.7_4 An extendable SNMP implementation > > > ---------------------------------------------------------------------- > > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=112694&aid=3480541&group_i > d=12694 -- Ryan Steinmetz PGP: EF36 D45A 5CA9 28B1 A550 18CD A43C D111 7AD7 FAF2 From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 17:25:44 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DEE4106564A for ; Mon, 13 Feb 2012 17:25:44 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id DDA848FC1A for ; Mon, 13 Feb 2012 17:25:43 +0000 (UTC) Received: by yenl12 with SMTP id l12so3203899yen.13 for ; Mon, 13 Feb 2012 09:25:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Nud7vV1kkjhzDQNEzDe4eYbyaOWHnA0SguJsKEYDhUc=; b=vHc30Jitk26rhRvP7jzGzYILUJRzGIG9Tq0ldHgKwOTUMXQ6zRGw3bjvTkWPm+2k6T Nu9iNpYzK6iIvb8UnTS6uMOKs17hjZrnLNQUZSUeNoCkvxfJW2FAlIgLzXGh6KDfaCYn 2IGYHogdGvACcLxbFQz7pl3AzJYNUgTRyCRVY= MIME-Version: 1.0 Received: by 10.50.170.73 with SMTP id ak9mr28488810igc.3.1329153942688; Mon, 13 Feb 2012 09:25:42 -0800 (PST) Received: by 10.231.70.141 with HTTP; Mon, 13 Feb 2012 09:25:42 -0800 (PST) In-Reply-To: References: <4F38F10D.6050008@yandex.ru> Date: Mon, 13 Feb 2012 19:25:42 +0200 Message-ID: From: Sami Halabi To: Maxim Ignatenko Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, "Andrey V. Elsukov" Subject: Re: userfw - modular packet filter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 17:25:44 -0000 Hi Maxim, what are the other advantages on ipfw/pf ? like did you make speed measures? does packet leave the firewall faster? Sami On Mon, Feb 13, 2012 at 1:20 PM, Maxim Ignatenko wrot= e: > 2012/2/13 Andrey V. Elsukov : > > On 13.02.2012 14:31, Maxim Ignatenko wrote: > >> Dear -net, > >> > >> Today I want to present new packet filter for FreeBSD: userfw. It's > >> main design goal - to be easily extensible. > >> Source code is here: http://git.userfw.net/ > https://github.com/gelraen/userfw/ > >> Dedicated website: http://userfw.net/ > > > > Hi, Maxim > > > > Why do you called it "userfw"? Does it work in user level? :) > > > > Original idea was to write something like desktop firewalls found on > Windows=99, it changed later, but name was left the same and I don't see > a reason to do s/userfw/some_other_name/ through all sources now. > Also, I still plan to implement such functionality as a module, but > not right now. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > --=20 Sami Halabi Information Systems Engineer NMS Projects Expert From owner-freebsd-net@FreeBSD.ORG Mon Feb 13 18:18:41 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0902E106564A for ; Mon, 13 Feb 2012 18:18:41 +0000 (UTC) (envelope-from gelraen.ua@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C0128FC08 for ; Mon, 13 Feb 2012 18:18:40 +0000 (UTC) Received: by eekb47 with SMTP id b47so2212695eek.13 for ; Mon, 13 Feb 2012 10:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=xTyFj6xBI5ztvTQlibm+sCQ0YP92dvb8ln0wKRJqIn0=; b=GS1ZqRPlWUQugKmQ1fFkMao+esvDYU2YyV42NhF9hXn6hY02xdfxEWuwBHU9hCwRtW VrZFdsioVE/DGX7GTqUumwNyUvq2O3q6Fgq1FF2akLV/psSCjYhCWr2Ct5uogD3PzwSs rMMfrdBFLWp30FD6zjT9izfnobzfq8L+HyDNs= Received: by 10.14.37.69 with SMTP id x45mr5530574eea.43.1329157119476; Mon, 13 Feb 2012 10:18:39 -0800 (PST) Received: from imax.localnet (21-191-92-178.pool.ukrtel.net. [178.92.191.21]) by mx.google.com with ESMTPS id n56sm63520867eeh.6.2012.02.13.10.18.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Feb 2012 10:18:38 -0800 (PST) From: Maxim Ignatenko To: Sami Halabi Date: Mon, 13 Feb 2012 20:18:28 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-PRERELEASE; KDE/4.7.3; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201202132018.28798.gelraen.ua@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: userfw - modular packet filter X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2012 18:18:41 -0000 On =D0=BF=D0=BD, 13 =D0=BB=D1=8E=D1=82 2012 19:25:42 Sami Halabi wrote: > Hi Maxim, > what are the other advantages on ipfw/pf ? like did you make speed > measures? does packet leave the firewall faster? There was no performance testing yet, I want to implement more functionalit= y=20 first, to compare performance on rulesets more close to real world. From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 09:44:49 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 431DD1065670 for ; Tue, 14 Feb 2012 09:44:49 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 156848FC12 for ; Tue, 14 Feb 2012 09:44:48 +0000 (UTC) Received: by daec6 with SMTP id c6so6311453dae.13 for ; Tue, 14 Feb 2012 01:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=srNEXbDopAY7jZFxicmFHdvpyzGvpB6eyHWezHN3V50=; b=PSzlURFuOVN/zdLoLOr8uLdTxLxZIdPdexxmsXfsyaTngsSXvQkFcz08OQ6jscGvzM UPmyKB+jPixubBz1XG/Q4IRO+JLWUrU6YkyQTJx+wUaLgd7FeNUIOuLikbu5w9cGjbEz 56rwbt+5Qb+Hu3g6zN1vhM83ZWRJb1/3K7ZxA= Received: by 10.68.219.234 with SMTP id pr10mr58326162pbc.11.1329212688457; Tue, 14 Feb 2012 01:44:48 -0800 (PST) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id p9sm2262808pbb.9.2012.02.14.01.44.45 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Feb 2012 01:44:47 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 14 Feb 2012 18:44:45 -0800 From: YongHyeon PYUN Date: Tue, 14 Feb 2012 18:44:45 -0800 To: Matt Renzelmann Message-ID: <20120215024445.GA1340@michelle.cdnetworks.com> References: <003101cce1b8$fe7def80$fb79ce80$@cs.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003101cce1b8$fe7def80$fb79ce80$@cs.wisc.edu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-net@freebsd.org Subject: Re: 8139 driver question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 09:44:49 -0000 On Thu, Feb 02, 2012 at 08:43:09AM -0600, Matt Renzelmann wrote: > Hello, > > This will seem a bit off the wall, but I just noticed a discrepancy between the > registers defined in the pci/if_rlreg.h directory and those specified on the > RealTek datasheets for the antique RealTek 8139. > > In particular, as defined in the header, the registers in question are: > #define RL_CFG0 0x0051 /* config register #0 */ > #define RL_CFG1 0x0052 /* config register #1 */ > #define RL_CFG2 0x0053 /* config register #2 */ > #define RL_CFG3 0x0054 /* config register #3 */ > #define RL_CFG4 0x0055 /* config register #4 */ > #define RL_CFG5 0x0056 /* config register #5 */ > > The RealTek data sheets for the 8139, however, all indicate that these should be > set to something like this: > #define RL_CFG0 0x0051 /* config register #0 */ > #define RL_CFG1 0x0052 /* config register #1 */ > // No Config2 > #define RL_CFG3 0x0059 /* config register #3 */ > #define RL_CFG4 0x005A /* config register #4 */ > #define RL_CFG5 0x00D8 /* config register #5 */ > > The datasheets I'm referencing are available here: > http://realtek.info/pdf/ > > Specifically: > http://realtek.info/pdf/rtl8139d.pdf > http://realtek.info/pdf/rtl8139cp.pdf > > I believe the registers currently used apply to the 8169, but not necessarily > the 8139 family -- can someone, hopefully easily, verify that the 8139 driver is > using the right registers? The 8139 series may need the slightly different > values used above to enable functionality like wake-on-lan. > Thanks for letting me know that. As you said RTL8139/RTL8139C+ use different config registers and it may affect WOL functionality. When I implemented WOL on rl(4), I remember WOL worked at that time. After reading your mail, I wonder how it would have worked at that time. :-( Thanks. > Thanks and regards, > Matt From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 06:46:58 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22F6A1065674 for ; Tue, 14 Feb 2012 06:46:58 +0000 (UTC) (envelope-from liuhuixi@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E20DE8FC19 for ; Tue, 14 Feb 2012 06:46:57 +0000 (UTC) Received: by iaeo4 with SMTP id o4so6723313iae.13 for ; Mon, 13 Feb 2012 22:46:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=9gh5s87nTJGiaeVsnnhlt8AzDho+Ro70bTNxJEV5LIE=; b=Dc9LLq3p21XWajYs7qD6f/Ab1XrFw3jocIPd330eIFcDmssXz5gV2CWzb9uOLjtnXb 1nzCTfmKw1i1gaQMAcXWsye8ot57YTHwGUygL+rWm4gPPv3s6+aUziIWZue9qO/wfB94 0D33Hi8cgUIn2ctAK/qeKz4ebtY8vwO2TVpyc= MIME-Version: 1.0 Received: by 10.50.153.198 with SMTP id vi6mr31816151igb.30.1329202017386; Mon, 13 Feb 2012 22:46:57 -0800 (PST) Received: by 10.42.230.131 with HTTP; Mon, 13 Feb 2012 22:46:57 -0800 (PST) Date: Tue, 14 Feb 2012 14:46:57 +0800 Message-ID: From: =?GB2312?B?wfW73c71?= To: freebsd-net@freebsd.org X-Mailman-Approved-At: Tue, 14 Feb 2012 13:32:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: About the KAME project and automated testing IPv6 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 06:46:58 -0000 Hi, I have installed the FreeBSD 5.4, and make install the right version of mysql,php and httpd. How can I set up a web site like "www.kame.net" in a local network ,which is used to automated testing ipv6? Is there anyone have the source code of "www.kame.net"? Or does anyone know where to find the source code ? Looking forward to your reply Thanks! Henry From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 14:08:44 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 452EF106566B for ; Tue, 14 Feb 2012 14:08:44 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id CDAB58FC1A for ; Tue, 14 Feb 2012 14:08:42 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q1EDrJsn043101 for ; Tue, 14 Feb 2012 14:53:32 +0100 (CET) X-Ids: 168 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q1EDpJ4W081717 for ; Tue, 14 Feb 2012 14:51:19 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q1EDpJep081714; Tue, 14 Feb 2012 14:51:19 +0100 (CET) (envelope-from arno) To: freebsd-net@freebsd.org From: "Arno J. Klaassen" Date: Tue, 14 Feb 2012 14:51:19 +0100 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F3A674F.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F3A674F.000/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Subject: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 14:08:44 -0000 Hello, could someone provide me wit a hint how to get wpa_supplicant to work in the following environment : - standard : IEEE 802.11 (at least they pretend in the doc) - mode : "infrastructure" (?) - WEP : 128bit - Authent : open - and then "username/password" upon browser-launch (at least under Windows) When I put the following to wpa_suplicant.conf I get "State : ASSOCIATED -> COMPLETED" : ssid="their-ID" (unpublished) scan_ssid=1 key_mgmt=NONE wep_key0="part1" wep_key1="part2" wep_key2="part3" However, 'dhclient wlan0' says "No DHCPOFFERS received" .... Any help appreciated. Thanx in advance, regards, Arno From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 14:58:13 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CB4B106566C for ; Tue, 14 Feb 2012 14:58:13 +0000 (UTC) (envelope-from mjr@cs.wisc.edu) Received: from sabe.cs.wisc.edu (sabe.cs.wisc.edu [128.105.6.20]) by mx1.freebsd.org (Postfix) with ESMTP id 664188FC13 for ; Tue, 14 Feb 2012 14:58:13 +0000 (UTC) Received: from Core (71-90-102-157.dhcp.ftbg.wi.charter.com [71.90.102.157]) (authenticated bits=0) by sabe.cs.wisc.edu (8.14.1/8.14.1) with ESMTP id q1EEwBUl018040 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 14 Feb 2012 08:58:11 -0600 From: "Matt Renzelmann" To: References: <003101cce1b8$fe7def80$fb79ce80$@cs.wisc.edu> <20120215024445.GA1340@michelle.cdnetworks.com> In-Reply-To: <20120215024445.GA1340@michelle.cdnetworks.com> Date: Tue, 14 Feb 2012 08:58:03 -0600 Message-ID: <003b01cceb29$116722a0$343567e0$@cs.wisc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJev1HuoMGB37k2LEBCZmK2l7Ba2wLJHbSglQKJ4tA= Content-Language: en-us Cc: freebsd-net@freebsd.org Subject: RE: 8139 driver question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 14:58:13 -0000 You're welcome. For what it's worth, the Linux driver uses the second set of values referenced below. I think one of the two drivers likely has a bug, but I'm not currently in a position to test it on hardware, so you don't need to fix it on my account :) Thanks and regards, Matt -----Original Message----- From: YongHyeon PYUN [mailto:pyunyh@gmail.com] Sent: Tuesday, February 14, 2012 8:45 PM To: Matt Renzelmann Cc: freebsd-net@freebsd.org Subject: Re: 8139 driver question On Thu, Feb 02, 2012 at 08:43:09AM -0600, Matt Renzelmann wrote: > Hello, > > This will seem a bit off the wall, but I just noticed a discrepancy between the > registers defined in the pci/if_rlreg.h directory and those specified on the > RealTek datasheets for the antique RealTek 8139. > > In particular, as defined in the header, the registers in question are: > #define RL_CFG0 0x0051 /* config register #0 */ > #define RL_CFG1 0x0052 /* config register #1 */ > #define RL_CFG2 0x0053 /* config register #2 */ > #define RL_CFG3 0x0054 /* config register #3 */ > #define RL_CFG4 0x0055 /* config register #4 */ > #define RL_CFG5 0x0056 /* config register #5 */ > > The RealTek data sheets for the 8139, however, all indicate that these should be > set to something like this: > #define RL_CFG0 0x0051 /* config register #0 */ > #define RL_CFG1 0x0052 /* config register #1 */ > // No Config2 > #define RL_CFG3 0x0059 /* config register #3 */ > #define RL_CFG4 0x005A /* config register #4 */ > #define RL_CFG5 0x00D8 /* config register #5 */ > > The datasheets I'm referencing are available here: > http://realtek.info/pdf/ > > Specifically: > http://realtek.info/pdf/rtl8139d.pdf > http://realtek.info/pdf/rtl8139cp.pdf > > I believe the registers currently used apply to the 8169, but not necessarily > the 8139 family -- can someone, hopefully easily, verify that the 8139 driver is > using the right registers? The 8139 series may need the slightly different > values used above to enable functionality like wake-on-lan. > Thanks for letting me know that. As you said RTL8139/RTL8139C+ use different config registers and it may affect WOL functionality. When I implemented WOL on rl(4), I remember WOL worked at that time. After reading your mail, I wonder how it would have worked at that time. :-( Thanks. > Thanks and regards, > Matt From owner-freebsd-net@FreeBSD.ORG Tue Feb 14 23:28:44 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B8E0B106566C; Tue, 14 Feb 2012 23:28:44 +0000 (UTC) (envelope-from julian@elischer.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 8E65E8FC12; Tue, 14 Feb 2012 23:28:44 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id q1EMpcvD099752 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 14 Feb 2012 14:51:39 -0800 (PST) (envelope-from julian@elischer.org) Message-ID: <4F3AE5D5.1080908@elischer.org> Date: Tue, 14 Feb 2012 14:53:09 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.26) Gecko/20120129 Thunderbird/3.1.18 MIME-Version: 1.0 To: devsummit@FreeBSD.org, FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 14 Feb 2012 23:50:04 +0000 Cc: Subject: mbuf evolution session at devsummit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 23:28:44 -0000 I'm still working on attending but..... even if I can't make it.... ============================================================ topic: Time for an mbuf re-evaluation chair: plenty to choose from but I can't guarantee I'll be there yet, Luigi will be guests: the usual cuplrits: bz, me, luigi, robert, marko if present, jeff if present, gnn, etc. etc. cheesecake: yes please agenda: what's wrong with the current mbufs what should we add? extended external references (queue Luigi entering stage left, singing:) tags and other extensibilies. fibs, multi cpus, jail based pools, pools per device.. etc. From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 02:37:50 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 73220106566B; Wed, 15 Feb 2012 02:37:50 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 395D18FC08; Wed, 15 Feb 2012 02:37:50 +0000 (UTC) Received: by pbcxa7 with SMTP id xa7so1148060pbc.13 for ; Tue, 14 Feb 2012 18:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=kdzLiep3umfgXSgCt0YzUoJhznlHVNJ1akd3KXWDibo=; b=siagVRd9n64QvjOo/eJB6Xecuuhg42Fj7ZDh8sWqtFTl8YQjoLOFUs+wOeaRsIA6dk 82URKDKrr7nlrG3CSK404r4X4GpUw1F/IxjCNwI/7IZMNT6B60PYYR7Eghs6MioA92ob g9E2FjmuiNYxnVZP3Fc3R7f4HBckYXm65TBYY= Received: by 10.68.225.73 with SMTP id ri9mr64605648pbc.70.1329273469831; Tue, 14 Feb 2012 18:37:49 -0800 (PST) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id q8sm7519453pbi.1.2012.02.14.18.37.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Feb 2012 18:37:48 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 15 Feb 2012 11:37:46 -0800 From: YongHyeon PYUN Date: Wed, 15 Feb 2012 11:37:46 -0800 To: Randy Bush Message-ID: <20120215193746.GC4131@michelle.cdnetworks.com> References: <20120128121830.GA38513@alchemy.franken.de> <20120128131830.GZ44286@alchemy.franken.de> <20120128213857.GB39861@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Net , FreeBSD Stable , Marius Strobl Subject: Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 02:37:50 -0000 On Sun, Jan 29, 2012 at 01:19:40PM +0900, Randy Bush wrote: > > What happens if you set hw.bge.allow_asf to 0 and use auto-negotiation > > on both sides? > > it works! the switch was already auto-neg, and i forced auto-neg on the > server side. > Apart from suspend/resume issue, bge(4) still needs more code to handle controllers with ASF/IPMI firmware. This part is mostly undocumented and hard to experiment due to lack of hardware access. Current IPMI/ASF handling code shows mixed results and setting hw.bge.allow_asf to 0 will break IPMI support. > thanks. this was not pleasant. did i remember to whine that i am in > tokyo and the server is on the beast coast of the states? :) > > i think a bit of a warning about hw.bge.allow_asf in UPDATING might help > folk. > > thank you *very* much for your help. > > randy From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 05:49:03 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30EF11065679 for ; Wed, 15 Feb 2012 05:49:03 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B528B8FC13 for ; Wed, 15 Feb 2012 05:49:02 +0000 (UTC) Received: by werm13 with SMTP id m13so631672wer.13 for ; Tue, 14 Feb 2012 21:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=nNKizrlfl4vFs8+NDwbxBd+awlJPaHO6yoQx46pz3Ik=; b=brtwLewaYYf2cP0UWDkQGSYzWZbaAbz446mgEMW5zz9sS5LoJID/G45xu3S9WhND3V kKO/D9HUa7Q+HUqYBUD5xot5eix/m+5rc5s4655WpxZxg4kHXo7u3fv+2uLDPIYwow1Q 9UkpkC1skVwuONjcb1ADz471flhRBGD2mnDUo= MIME-Version: 1.0 Received: by 10.180.95.105 with SMTP id dj9mr33080140wib.18.1329284941573; Tue, 14 Feb 2012 21:49:01 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Tue, 14 Feb 2012 21:49:01 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Feb 2012 21:49:01 -0800 X-Google-Sender-Auth: yTdyfcppDS9C_PR6Pxtkh4g3-ZU Message-ID: From: Adrian Chadd To: "Arno J. Klaassen" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 05:49:03 -0000 Wep? With a username/password? I've not seen this. Does anyone have any ideas? Adrian On 14 February 2012 05:51, Arno J. Klaassen wrot= e: > Hello, > > could someone provide me wit a hint how to get wpa_supplicant > to work in the following environment : > > =A0- standard =A0: IEEE 802.11 (at least they pretend in the doc) > =A0- =A0 =A0mode =A0 : "infrastructure" (?) > =A0- =A0 =A0WEP =A0 =A0: 128bit > =A0- Authent =A0 : open > > =A0- and then "username/password" upon browser-launch (at least under > =A0 Windows) > > When I put the following to wpa_suplicant.conf I get "State : > ASSOCIATED -> COMPLETED" =A0: > > =A0ssid=3D"their-ID" =A0(unpublished) > =A0scan_ssid=3D1 > =A0key_mgmt=3DNONE > =A0wep_key0=3D"part1" > =A0wep_key1=3D"part2" > =A0wep_key2=3D"part3" > > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... > > Any help appreciated. > > Thanx in advance, regards, > > Arno > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 07:12:04 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6A08106566B for ; Wed, 15 Feb 2012 07:12:04 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from EXFESMQ04.datapipe-corp.net (exfesmq04.datapipe.com [64.27.120.68]) by mx1.freebsd.org (Postfix) with ESMTP id 74C748FC15 for ; Wed, 15 Feb 2012 07:12:03 +0000 (UTC) Received: from nat.myhome (192.168.128.103) by EXFESMQ04.datapipe-corp.net (192.168.128.29) with Microsoft SMTP Server (TLS) id 14.1.355.2; Wed, 15 Feb 2012 02:12:02 -0500 Date: Wed, 15 Feb 2012 01:12:22 -0600 From: "Paul A. Procacci" To: Adrian Chadd Message-ID: <20120215071222.GD12291@nat.myhome> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [192.168.128.103] Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 07:12:04 -0000 Is your DHCP daemon setup to listen on the interface where the AP is runnin= g? For username/password prompt upon browser launch, you'll need to configure = a reverse proxy to get a cookie upon successful auth to pass through the pr= oxy. ~Paul On Tue, Feb 14, 2012 at 09:49:01PM -0800, Adrian Chadd wrote: > Wep? With a username/password? I've not seen this. > > Does anyone have any ideas? > > > Adrian > > > On 14 February 2012 05:51, Arno J. Klaassen wr= ote: > > Hello, > > > > could someone provide me wit a hint how to get wpa_supplicant > > to work in the following environment : > > > > ?- standard ?: IEEE 802.11 (at least they pretend in the doc) > > ?- ? ?mode ? : "infrastructure" (?) > > ?- ? ?WEP ? ?: 128bit > > ?- Authent ? : open > > > > ?- and then "username/password" upon browser-launch (at least under > > ? Windows) > > > > When I put the following to wpa_suplicant.conf I get "State : > > ASSOCIATED -> COMPLETED" ?: > > > > ?ssid=3D"their-ID" ?(unpublished) > > ?scan_ssid=3D1 > > ?key_mgmt=3DNONE > > ?wep_key0=3D"part1" > > ?wep_key1=3D"part2" > > ?wep_key2=3D"part3" > > > > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... > > > > Any help appreciated. > > > > Thanx in advance, regards, > > > > Arno > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" ________________________________ This message may contain confidential or privileged information. If you are= not the intended recipient, please advise us immediately and delete this m= essage. See http://www.datapipe.com/legal/email_disclaimer/ for further inf= ormation on confidentiality and the risks of non-secure electronic communic= ation. If you cannot access these links, please notify us by reply message = and we will send the contents to you. From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 09:42:36 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C473A1065670 for ; Wed, 15 Feb 2012 09:42:36 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 0D26F8FC0A for ; Wed, 15 Feb 2012 09:42:35 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 8598B73; Wed, 15 Feb 2012 10:42:34 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dNhDxPtQY0Ic; Wed, 15 Feb 2012 10:42:27 +0100 (CET) Received: from snifi.localnet (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 0D7632E; Wed, 15 Feb 2012 10:42:27 +0100 (CET) From: Maciej Milewski To: freebsd-net@freebsd.org Date: Wed, 15 Feb 2012 10:42:37 +0100 Message-ID: <1409561.bgvrFLXgOz@snifi> User-Agent: KMail/4.8.0 (Linux/3.2.5-1-ARCH; KDE/4.8.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7Bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Adrian Chadd Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 09:42:37 -0000 Dnia wtorek, 14 lutego 2012 21:49:01 Adrian Chadd pisze: > Wep? With a username/password? I've not seen this. > > Does anyone have any ideas? > > Adrian Probably WEP one for all users and username/password as an auth form for captive portal(Network Access Control). I haven't used that so I can't say anything more. Maciek > > On 14 February 2012 05:51, Arno J. Klaassen wrote: > > Hello, > > > > could someone provide me wit a hint how to get wpa_supplicant > > to work in the following environment : > > > > - standard : IEEE 802.11 (at least they pretend in the doc) > > - mode : "infrastructure" (?) > > - WEP : 128bit > > - Authent : open > > > > - and then "username/password" upon browser-launch (at least under > > Windows) > > > > When I put the following to wpa_suplicant.conf I get "State : > > ASSOCIATED -> COMPLETED" : > > > > ssid="their-ID" (unpublished) > > scan_ssid=1 > > key_mgmt=NONE > > wep_key0="part1" > > wep_key1="part2" > > wep_key2="part3" > > > > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... > > > > Any help appreciated. > > > > Thanx in advance, regards, > > > > Arno -- Pozdrawiam, Maciej Milewski From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 10:36:09 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5EAD106566C for ; Wed, 15 Feb 2012 10:36:09 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 51DFD8FC1A for ; Wed, 15 Feb 2012 10:36:09 +0000 (UTC) Received: by people.fsn.hu (Postfix, from userid 1001) id 45653C0BE78; Wed, 15 Feb 2012 11:17:50 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.009797, version=1.2.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 8.9843] X-CRM114-CacheID: sfid-20120215_11174_0CE4D039 X-CRM114-Status: Good ( pR: 8.9843 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Feb 15 11:17:50 2012 X-DSPAM-Confidence: 0.8503 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4f3b864e298071754677676 X-DSPAM-Factors: 27, From*Attila Nagy , 0.00010, FreeBSD, 0.00053, STABLE, 0.00553, I+get, 0.00588, (for, 0.00759, threads, 0.00759, core, 0.00849, Received*FreeBSD.org>, 0.00866, this+happens, 0.00866, (using, 0.01000, I'm+using, 0.01000, To*FreeBSD, 0.01000, I+run, 0.01000, Subject*Very, 0.99000, To*FreeBSD.org>, 0.01000, User-Agent*i686, 0.01134, mode, 0.01243, User-Agent*Linux+i686, 0.01293, DNS, 0.01341, User-Agent*i686+en, 0.01392, thread, 0.01584, thread, 0.01584, User-Agent*Mozilla/5.0+(X11, 0.01614, whether, 0.01717, the+problem, 0.01801, query, 0.01998, X-Spambayes-Classification: ham; 0.00 Received: from japan.t-online.private (japan.t-online.co.hu [195.228.243.99]) by people.fsn.hu (Postfix) with ESMTPSA id 7C4DBC0BE6C for ; Wed, 15 Feb 2012 11:17:49 +0100 (CET) Message-ID: <4F3B864D.1010000@fsn.hu> Date: Wed, 15 Feb 2012 11:17:49 +0100 From: Attila Nagy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Very bad distribution of packets between multiple listening threads X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 10:36:09 -0000 Hi, I'm using FreeBSD 9-STABLE on a four core machine with bce to run multi-threaded unbound with libev (using kqueue). Here's the first message (not a long thread so far) about the problem: http://unbound.net/pipermail/unbound-users/2012-February/002237.html To summarize: whether I run unbound in multi-threaded or multi-process mode, I get very bad DNS query distribution between threads/processes. There is sometimes a 10-fold difference in the queries served (QPS) between threads (for example thread X gets 300, thread Y gets 3000). What could be done to make this distribution more balanced between threads? And where does this happens exactly? Thanks, From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 12:30:18 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6984310656AC for ; Wed, 15 Feb 2012 12:30:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 535998FC15 for ; Wed, 15 Feb 2012 12:30:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1FCUHQS037595 for ; Wed, 15 Feb 2012 12:30:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1FCUHAc037592; Wed, 15 Feb 2012 12:30:17 GMT (envelope-from gnats) Date: Wed, 15 Feb 2012 12:30:17 GMT Message-Id: <201202151230.q1FCUHAc037592@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Eugene Grosbein Cc: Subject: Re: kern/162558: [dummynet] [panic] seldom dummynet panics X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eugene Grosbein List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 12:30:18 -0000 The following reply was made to PR kern/162558; it has been noted by GNATS. From: Eugene Grosbein To: bug-followup@FreeBSD.ORG Cc: Subject: Re: kern/162558: [dummynet] [panic] seldom dummynet panics Date: Wed, 15 Feb 2012 19:25:43 +0700 Hi! The source of this problem seems to be famous 'dangling pointer' problem: - mbufs with packets from PPPoE users sometimes stall within dummynet queues, - then user disconnects, its ngX interface get destroyed, - then dummynet attempts to dereference its ifp pointer and panic occurs. There is workaround consisting of several tunnables eliminating races: - net.isr.bindthreads=1 in /boot/loader.conf; - net.isr.direct=1 and net.isr.direct_force=1 in /etc/sysctl.conf (default) Plus, use recent 8.2-STABLE as it contains some netgraph fixes for bugs that lead to panics in 8.2-RELEASE and early 8.2-STABLE versions. With these precautions I run my routers rock stable for months. Eugene Grosbein From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 15:03:43 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E97791065676 for ; Wed, 15 Feb 2012 15:03:42 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0D58FC15 for ; Wed, 15 Feb 2012 15:03:42 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q1FF39v1057973 ; Wed, 15 Feb 2012 16:03:23 +0100 (CET) X-Ids: 165 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q1FF2NOL094744; Wed, 15 Feb 2012 16:02:23 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q1FF2NcW094741; Wed, 15 Feb 2012 16:02:23 +0100 (CET) (envelope-from arno) To: "Paul A. Procacci" From: "Arno J. Klaassen" References: <20120215071222.GD12291@nat.myhome> Date: Wed, 15 Feb 2012 16:02:22 +0100 In-Reply-To: <20120215071222.GD12291@nat.myhome> (Paul A. Procacci's message of "Wed\, 15 Feb 2012 01\:12\:22 -0600") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F3BC92E.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F3BC92E.000/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Cc: freebsd-net@freebsd.org Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 15:03:43 -0000 Hello, "Paul A. Procacci" writes: > Is your DHCP daemon setup to listen on the interface where the AP is > running? Dunno... How could eventually be sure Windows got it's IP-addres by DHCP? > For username/password prompt upon browser launch, you'll need to configure a reverse proxy to get a cookie upon successful auth to pass through the proxy. Could you please explain me how to do this? Thanx, Arno > ~Paul > > On Tue, Feb 14, 2012 at 09:49:01PM -0800, Adrian Chadd wrote: >> Wep? With a username/password? I've not seen this. >> >> Does anyone have any ideas? >> >> >> Adrian >> >> >> On 14 February 2012 05:51, Arno J. Klaassen wrote: >> > Hello, >> > >> > could someone provide me wit a hint how to get wpa_supplicant >> > to work in the following environment : >> > >> > ?- standard ?: IEEE 802.11 (at least they pretend in the doc) >> > ?- ? ?mode ? : "infrastructure" (?) >> > ?- ? ?WEP ? ?: 128bit >> > ?- Authent ? : open >> > >> > ?- and then "username/password" upon browser-launch (at least under >> > ? Windows) >> > >> > When I put the following to wpa_suplicant.conf I get "State : >> > ASSOCIATED -> COMPLETED" ?: >> > >> > ?ssid="their-ID" ?(unpublished) >> > ?scan_ssid=1 >> > ?key_mgmt=NONE >> > ?wep_key0="part1" >> > ?wep_key1="part2" >> > ?wep_key2="part3" >> > >> > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... >> > >> > Any help appreciated. >> > >> > Thanx in advance, regards, >> > >> > Arno >> > _______________________________________________ >> > freebsd-net@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > ________________________________ > > This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/legal/email_disclaimer/ for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. > -- Arno J. Klaassen SCITO S.A. 8 rue des Haies F-75020 Paris, France http://scito.com From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 15:46:16 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FDCA1065670 for ; Wed, 15 Feb 2012 15:46:16 +0000 (UTC) (envelope-from pprocacci@datapipe.com) Received: from EXFESMQ03.datapipe-corp.net (exfesmq03.datapipe.com [64.27.120.67]) by mx1.freebsd.org (Postfix) with ESMTP id A4C428FC08 for ; Wed, 15 Feb 2012 15:46:15 +0000 (UTC) Received: from nat.myhome (192.168.128.103) by EXFESMQ03.datapipe-corp.net (192.168.128.28) with Microsoft SMTP Server (TLS) id 14.1.355.2; Wed, 15 Feb 2012 10:46:14 -0500 Date: Wed, 15 Feb 2012 09:46:34 -0600 From: "Paul A. Procacci" To: "Arno J. Klaassen" Message-ID: <20120215154634.GF12291@nat.myhome> References: <20120215071222.GD12291@nat.myhome> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [192.168.128.103] Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 15:46:16 -0000 On Wed, Feb 15, 2012 at 04:02:22PM +0100, Arno J. Klaassen wrote: > > Hello, > > "Paul A. Procacci" writes: > > > Is your DHCP daemon setup to listen on the interface where the AP is > > running? > > Dunno... How could eventually be sure Windows got it's IP-addres by DHCP? > Sorry, you hadn't made it very clear if you were attempting to get a lease = from a DHCP server running on a FreeBSD machine or not. I assumed you were, and had assumed your configuration may have been wrong.= However, given your response, I assume you're using an "off the shelf" AP= . There are several things that come to mind as to why you wouldn't get a DHC= P lease, like MAC filtering as an example. You'll have to check the logs o= f the DHCP server to see if your requests are even making it to the daemon. tcpd= ump will come in handy if you have shell capabilities on your AP. > > For username/password prompt upon browser launch, you'll need to config= ure a reverse proxy to get a cookie upon successful auth to pass through th= e proxy. > > Could you please explain me how to do this? As for the proxy, you'll need to look at squid. I've personally never done= what you need, but a buddy of mine has using squid. I can't give you any = further details as the configuration/administrator of squid I know nothing about. = I do know though that it has the capabilities you seek. ~Paul ________________________________ This message may contain confidential or privileged information. If you are= not the intended recipient, please advise us immediately and delete this m= essage. See http://www.datapipe.com/legal/email_disclaimer/ for further inf= ormation on confidentiality and the risks of non-secure electronic communic= ation. If you cannot access these links, please notify us by reply message = and we will send the contents to you. From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 15:47:29 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1967A1065675 for ; Wed, 15 Feb 2012 15:47:29 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 98FF98FC08 for ; Wed, 15 Feb 2012 15:47:28 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q1FFlOvB068427 ; Wed, 15 Feb 2012 16:47:24 +0100 (CET) X-Ids: 164 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q1FFGBZd094868; Wed, 15 Feb 2012 16:16:11 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q1FFGAD4094865; Wed, 15 Feb 2012 16:16:10 +0100 (CET) (envelope-from arno) To: Maciej Milewski From: "Arno J. Klaassen" References: <1409561.bgvrFLXgOz@snifi> Date: Wed, 15 Feb 2012 16:16:10 +0100 In-Reply-To: <1409561.bgvrFLXgOz@snifi> (Maciej Milewski's message of "Wed\, 15 Feb 2012 10\:42\:37 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F3BD38C.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F3BD38C.000/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Cc: freebsd-net@freebsd.org, Adrian Chadd Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 15:47:29 -0000 Hello, Maciej Milewski writes: > Dnia wtorek, 14 lutego 2012 21:49:01 Adrian Chadd pisze: > > > Wep? With a username/password? I've not seen this. > > > > > > Does anyone have any ideas? > > > > > > Adrian > > Probably WEP one for all users and username/password as an auth form > for captive portal(Network Access Control). Looks close : this is on a site with very restricted (physical) access : each day I pass I get a WEP-key and username/password only valid during the day; the WEP-key (till now) still is the same As said, I can get the wlan0 interface up, but no idea how to assign it an IP-addres .... > I haven't used that so I > can't say anything more. Pity ;-) Thanx anyway. Regards, Arno > > Maciek > > > > > > > On 14 February 2012 05:51, Arno J. Klaassen > wrote: > > > > Hello, > > > > > > > > could someone provide me wit a hint how to get wpa_supplicant > > > > to work in the following environment : > > > > > > > > - standard : IEEE 802.11 (at least they pretend in the doc) > > > > - mode : "infrastructure" (?) > > > > - WEP : 128bit > > > > - Authent : open > > > > > > > > - and then "username/password" upon browser-launch (at least under > > > > Windows) > > > > > > > > When I put the following to wpa_suplicant.conf I get "State : > > > > ASSOCIATED -> COMPLETED" : > > > > > > > > ssid="their-ID" (unpublished) > > > > scan_ssid=1 > > > > key_mgmt=NONE > > > > wep_key0="part1" > > > > wep_key1="part2" > > > > wep_key2="part3" > > > > > > > > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... > > > > > > > > Any help appreciated. > > > > > > > > Thanx in advance, regards, > > > > > > > > Arno > > -- > > Pozdrawiam, > > Maciej Milewski From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 16:25:40 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 135BB106566B; Wed, 15 Feb 2012 16:25:40 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 54C208FC0C; Wed, 15 Feb 2012 16:25:38 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id C832D47; Wed, 15 Feb 2012 17:25:37 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S3vUOlSAobPc; Wed, 15 Feb 2012 17:25:31 +0100 (CET) Received: from snifi.localnet (unknown [212.69.68.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id AE39937; Wed, 15 Feb 2012 17:25:31 +0100 (CET) From: Maciej Milewski To: freebsd-net@freebsd.org Date: Wed, 15 Feb 2012 17:25:44 +0100 Message-ID: <2317299.no4denjdye@snifi> User-Agent: KMail/4.8.0 (Linux/3.2.5-1-ARCH; KDE/4.8.0; x86_64; ; ) In-Reply-To: References: <1409561.bgvrFLXgOz@snifi> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Adrian Chadd Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 16:25:40 -0000 Dnia =C5=9Broda, 15 lutego 2012 16:16:10 Arno J. Klaassen pisze: > Hello, >=20 > Maciej Milewski writes: > > Dnia wtorek, 14 lutego 2012 21:49:01 Adrian Chadd pisze: > > > Wep? With a username/password? I've not seen this. > > > Does anyone have any ideas? > > > Adrian > > =20 > > Probably WEP one for all users and username/password as an auth = form > > for captive portal(Network Access Control). >=20 > Looks close : this is on a site with very restricted (physical) acces= s : > each day I pass I get a WEP-key and username/password only valid > during the day; the WEP-key (till now) still is the same >=20 > As said, I can get the wlan0 interface up, but no idea how to assign > it an IP-addres .... >=20 > > I haven't used that so I > > can't say anything more. >=20 > Pity ;-) Thanx anyway. >=20 > Regards, >=20 > Arno Arno, one more thing came to my mind: you don't need to use wpa_supplicant to get WEP support. AFAIK WEP128 i= s=20 different name for 104-bits key and that might be supported without nee= d of=20 wpa_supplicant. man ifconfig might shed some light. Although wpa_supplicant message states that it connected successfully t= o the=20 network. Can you try to set the address by hand(taking some earlier inf= o from=20 windows machine)? Additionally you may try to use dhcpcd instead of dhclient(I suspect it= 's in=20 ports). I remember some strange networks where dhclient had problems bu= t=20 dhcpcd worked fine. Maciej > > > On 14 February 2012 05:51, Arno J. Klaassen > > wrote: > > > > Hello, > > > > could someone provide me wit a hint how to get wpa_supplican= t > > > >=20 > > > > to work in the following environment : > > > > - standard : IEEE 802.11 (at least they pretend in the doc= ) > > > > - mode : "infrastructure" (?) > > > > - WEP : 128bit > > > > - Authent : open > > > > - and then "username/password" upon browser-launch (at leas= t under > > > > Windows) > > > > When I put the following to wpa_suplicant.conf I get "State = : > > > > ASSOCIATED -> COMPLETED" : > > > > ssid=3D"their-ID" (unpublished) > > > > scan_ssid=3D1 > > > > key_mgmt=3DNONE > > > > wep_key0=3D"part1" > > > > wep_key1=3D"part2" > > > > wep_key2=3D"part3" > > > > However, 'dhclient wlan0' says "No DHCPOFFERS received" ....= > > > > Any help appreciated. > > > > Thanx in advance, regards, > > > > Arno From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 16:42:22 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0235F106566B for ; Wed, 15 Feb 2012 16:42:22 +0000 (UTC) (envelope-from kickbsd@yandex.ru) Received: from forward4.mail.yandex.net (forward4.mail.yandex.net [IPv6:2a02:6b8:0:602::4]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6918FC18 for ; Wed, 15 Feb 2012 16:42:21 +0000 (UTC) Received: from web72.yandex.ru (web72.yandex.ru [77.88.46.34]) by forward4.mail.yandex.net (Yandex) with ESMTP id A3414500407 for ; Wed, 15 Feb 2012 20:42:19 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1329324139; bh=Vp7FSOCIcn/T79KT/q3JfYMy/SgPGsX084XaUub3Hik=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=CfEvaqhO8A76AGMiOPMp+RWj0HkcJmq6kogGzYAgOQf8u8dEClJiLP4PteRQWxlSQ YNBCk7ylYQjtn5xwI3RSY/HEa6uKt8bbNZ7kyXytBg5w7kROIgYDEzFImpaUaHB+IB BuMtxRGIljU7Mo75/KatDVCuRxCHTxB+nIGjasqo= Received: from localhost (localhost.localdomain [127.0.0.1]) by web72.yandex.ru (Yandex) with ESMTP id 8405CFE8144 for ; Wed, 15 Feb 2012 20:42:19 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1329324139; bh=Vp7FSOCIcn/T79KT/q3JfYMy/SgPGsX084XaUub3Hik=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=CfEvaqhO8A76AGMiOPMp+RWj0HkcJmq6kogGzYAgOQf8u8dEClJiLP4PteRQWxlSQ YNBCk7ylYQjtn5xwI3RSY/HEa6uKt8bbNZ7kyXytBg5w7kROIgYDEzFImpaUaHB+IB BuMtxRGIljU7Mo75/KatDVCuRxCHTxB+nIGjasqo= X-Yandex-Spam: 1 Received: from modemcable089.150-203-24.mc.videotron.ca (modemcable089.150-203-24.mc.videotron.ca [24.203.150.89]) by web72.yandex.ru with HTTP; Wed, 15 Feb 2012 20:42:16 +0400 From: Darren Baginski Envelope-From: kickbsd@yandex.ru To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-Id: <166591329324139@web72.yandex.ru> Date: Wed, 15 Feb 2012 20:42:16 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Subject: IGB freezes after about 2 weeks of uptime X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 16:42:22 -0000 Hi! After about 2 weeks of uptime I'm getting messages like that: igb0: Watchdog timeout -- resetting igb0: Queue(0) tdh = 16, hw tdt = 20 igb0: TX(0) desc avail = 1020,Next TX to Clean = 16 igb0: link state changed to DOWN igb0: link state changed to UP Reboot helps, for the next ~2 weeks. Kernel is GENERIC. Card is 4 ports Intel FreeBSD srv-4-2.lab.local 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Thu Jan 19 18:31:23 UTC 2012 root@srv-4-2.lab.local:/usr/obj/usr/src/sys/GENERIC amd64 Is there a fix for that problem ? From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 16:44:22 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF56A106564A for ; Wed, 15 Feb 2012 16:44:22 +0000 (UTC) (envelope-from kickbsd@yandex.ru) Received: from forward1.mail.yandex.net (forward1.mail.yandex.net [IPv6:2a02:6b8:0:602::1]) by mx1.freebsd.org (Postfix) with ESMTP id 545288FC0C for ; Wed, 15 Feb 2012 16:44:22 +0000 (UTC) Received: from web72.yandex.ru (web72.yandex.ru [77.88.46.34]) by forward1.mail.yandex.net (Yandex) with ESMTP id B20091240E7E for ; Wed, 15 Feb 2012 20:44:20 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1329324260; bh=Diy7PNpKCrOR0B80ZsAEAwY4g5YJ+y77J3gQl9lFpmQ=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=VaY+QR+GnHTtVZad3KVm34x5pAWVkZEA1AavZ3kaCvJKKyb1eCusFmubN3Qurqs62 GfDlyJu594PwEUEdUKU3FxMvuHz0bUsglchdIKwT0oizLwcBi9SfhLvw6FWDiPlBdG y9zajAySFXEYvbVID5KLSnRBRjV8WAzcJBMzg0aY= Received: from localhost (localhost.localdomain [127.0.0.1]) by web72.yandex.ru (Yandex) with ESMTP id 92122FE8144 for ; Wed, 15 Feb 2012 20:44:20 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1329324260; bh=Diy7PNpKCrOR0B80ZsAEAwY4g5YJ+y77J3gQl9lFpmQ=; h=From:To:Subject:MIME-Version:Message-Id:Date: Content-Transfer-Encoding:Content-Type; b=VaY+QR+GnHTtVZad3KVm34x5pAWVkZEA1AavZ3kaCvJKKyb1eCusFmubN3Qurqs62 GfDlyJu594PwEUEdUKU3FxMvuHz0bUsglchdIKwT0oizLwcBi9SfhLvw6FWDiPlBdG y9zajAySFXEYvbVID5KLSnRBRjV8WAzcJBMzg0aY= X-Yandex-Spam: 1 Received: from modemcable089.150-203-24.mc.videotron.ca (modemcable089.150-203-24.mc.videotron.ca [24.203.150.89]) by web72.yandex.ru with HTTP; Wed, 15 Feb 2012 20:44:20 +0400 From: Darren Baginski Envelope-From: kickbsd@yandex.ru To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-Id: <167651329324260@web72.yandex.ru> Date: Wed, 15 Feb 2012 20:44:20 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Subject: IGB freezes after about 2 weeks of uptime X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 16:44:23 -0000 : Hi! After about 2 weeks of uptime I'm getting messages like that: igb0: Watchdog timeout -- resetting igb0: Queue(0) tdh = 16, hw tdt = 20 igb0: TX(0) desc avail = 1020,Next TX to Clean = 16 igb0: link state changed to DOWN igb0: link state changed to UP Reboot helps, for the next ~2 weeks. Kernel is GENERIC. Card is 4 ports Intel FreeBSD srv-4-2.lab.local 9.0-RELEASE FreeBSD 9.0-RELEASE #1: Thu Jan 19 18:31:23 UTC 2012 ššššroot@srv-4-2.lab.local:/usr/obj/usr/src/sys/GENERIC šamd64 Is there a fix for that problem ? From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 17:57:21 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 309C81065670 for ; Wed, 15 Feb 2012 17:57:21 +0000 (UTC) (envelope-from kmacybsd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id ABCD58FC13 for ; Wed, 15 Feb 2012 17:57:20 +0000 (UTC) Received: by yhfs35 with SMTP id s35so947717yhf.13 for ; Wed, 15 Feb 2012 09:57:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=PQ1022MefXcbKDvnVn0UfV/pWDGRuhbbHZgHMHHVrCk=; b=rul0JYVjcMSExiwT5+6oxWRBbV76P3psxdMKzhFd5X5abgbJoWW8Srekncu+gNw7oQ w6uXo+ORAoRFKCoKD4CFq5SsIObIwWBnZaoYwbZZptz2uc7ov09QDNOAsSbe4WkHZO9y lMgpbWvCTW9vOD8i0n5azBLRMTqaAtolaWxIY= MIME-Version: 1.0 Received: by 10.50.207.99 with SMTP id lv3mr32276643igc.24.1329326898890; Wed, 15 Feb 2012 09:28:18 -0800 (PST) Sender: kmacybsd@gmail.com Received: by 10.50.170.4 with HTTP; Wed, 15 Feb 2012 09:28:18 -0800 (PST) In-Reply-To: <4F3B864D.1010000@fsn.hu> References: <4F3B864D.1010000@fsn.hu> Date: Wed, 15 Feb 2012 18:28:18 +0100 X-Google-Sender-Auth: KL62BvLcK-jrKseH9ZIP6gufJ3o Message-ID: From: "K. Macy" To: Attila Nagy Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Net Subject: Re: Very bad distribution of packets between multiple listening threads X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 17:57:21 -0000 On Wed, Feb 15, 2012 at 11:17 AM, Attila Nagy wrote: > Hi, > > I'm using FreeBSD 9-STABLE on a four core machine with bce to run > multi-threaded unbound with libev (using kqueue). > Here's the first message (not a long thread so far) about the problem: > http://unbound.net/pipermail/unbound-users/2012-February/002237.html > > To summarize: > whether I run unbound in multi-threaded or multi-process mode, I get very > bad DNS query distribution between threads/processes. > > There is sometimes a 10-fold difference in the queries served (QPS) between > threads (for example thread X gets 300, thread Y gets 3000). > > What could be done to make this distribution more balanced between threads? > And where does this happens exactly? > I don't have a fix for this problem, but I can comment that an ISP I know of switched away from using kqueue with lighttpd to poll because the load was not well distributed. Cheers From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 21:42:51 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C9441065676 for ; Wed, 15 Feb 2012 21:42:51 +0000 (UTC) (envelope-from ivanov@zaoepos.com.ua) Received: from mx1.mirohost.net (mx1.mirohost.net [IPv6:2a02:2278:70eb:298::64:125]) by mx1.freebsd.org (Postfix) with ESMTP id 4ABC98FC13 for ; Wed, 15 Feb 2012 21:42:50 +0000 (UTC) Received: from [190.239.180.173] (port=12063 helo=[192.168.0.9]) by mx1.mirohost.net with esmtpa (Exim 4.72) (envelope-from ) id 1RxmUu-0002Hx-PY for freebsd-net@freebsd.org; Wed, 15 Feb 2012 23:34:51 +0200 Date: Wed, 15 Feb 2012 23:42:36 +0000 From: =?utf-8?Q?=D0=90=D0=B2=D1=80=D0=BE=D1=80=D1=87=D0=B8=D0=BA_=D0=9C=D0=B8=D0=BB=D0=BE=D1=80=D0=B0=D0=B4=D0=BE=D0=B2=D0=B0?= Organization: hjqzxpxsc X-Priority: 3 (Normal) Message-ID: <9464891032.20120215234236@zaoepos.com.ua> To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: =?utf-8?b?0J/RgNC40LLQtdGCINC80L7QuSDRgdC70LDQstC90YvQuS4uLi4h?= =?utf-8?q?_?= X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 21:42:51 -0000 Здарова твой мейл поÑоветовала Ðнчик...))) а Ñ‚Ñ‹ Ñимпотичный !!! еÑли Ñвободен и хочешь зазнакомитьÑÑ, залазь ко мне на Ñтраницу z​dâ€câ€z​y­g​b‌l​r​k​.â€n‌mâ€.­râ€u/yjbzxmqedaid.html моё Ð¸Ð¼Ñ Ñ‚Ð°Ð¼ Ðврорчик Милорадова From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 22:13:18 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40BDC1065674 for ; Wed, 15 Feb 2012 22:13:18 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id CABAB8FC12 for ; Wed, 15 Feb 2012 22:13:17 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so1288665wib.13 for ; Wed, 15 Feb 2012 14:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=RMZaI6HfD94JMo9fZ/phiFxH0eSUc1skfRBSVTxBrfU=; b=nM7+d+GpGwoWvwVkjgCH8Sz8pTOQFZPIOyKFaXZYMeTzaestUEf1qWnG3FZBlcd+EW oKLKyAIrtIl/HhFWuUFW1HAU3wFY/bmkhajtFWok7OlRo2DrBo0PCVQu4Rpr0KKFPiVa 6ng1bzJgrm22PdKrmdyZrCiGLaQtull172+Zw= MIME-Version: 1.0 Received: by 10.216.137.210 with SMTP id y60mr3316129wei.14.1329343996749; Wed, 15 Feb 2012 14:13:16 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Wed, 15 Feb 2012 14:13:16 -0800 (PST) In-Reply-To: <2317299.no4denjdye@snifi> References: <1409561.bgvrFLXgOz@snifi> <2317299.no4denjdye@snifi> Date: Wed, 15 Feb 2012 14:13:16 -0800 X-Google-Sender-Auth: y3wXVzB46jdU7oDA6sNbR5qu8j0 Message-ID: From: Adrian Chadd To: Maciej Milewski Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 22:13:18 -0000 IIRC, a bad WEP key will show up as "associated" but no data will be exchanged. Compile up wlanstats from /usr/src/tools/tools/net80211/wlanstats/ and run it - post the output here. Adrian From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 22:14:21 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6B381065672 for ; Wed, 15 Feb 2012 22:14:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5F0C78FC15 for ; Wed, 15 Feb 2012 22:14:21 +0000 (UTC) Received: by werm13 with SMTP id m13so1485053wer.13 for ; Wed, 15 Feb 2012 14:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=fkH0MEec1NtAfe0sXrtvEoBNNbvCtsRYSio4skelbSo=; b=jYhcPqCfsCMjrWKJ6irTHwruBNDc/LQDtG4ngm14PeMV5Hq7Re08F5DrzFy653DTFV X8Lzu1bjShaBJ7VAL1aDGLuv1/a3HMr2oLSi/m62un7mhtDBUYLzkQs0XeH5tLr71ti/ kgTiWVNhm2H8TWcrDx2AxTV2xlvJKBhlTObR0= MIME-Version: 1.0 Received: by 10.180.78.6 with SMTP id x6mr10964246wiw.18.1329344060532; Wed, 15 Feb 2012 14:14:20 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Wed, 15 Feb 2012 14:14:20 -0800 (PST) In-Reply-To: <167651329324260@web72.yandex.ru> References: <167651329324260@web72.yandex.ru> Date: Wed, 15 Feb 2012 14:14:20 -0800 X-Google-Sender-Auth: t0xefCHsyxjbzvwnARyA8kf55fU Message-ID: From: Adrian Chadd To: Darren Baginski Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org Subject: Re: IGB freezes after about 2 weeks of uptime X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 22:14:21 -0000 are you running the driver from that release, or the -HEAD driver? adrian From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 22:27:11 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F0371065783 for ; Wed, 15 Feb 2012 22:27:11 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id A3FE68FC08 for ; Wed, 15 Feb 2012 22:27:10 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so1299471wib.13 for ; Wed, 15 Feb 2012 14:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UhNcWxL+LWNYxILPp1bf6VII1TDBuCkguzY56RISFUQ=; b=N7xF/PhuM3vBg7CxmoGdhHywxxOdHdVAHVqVO6vuea+Pzc1XSHg8RDUwLEL9HdBa2p JoKJE9ISbz68q1H2Uz1GeWym/fsoR3Pk38n9R7a/nd/LSzm22NBio8teWt8XWXtXpvpC Tgwp4ISP79ENKyusFd+Y1N8hyr3d0haAoSDgs= MIME-Version: 1.0 Received: by 10.180.77.228 with SMTP id v4mr93790wiw.2.1329344829545; Wed, 15 Feb 2012 14:27:09 -0800 (PST) Received: by 10.180.102.97 with HTTP; Wed, 15 Feb 2012 14:27:09 -0800 (PST) In-Reply-To: References: <167651329324260@web72.yandex.ru> Date: Wed, 15 Feb 2012 14:27:09 -0800 Message-ID: From: Jack Vogel To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-net@freebsd.org, Darren Baginski Subject: Re: IGB freezes after about 2 weeks of uptime X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 22:27:11 -0000 And assuming its from the release, please upgrade it to HEAD and try again. Jack On Wed, Feb 15, 2012 at 2:14 PM, Adrian Chadd wrote: > are you running the driver from that release, or the -HEAD driver? > > > adrian > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 23:51:01 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 155DA106566C; Wed, 15 Feb 2012 23:51:01 +0000 (UTC) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E06728FC13; Wed, 15 Feb 2012 23:51:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1FNp0IK072356; Wed, 15 Feb 2012 23:51:00 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1FNp0wj072348; Wed, 15 Feb 2012 15:51:00 -0800 (PST) (envelope-from julian) Date: Wed, 15 Feb 2012 15:51:00 -0800 (PST) Message-Id: <201202152351.q1FNp0wj072348@freefall.freebsd.org> To: julian@FreeBSD.org, freebsd-i386@FreeBSD.org, freebsd-net@FreeBSD.org From: julian@FreeBSD.org Cc: Subject: Re: kern/165190: [ipfw] loopback interface is not marking ipv6 packets X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 23:51:01 -0000 Synopsis: [ipfw] loopback interface is not marking ipv6 packets Responsible-Changed-From-To: freebsd-i386->freebsd-net Responsible-Changed-By: julian Responsible-Changed-When: Wed Feb 15 15:46:19 PST 2012 Responsible-Changed-Why: is a network problem not a 386 problem http://www.freebsd.org/cgi/query-pr.cgi?pr=165190 From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 07:21:41 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE6AD1065670 for ; Thu, 16 Feb 2012 07:21:41 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm15-vm0.bullet.mail.bf1.yahoo.com (nm15-vm0.bullet.mail.bf1.yahoo.com [98.139.212.254]) by mx1.freebsd.org (Postfix) with SMTP id 76CBA8FC1C for ; Thu, 16 Feb 2012 07:21:41 +0000 (UTC) Received: from [98.139.212.153] by nm15.bullet.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 Received: from [98.139.212.240] by tm10.bullet.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP; 16 Feb 2012 07:08:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 565519.535.bm@omp1049.mail.bf1.yahoo.com Received: (qmail 8886 invoked by uid 60001); 16 Feb 2012 07:08:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329376106; bh=Kz/DuasWi/yPxwZviIXoJWxBM+wylJUAbaXOfMJ7NHw=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=OR90u/4Cf9yLOJDRY3sUTVrzMMnagUF2MzBBdSBjIV5AGvd36SjSyrh/QqZjkDTNl3Sz9EwQ4hBas3d5qifYDY/GNqde6u1wrvLYTTbyfB7IszFGW9sGMKwVucNyi1A7AzGwjVoS8i3GxXQfLrxSQP45zeh/yTaeCRQ7W2CmP+M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=CFhLZjAGOT73QUtifVXfxuOdxiOLSk1A+p/ss94TtWeQ65hUO9ZDdsHETMAgNROn8TfrFG8v2/wdyzmYh0pqM+4hquJpoRDTA3dATPOquPN2AcCE63tuYTvKajR4jme6ZIHQ1YRIMgA7Z+6J1GvfKqgJhm/5tRY42v6NiGGaHvw=; X-YMail-OSG: XdYR11oVM1n2G.BbbOC0TNe4QnELaSdUpVP9zyuGionjWV1 VA60J8cQo.McI4nX8GRFjZQke9iUCsUfBL8tYNCXmunnFWNL9Qe7vfcNu4Ma iioqA8coVpyZmXvBHyLgygI6q7ZSQLTssNtrC3RXnmt8tThQvPhfsQX8LXhY DBTmcMD0IrdLWW363N.SiZf2wTwnhy9CnHMoicbE6ivhn0AQWJnJYy3dxbZb VucjuEugsrnnODrAJRUEPkVr8_B4SPbAxo0IFr9dk_7ZSNp3O6ZzgR3BgZ.q 5RSqMjZ.iIaMTdoaXEpws4HfSlcy8RiGcd5RLmkXTlMLZQXNITPYa66XHiU9 bwhPDXj2Qi_hDIdAN9uk.VK8PXJ2jTgoNWKGfbXGTpVk9SZCXF8MkjEhCpAG dd0XTBK7koh4weSI.G_RrjvFhBhXfw..W9YRgwRuE_.Nb_r2hDFrEZdKtFtS qJkd1uO5mlbpCJ4O4qUEILu5dg8N1kusiaUuWAcPAyQhQXTHyoVtF0BM1Ezu jZjtPj7B7Mh0NC7jf5T8N9vJ0D_VLh4im3VfpPXIoDhOp02ewUPzxSneE Received: from [89.165.120.140] by web162203.mail.bf1.yahoo.com via HTTP; Wed, 15 Feb 2012 23:08:26 PST X-Mailer: YahooMailWebService/0.8.116.338427 Message-ID: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> Date: Wed, 15 Feb 2012 23:08:26 -0800 (PST) From: "M. V." To: "freebsd-net@freebsd.org" MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 16 Feb 2012 12:21:54 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. V." List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 07:21:41 -0000 hi everybody,=0A=0Ai have a problem with setting multiple IPs in the same n= etwork in FreeBSD:=0A=0A- suppose I assign two new IP addresses in the same= network to eth0 with ifconfig:=0A#ifconfig eth0 add 192.168.10.1/24=0A#ifc= onfig eth0 add 192.168.10.2/24=0A=0A- everything works fine and the output = of "netstat -r" is like what it should be:=0A#netstat -r=0A....=0A192.168.1= 0.0=A0=A0 eth0=0A192.168.10.1=A0=A0=A0 lo0=0A192.168.10.2=A0=A0=A0 lo0=0A..= .=0A=0A- but now if I delete first IP address, connection to 192.168.10.0 n= etwork will be gone. and in output of "netstat -r" the route to 192.168.10.= 0 (via eth0) is gone:=0A#ifconfig eth0 delete 192.168.10.1=0A=0A#netstat -r= =0A....=0A=0A192.168.10.2=A0=A0=A0 lo0=0A.....=0A=0A- am i missing somethin= g here? shouldn't the route to the network remain in routing table (because= we still have 192.168.10.2 assigned to interface)?=0A=0AThanks.=0A From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 13:00:20 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7142B1065670 for ; Thu, 16 Feb 2012 13:00:20 +0000 (UTC) (envelope-from yuri.kurenkov@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB3B68FC13 for ; Thu, 16 Feb 2012 13:00:19 +0000 (UTC) Received: by bkcjg1 with SMTP id jg1so2500295bkc.13 for ; Thu, 16 Feb 2012 05:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=J6Q/92hWtMAS6DD0LNuqgzr4LoxeBC2n5EZSIXFDnvo=; b=fKiIBdYKCDV0yOKcyy9WyUbJWsbu82qxznnwezY2ZgSiTnLGDhZQY3nBXWaW85N1JP 1BHia3x/RNBe0vig4/DPH5j+4J9SJfrprMTLf5gVpbMqx916In8q5qaKg7pP9crQTwN2 PpEVlZz5/k3Tt75+ryd98mzfKKWr72GY3wDiE= Received: by 10.204.10.91 with SMTP id o27mr1100640bko.17.1329395905277; Thu, 16 Feb 2012 04:38:25 -0800 (PST) Received: from [10.61.1.131] ([84.51.195.189]) by mx.google.com with ESMTPS id i2sm12650222bkd.10.2012.02.16.04.38.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Feb 2012 04:38:24 -0800 (PST) Message-ID: <4F3CF8BD.2010504@gmail.com> Date: Thu, 16 Feb 2012 16:38:21 +0400 From: Yuri Kurenkov User-Agent: Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org, arno@heho.snv.jussieu.fr References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 13:00:20 -0000 On 14.02.2012 17:51, Arno J. Klaassen wrote: > Hello, > > could someone provide me wit a hint how to get wpa_supplicant > to work in the following environment : > > - standard : IEEE 802.11 (at least they pretend in the doc) > - mode : "infrastructure" (?) > - WEP : 128bit > - Authent : open > > - and then "username/password" upon browser-launch (at least under > Windows) > > When I put the following to wpa_suplicant.conf I get "State : > ASSOCIATED -> COMPLETED" : > > ssid="their-ID" (unpublished) > scan_ssid=1 > key_mgmt=NONE > wep_key0="part1" > wep_key1="part2" > wep_key2="part3" > > However, 'dhclient wlan0' says "No DHCPOFFERS received" .... > > Any help appreciated. > > Thanx in advance, regards, > > Arno > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > Your access point bkock dhcp packes from radio to wire and back. You need setup dhcp server at AP. -- Yuri V. Kurenkov [YVK9-RIPN,YVK11-RIPE] Home: +7-8634-361711 Mobile: +7-928-1725845 ICQ UIN: 21666578 Skype: yuri.kurenkov From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 13:16:13 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E12B1065670 for ; Thu, 16 Feb 2012 13:16:13 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id CEC6D8FC13 for ; Thu, 16 Feb 2012 13:16:12 +0000 (UTC) Received: by bkcjg1 with SMTP id jg1so2523549bkc.13 for ; Thu, 16 Feb 2012 05:16:11 -0800 (PST) Received: by 10.205.129.141 with SMTP id hi13mr1150080bkc.7.1329398171449; Thu, 16 Feb 2012 05:16:11 -0800 (PST) Received: from dfleuriot.local (ip-100.net-82-216-199.nantes.rev.numericable.fr. [82.216.199.100]) by mx.google.com with ESMTPS id x22sm12849080bkw.11.2012.02.16.05.16.09 (version=SSLv3 cipher=OTHER); Thu, 16 Feb 2012 05:16:10 -0800 (PST) Message-ID: <4F3D0197.60100@my.gd> Date: Thu, 16 Feb 2012 14:16:07 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> In-Reply-To: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlSiPU0mU2Yd2rIPU4SGar+I88QdThz7OwqBXcpldbbMlQAuNq9K8QDBah9XKhtpa7VM/vn Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 13:16:13 -0000 On 2/16/12 8:08 AM, M. V. wrote: > hi everybody, > > i have a problem with setting multiple IPs in the same network in FreeBSD: > > - suppose I assign two new IP addresses in the same network to eth0 with ifconfig: > #ifconfig eth0 add 192.168.10.1/24 > #ifconfig eth0 add 192.168.10.2/24 > > - everything works fine and the output of "netstat -r" is like what it should be: > #netstat -r > .... > 192.168.10.0 eth0 > 192.168.10.1 lo0 > 192.168.10.2 lo0 > ... > > - but now if I delete first IP address, connection to 192.168.10.0 network will be gone. and in output of "netstat -r" the route to 192.168.10.0 (via eth0) is gone: > #ifconfig eth0 delete 192.168.10.1 > > #netstat -r > .... > > 192.168.10.2 lo0 > ..... > > - am i missing something here? shouldn't the route to the network remain in routing table (because we still have 192.168.10.2 assigned to interface)? > > Thanks. > You shouldn't assign your secondary IP with a /24 mask, use /32. You'll run into problems otherwise. As a rule of thumb, your aliases = /32 From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 14:39:53 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75B28106566C for ; Thu, 16 Feb 2012 14:39:53 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-245-Pennsylvania.hfc.comcastbusiness.net [75.149.8.245]) by mx1.freebsd.org (Postfix) with ESMTP id 40DF28FC12 for ; Thu, 16 Feb 2012 14:39:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id B9E9C446005; Thu, 16 Feb 2012 09:42:17 -0500 (EST) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SWvlh1LV8Wg2; Thu, 16 Feb 2012 09:42:10 -0500 (EST) Received: from riven.arriad.com (fw.arriad.com [10.0.0.16]) by zimbra.averesystems.com (Postfix) with ESMTPSA id 4BA8E446002; Thu, 16 Feb 2012 09:42:10 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Andrew Boyer In-Reply-To: <4F3D0197.60100@my.gd> Date: Thu, 16 Feb 2012 09:39:46 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <37B92AD6-F745-4D26-A924-271476558D93@averesystems.com> References: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> <4F3D0197.60100@my.gd> To: "M. V." X-Mailer: Apple Mail (2.1084) Cc: freebsd-net@freebsd.org, Damien Fleuriot Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 14:39:53 -0000 On Feb 16, 2012, at 8:16 AM, Damien Fleuriot wrote: > On 2/16/12 8:08 AM, M. V. wrote: >> hi everybody, >>=20 >> i have a problem with setting multiple IPs in the same network in = FreeBSD: >>=20 >> - suppose I assign two new IP addresses in the same network to eth0 = with ifconfig: >> #ifconfig eth0 add 192.168.10.1/24 >> #ifconfig eth0 add 192.168.10.2/24 >>=20 >> - everything works fine and the output of "netstat -r" is like what = it should be: >> #netstat -r >> .... >> 192.168.10.0 eth0 >> 192.168.10.1 lo0 >> 192.168.10.2 lo0 >> ... >>=20 >> - but now if I delete first IP address, connection to 192.168.10.0 = network will be gone. and in output of "netstat -r" the route to = 192.168.10.0 (via eth0) is gone: >> #ifconfig eth0 delete 192.168.10.1 >>=20 >> #netstat -r >> .... >>=20 >> 192.168.10.2 lo0 >> ..... >>=20 >> - am i missing something here? shouldn't the route to the network = remain in routing table (because we still have 192.168.10.2 assigned to = interface)? >>=20 >> Thanks. >>=20 >=20 > You shouldn't assign your secondary IP with a /24 mask, use /32. >=20 > You'll run into problems otherwise. >=20 > As a rule of thumb, your aliases =3D /32 >=20 M.V. - What you are doing should work fine. There were a handful of routing = table bugs fixed in the last few months that corrected this behavior. = The last two were just merged to stable/8 yesterday. What release are = you running? =20 -Andrew -------------------------------------------------- Andrew Boyer aboyer@averesystems.com From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 14:56:50 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7139A1065670 for ; Thu, 16 Feb 2012 14:56:50 +0000 (UTC) (envelope-from Bredehorn@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 0DC288FC0C for ; Thu, 16 Feb 2012 14:56:49 +0000 (UTC) Received: (qmail 4217 invoked by uid 0); 16 Feb 2012 14:30:08 -0000 Received: from 93.159.253.120 by rms-de007.v300.gmx.net with HTTP Content-Type: text/plain; charset="utf-8" Date: Thu, 16 Feb 2012 15:30:07 +0100 From: "Rainer Bredehorn" Message-ID: <20120216143007.19060@gmx.net> MIME-Version: 1.0 To: "M. V." ,freebsd-net@freebsd.org X-Authenticated: #168415 X-Flags: 0001 X-Mailer: GMX.net Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: uHdPbxZmeSEqVr7yaXQh7R1+IGRvbwBd Cc: Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 14:56:50 -0000 > i have a problem with setting multiple IPs in the same network in FreeBSD: > > - suppose I assign two new IP addresses in the same network to eth0 with ifconfig: > #ifconfig eth0 add 192.168.10.1/24 > #ifconfig eth0 add 192.168.10.2/24 > Second address should be an alias address. ;-) From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 15:12:21 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C2EC1065698 for ; Thu, 16 Feb 2012 15:12:21 +0000 (UTC) (envelope-from aboyer@averesystems.com) Received: from zimbra.averesystems.com (75-149-8-245-Pennsylvania.hfc.comcastbusiness.net [75.149.8.245]) by mx1.freebsd.org (Postfix) with ESMTP id DD6BC8FC19 for ; Thu, 16 Feb 2012 15:12:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.averesystems.com (Postfix) with ESMTP id B1C82446007; Thu, 16 Feb 2012 10:14:45 -0500 (EST) X-Virus-Scanned: amavisd-new at averesystems.com Received: from zimbra.averesystems.com ([127.0.0.1]) by localhost (zimbra.averesystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hDwEQzOiEKuy; Thu, 16 Feb 2012 10:14:39 -0500 (EST) Received: from riven.arriad.com (fw.arriad.com [10.0.0.16]) by zimbra.averesystems.com (Postfix) with ESMTPSA id 0EF72446002; Thu, 16 Feb 2012 10:14:39 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Andrew Boyer In-Reply-To: <20120216143007.19060@gmx.net> Date: Thu, 16 Feb 2012 10:12:14 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <0E8A08EB-1F62-420C-9B38-826B99038F6F@averesystems.com> References: <20120216143007.19060@gmx.net> To: Rainer Bredehorn X-Mailer: Apple Mail (2.1084) Cc: freebsd-net@freebsd.org, "M. V." Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 15:12:21 -0000 On Feb 16, 2012, at 9:30 AM, Rainer Bredehorn wrote: >> i have a problem with setting multiple IPs in the same network in = FreeBSD: >>=20 >> - suppose I assign two new IP addresses in the same network to eth0 = with ifconfig: >> #ifconfig eth0 add 192.168.10.1/24 >> #ifconfig eth0 add 192.168.10.2/24 >>=20 > Second address should be an alias address. >=20 > ;-) >=20 'ifconfig add' and 'ifconfig alias' are the same thing. -Andrew -------------------------------------------------- Andrew Boyer aboyer@averesystems.com From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 18:00:12 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DDB8106566C; Thu, 16 Feb 2012 18:00:12 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id A9F608FC1B; Thu, 16 Feb 2012 18:00:11 +0000 (UTC) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id q1GHxgCH031960 ; Thu, 16 Feb 2012 18:59:56 +0100 (CET) X-Ids: 168 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.14.3/8.14.3) with ESMTP id q1GHwmqL007840; Thu, 16 Feb 2012 18:58:48 +0100 (CET) (envelope-from arno@heho.snv.jussieu.fr) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.14.3/8.14.3/Submit) id q1GHwmDY007837; Thu, 16 Feb 2012 18:58:48 +0100 (CET) (envelope-from arno) To: Maciej Milewski From: "Arno J. Klaassen" References: <1409561.bgvrFLXgOz@snifi> <2317299.no4denjdye@snifi> Date: Thu, 16 Feb 2012 18:58:47 +0100 In-Reply-To: <2317299.no4denjdye@snifi> (Maciej Milewski's message of "Wed\, 15 Feb 2012 17\:25\:44 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at jchkmail.jussieu.fr with ID 4F3D440E.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4F3D440E.001/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ Cc: freebsd-net@freebsd.org, Adrian Chadd Subject: Re: Help : configuring wpa_suplpicant.conf for WEP + login/passwd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 18:00:12 -0000 [ .. stuff deleted (WEP-128 problem) ] > one more thing came to my mind: > > you don't need to use wpa_supplicant to get WEP support. AFAIK WEP128 > is different name for 104-bits key and that might be supported without > need of wpa_supplicant. man ifconfig might shed some light. I tried today both 'ifconfig' and 'wpa_supplicant'; I comme to 'associated/connected' , no IP that said, the key they provide me really is 26 characters, I have to split it in twice 13 to get it accepted both by 'ifconfig' and 'wpa_supplicant' which is very probably wrong .... Couldn't find (quickly) anything on iff and howto for 26 caracter keys > Although wpa_supplicant message states that it connected successfully > to the network. Can you try to set the address by hand(taking some > earlier info from windows machine)? nope, 'ping' (probably filtered) to defaultroute and DNS-lookup both fail More later, thanx for your help. Kind regards, Arno From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 18:19:06 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C010106566C for ; Thu, 16 Feb 2012 18:19:06 +0000 (UTC) (envelope-from david.somayajulu@qlogic.com) Received: from TX2EHSOBE003.bigfish.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) by mx1.freebsd.org (Postfix) with ESMTP id 0A9048FC17 for ; Thu, 16 Feb 2012 18:19:05 +0000 (UTC) Received: from mail11-tx2-R.bigfish.com (10.9.14.243) by TX2EHSOBE003.bigfish.com (10.9.40.23) with Microsoft SMTP Server id 14.1.225.23; Thu, 16 Feb 2012 18:04:02 +0000 Received: from mail11-tx2 (localhost [127.0.0.1]) by mail11-tx2-R.bigfish.com (Postfix) with ESMTP id E401C801B5 for ; Thu, 16 Feb 2012 18:04:01 +0000 (UTC) X-SpamScore: -7 X-BigFish: VPS-7(zzc85fh14ffOzz1202hzz8275bh8275dhz2fh2a8h668h839h) X-Forefront-Antispam-Report: CIP:198.70.193.61; KIP:(null); UIP:(null); IPV:NLI; H:avexcashub1.qlogic.com; RD:avexcashub1.qlogic.com; EFVD:NLI Received-SPF: pass (mail11-tx2: domain of qlogic.com designates 198.70.193.61 as permitted sender) client-ip=198.70.193.61; envelope-from=david.somayajulu@qlogic.com; helo=avexcashub1.qlogic.com ; 1.qlogic.com ; Received: from mail11-tx2 (localhost.localdomain [127.0.0.1]) by mail11-tx2 (MessageSwitch) id 1329415438526882_31299; Thu, 16 Feb 2012 18:03:58 +0000 (UTC) Received: from TX2EHSMHS037.bigfish.com (unknown [10.9.14.247]) by mail11-tx2.bigfish.com (Postfix) with ESMTP id 7357F400053 for ; Thu, 16 Feb 2012 18:03:58 +0000 (UTC) Received: from avexcashub1.qlogic.com (198.70.193.61) by TX2EHSMHS037.bigfish.com (10.9.99.137) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 16 Feb 2012 18:03:57 +0000 Received: from avexmb1.qlogic.org ([fe80::9545:3a4f:c131:467d]) by avexcashub1.qlogic.org ([::1]) with mapi; Thu, 16 Feb 2012 10:03:56 -0800 From: David Somayajulu To: "freebsd-net@freebsd.org" Date: Thu, 16 Feb 2012 10:03:54 -0800 Thread-Topic: Question on TSO/LSO Transmit Frames Thread-Index: Aczs0/lQTU+h9exiQKid5+rFLlzfiA== Message-ID: <75E1A2A7D185F841A975979B0906BBA67C79BD85EB@AVEXMB1.qlogic.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-OriginatorOrg: qlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Question on TSO/LSO Transmit Frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 18:19:06 -0000 Hi All, Is it safe to assume that when a driver receives an Ethernet frame to trans= mit with CSUM_TSO bit set in m_head->m_pkthdr.csum_flags ; where m_head is the first (struct mbuf) in t= he mbuf chain that the [Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der] are all present in one physically contiguous segment ? In other words is Size of ([Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Hea= der]) <=3D m_head->m_len When ((m_head->m_pkthdr.csum_flags & CSUM_TSO) !=3D 0) Thanks David S. ________________________________ This message and any attached documents contain information from QLogic Cor= poration or its wholly-owned subsidiaries that may be confidential. If you = are not the intended recipient, you may not read, copy, distribute, or use = this information. If you have received this transmission in error, please n= otify the sender immediately by reply e-mail and then delete this message. From owner-freebsd-net@FreeBSD.ORG Thu Feb 16 23:47:37 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B169E106564A for ; Thu, 16 Feb 2012 23:47:37 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 3C8748FC08 for ; Thu, 16 Feb 2012 23:47:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.4/8.14.4) with ESMTP id q1GNbSJY031571 for ; Fri, 17 Feb 2012 03:37:28 +0400 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 17 Feb 2012 03:37:28 +0400 (MSK) From: Dmitry Morozovsky To: freebsd-net@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (woozle.rinet.ru [0.0.0.0]); Fri, 17 Feb 2012 03:37:28 +0400 (MSK) Cc: Subject: rsh -n to cisco router: incomplete output X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2012 23:47:37 -0000 Dear colleagues, some time ago users of our looking glass start to complain about non-working ping and traceroute commands; looking at the source, I've found that rsh -n router command partially stops working: it returns some of contents (results up to first ping or up to first answer from the first hop in the case of traceroute) I even looked into tcpdumps and consulted with colleagues, but found only TCP RESET semmingly from FreeBSD side which prevents all data to be read. I also tried to look at rsh.c, which was not changed since 2005, just to realize I can't find relevant parts. This is very stable effect, from 4 to 8 branches. I'm not sure where it starts to be broken, alas. Maybe it's something related to IOS versions; however, I doubt it, as all 3 our borders, including rather old one 7206, produce the same output. Any hints? Thank you in advance; please keep me in CC list as I'm not subscribed to -net. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 04:26:26 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD59F1065674; Fri, 17 Feb 2012 04:26:26 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B4ED08FC13; Fri, 17 Feb 2012 04:26:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1H4QQZd094675; Fri, 17 Feb 2012 04:26:26 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1H4QQBt094671; Fri, 17 Feb 2012 04:26:26 GMT (envelope-from linimon) Date: Fri, 17 Feb 2012 04:26:26 GMT Message-Id: <201202170426.q1H4QQBt094671@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/164901: [regression] [patch] [lagg] igb/lagg poor traffic distribution X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 04:26:27 -0000 Synopsis: [regression] [patch] [lagg] igb/lagg poor traffic distribution Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Fri Feb 17 04:26:12 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=164901 From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 04:30:09 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96F27106566B for ; Fri, 17 Feb 2012 04:30:09 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 46E3A8FC19 for ; Fri, 17 Feb 2012 04:30:09 +0000 (UTC) Received: from [172.23.7.53] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id q1H4GPqB099172 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 16 Feb 2012 20:16:32 -0800 (PST) (envelope-from marcel@xcllnt.net) From: Marcel Moolenaar Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 16 Feb 2012 20:16:22 -0800 Message-Id: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> To: net@FreeBSD.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) Cc: Subject: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 04:30:09 -0000 All, Juniper is in the final phases of creating a clean separation between FreeBSD and Junos, so as to make upgrades of FreeBSD easier. This also allows Juniper to track -current and be more active FreeBSD contributors. To that end, we have a short-term and hopefully short-lived problem to solve, which is the ability to use FreeBSD's network drivers against the Junos network stack. As some may know, the Junos network stack has split up struct ifnet into a physical and logical component, called ifdev and iflogical. We've tried a few approaches to bridge the gap between ifnet on the one hand and ifdev and iflogical on the other and found that abstracting ifnet and using accessor functions is the best way to allow us to use FreeBSD drivers with the Junos network stack, while retaining the ability to use them with the FreeBSD stack. FreeBSD is also looking at breaking up ifnet and with that in mind, I was wondering if there would be any resistance to changing network drivers to use accessor functions or macros instead of direct pointer dereferences? For example, do something like: Index: if_fxp.c =================================================================== --- if_fxp.c (revision 231178) +++ if_fxp.c (working copy) @@ -823,13 +823,14 @@ } if_initname(ifp, device_get_name(dev), device_get_unit(dev)); - ifp->if_init = fxp_init; - ifp->if_softc = sc; - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; - ifp->if_ioctl = fxp_ioctl; - ifp->if_start = fxp_start; + if_set_init(ifp, fxp_init); + if_set_softc(ifp, sc); + if_set_flags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST, 0); + if_set_ioctl(ifp, fxp_ioctl); + if_set_start(ifp, fxp_start); - ifp->if_capabilities = ifp->if_capenable = 0; + if_set_capabilities(ifp, 0); + if_set_capenable(ifp, 0); /* Enable checksum offload/TSO for 82550 or better chips */ if (sc->flags & FXP_FLAG_EXT_RFA) { Such a scheme, while initially touching a lot of driver, would make it easier to break up ifnet *and* also make it easier to hide ABI/API changes from driver vendors (esp. when the accessor functions are non-inlined functions and not macros or inlines). This is particularly useful for Juniper, where we have worked towards network stacks as (pre-)loadable modules so as to help with migration and validation. Thoughts, feedback and suggestion are welcome, -- Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 04:39:17 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CD9E106566B; Fri, 17 Feb 2012 04:39:17 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 24AD68FC1B; Fri, 17 Feb 2012 04:39:17 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1H4dHFe005688; Fri, 17 Feb 2012 04:39:17 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1H4dHcR005684; Fri, 17 Feb 2012 04:39:17 GMT (envelope-from linimon) Date: Fri, 17 Feb 2012 04:39:17 GMT Message-Id: <201202170439.q1H4dHcR005684@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/165032: [mii] [patch] brgphy(4) is not used for BCM57780 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 04:39:17 -0000 Old Synopsis: brgphy(4) is not used for BCM57780 New Synopsis: [mii] [patch] brgphy(4) is not used for BCM57780 Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Fri Feb 17 04:38:52 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=165032 From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 05:36:58 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0DD0106566B for ; Fri, 17 Feb 2012 05:36:58 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 960DE8FC0A for ; Fri, 17 Feb 2012 05:36:58 +0000 (UTC) Received: by daec6 with SMTP id c6so3248535dae.13 for ; Thu, 16 Feb 2012 21:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=vtyvjHWCwZ2fZJMNLd6p82pb+LQ6Gf+3Xat3rZabqIo=; b=lCZVB45edTGmhJ9VJfc9rqkt9hktge8DEKiqT/+n3KFOZnyjtd3pxb83I/DPjXVYoc 6IOmIRlba1QGr9SO+oQHnLEPhs3w8wxeHr8WYFtcZR+0rPH32fc4BhUY3+FuE7yEyEkq 1hbvp02KnYKwq2qrnRF/UVxZ5BgvTTt9idBPA= Received: by 10.68.203.130 with SMTP id kq2mr15138939pbc.136.1329457018190; Thu, 16 Feb 2012 21:36:58 -0800 (PST) Received: from pyunyh@gmail.com ([114.111.62.249]) by mx.google.com with ESMTPS id p9sm15816387pbb.9.2012.02.16.21.36.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Feb 2012 21:36:56 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 17 Feb 2012 14:36:52 -0800 From: YongHyeon PYUN Date: Fri, 17 Feb 2012 14:36:52 -0800 To: David Somayajulu Message-ID: <20120217223652.GA8566@michelle.cdnetworks.com> References: <75E1A2A7D185F841A975979B0906BBA67C79BD85EB@AVEXMB1.qlogic.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <75E1A2A7D185F841A975979B0906BBA67C79BD85EB@AVEXMB1.qlogic.org> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-net@freebsd.org" Subject: Re: Question on TSO/LSO Transmit Frames X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 05:36:58 -0000 On Thu, Feb 16, 2012 at 10:03:54AM -0800, David Somayajulu wrote: > Hi All, > Is it safe to assume that when a driver receives an Ethernet frame to transmit with CSUM_TSO bit set in > > m_head->m_pkthdr.csum_flags ; where m_head is the first (struct mbuf) in the mbuf chain > > that the [Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Header] are all present in one physically contiguous segment ? > No it is not. This is the main reason why TSO capable drivers parse mbuf chain in TX path. > In other words is > > Size of ([Ethernet Header] + [VLAN Tag if present] + [IP Header] + [TCP Header]) <= m_head->m_len > > When ((m_head->m_pkthdr.csum_flags & CSUM_TSO) != 0) > > Thanks > David S. From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 06:53:50 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E729F106564A; Fri, 17 Feb 2012 06:53:50 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BE4388FC13; Fri, 17 Feb 2012 06:53:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1H6rojo038118; Fri, 17 Feb 2012 06:53:50 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1H6rogk038114; Fri, 17 Feb 2012 06:53:50 GMT (envelope-from linimon) Date: Fri, 17 Feb 2012 06:53:50 GMT Message-Id: <201202170653.q1H6rogk038114@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/165174: [patch] [tap] allow tap(4) to keep its address on close X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 06:53:51 -0000 Synopsis: [patch] [tap] allow tap(4) to keep its address on close Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Fri Feb 17 06:53:28 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=165174 From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 07:13:07 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A15A106566B for ; Fri, 17 Feb 2012 07:13:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C5DAF8FC12 for ; Fri, 17 Feb 2012 07:13:06 +0000 (UTC) Received: by werm13 with SMTP id m13so2617264wer.13 for ; Thu, 16 Feb 2012 23:13:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OqwjNbAR9ONZDd8HK83ekOGogyHUvxWLd9XnjTqi2Rs=; b=ufH9Fq+rI7TVlFZEz7ud0eVD42E5rQYuxX2tIAmzLa/sMvqqaN+rsOW1AHo8FAzlxG aj2VSCg5ZE8dhjKXaTNFTc8L0O9292OFKlWaC6AzWKjqX5p1JFV1GqqC06eT2j2bXeAO Wc8+KjnmEqyy11pegN4jO4hqXZjTCX4dJkMbY= MIME-Version: 1.0 Received: by 10.180.95.1 with SMTP id dg1mr1412662wib.21.1329460978109; Thu, 16 Feb 2012 22:42:58 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Thu, 16 Feb 2012 22:42:58 -0800 (PST) In-Reply-To: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> Date: Thu, 16 Feb 2012 22:42:58 -0800 X-Google-Sender-Auth: kaxHMakUyYQ8wqUmkBLd9t8fYnY Message-ID: From: Adrian Chadd To: Marcel Moolenaar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: net@freebsd.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 07:13:07 -0000 Hi, I honestly quite like this idea. Adrian On 16 February 2012 20:16, Marcel Moolenaar wrote: > All, > > Juniper is in the final phases of creating a clean separation > between FreeBSD and Junos, so as to make upgrades of FreeBSD > easier. This also allows Juniper to track -current and be more > active FreeBSD contributors. > > To that end, we have a short-term and hopefully short-lived > problem to solve, which is the ability to use FreeBSD's network > drivers against the Junos network stack. As some may know, the > Junos network stack has split up struct ifnet into a physical > and logical component, called ifdev and iflogical. > > We've tried a few approaches to bridge the gap between ifnet > on the one hand and ifdev and iflogical on the other and found > that abstracting ifnet and using accessor functions is the > best way to allow us to use FreeBSD drivers with the Junos > network stack, while retaining the ability to use them with > the FreeBSD stack. > > FreeBSD is also looking at breaking up ifnet and with that in > mind, I was wondering if there would be any resistance to > changing network drivers to use accessor functions or macros > instead of direct pointer dereferences? > > For example, do something like: > > Index: if_fxp.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- if_fxp.c =A0 =A0(revision 231178) > +++ if_fxp.c =A0 =A0(working copy) > @@ -823,13 +823,14 @@ > =A0 =A0 =A0 =A0} > > =A0 =A0 =A0 =A0if_initname(ifp, device_get_name(dev), device_get_unit(dev= )); > - =A0 =A0 =A0 ifp->if_init =3D fxp_init; > - =A0 =A0 =A0 ifp->if_softc =3D sc; > - =A0 =A0 =A0 ifp->if_flags =3D IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICA= ST; > - =A0 =A0 =A0 ifp->if_ioctl =3D fxp_ioctl; > - =A0 =A0 =A0 ifp->if_start =3D fxp_start; > + =A0 =A0 =A0 if_set_init(ifp, fxp_init); > + =A0 =A0 =A0 if_set_softc(ifp, sc); > + =A0 =A0 =A0 if_set_flags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICA= ST, 0); > + =A0 =A0 =A0 if_set_ioctl(ifp, fxp_ioctl); > + =A0 =A0 =A0 if_set_start(ifp, fxp_start); > > - =A0 =A0 =A0 ifp->if_capabilities =3D ifp->if_capenable =3D 0; > + =A0 =A0 =A0 if_set_capabilities(ifp, 0); > + =A0 =A0 =A0 if_set_capenable(ifp, 0); > > =A0 =A0 =A0 =A0/* Enable checksum offload/TSO for 82550 or better chips *= / > =A0 =A0 =A0 =A0if (sc->flags & FXP_FLAG_EXT_RFA) { > > Such a scheme, while initially touching a lot of driver, > would make it easier to break up ifnet *and* also make it > easier to hide ABI/API changes from driver vendors (esp. > when the accessor functions are non-inlined functions and > not macros or inlines). This is particularly useful for > Juniper, where we have worked towards network stacks as > (pre-)loadable modules so as to help with migration and > validation. > > Thoughts, feedback and suggestion are welcome, > > -- > Marcel Moolenaar > marcel@xcllnt.net > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 08:05:47 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5E061065680 for ; Fri, 17 Feb 2012 08:05:47 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 3F9798FC1B for ; Fri, 17 Feb 2012 08:05:46 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 0C0A373029; Fri, 17 Feb 2012 09:23:42 +0100 (CET) Date: Fri, 17 Feb 2012 09:23:42 +0100 From: Luigi Rizzo To: Marcel Moolenaar Message-ID: <20120217082342.GA15346@onelab2.iet.unipi.it> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> User-Agent: Mutt/1.4.2.3i Cc: net@freebsd.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 08:05:47 -0000 On Thu, Feb 16, 2012 at 08:16:22PM -0800, Marcel Moolenaar wrote: > All, > > Juniper is in the final phases of creating a clean separation > between FreeBSD and Junos, so as to make upgrades of FreeBSD > easier. This also allows Juniper to track -current and be more > active FreeBSD contributors. > > To that end, we have a short-term and hopefully short-lived > problem to solve, which is the ability to use FreeBSD's network > drivers against the Junos network stack. As some may know, the > Junos network stack has split up struct ifnet into a physical > and logical component, called ifdev and iflogical. > > We've tried a few approaches to bridge the gap between ifnet > on the one hand and ifdev and iflogical on the other and found > that abstracting ifnet and using accessor functions is the > best way to allow us to use FreeBSD drivers with the Junos > network stack, while retaining the ability to use them with > the FreeBSD stack. > > FreeBSD is also looking at breaking up ifnet and with that in > mind, I was wondering if there would be any resistance to > changing network drivers to use accessor functions or macros > instead of direct pointer dereferences? > > For example, do something like: > > Index: if_fxp.c > =================================================================== > --- if_fxp.c (revision 231178) > +++ if_fxp.c (working copy) > @@ -823,13 +823,14 @@ > } > > if_initname(ifp, device_get_name(dev), device_get_unit(dev)); > - ifp->if_init = fxp_init; > - ifp->if_softc = sc; > - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; > - ifp->if_ioctl = fxp_ioctl; > - ifp->if_start = fxp_start; > + if_set_init(ifp, fxp_init); > + if_set_softc(ifp, sc); > + if_set_flags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST, 0); > + if_set_ioctl(ifp, fxp_ioctl); > + if_set_start(ifp, fxp_start); > > - ifp->if_capabilities = ifp->if_capenable = 0; > + if_set_capabilities(ifp, 0); > + if_set_capenable(ifp, 0); > > /* Enable checksum offload/TSO for 82550 or better chips */ > if (sc->flags & FXP_FLAG_EXT_RFA) { > > Such a scheme, while initially touching a lot of driver, > would make it easier to break up ifnet *and* also make it > easier to hide ABI/API changes from driver vendors (esp. > when the accessor functions are non-inlined functions and > not macros or inlines). This is particularly useful for > Juniper, where we have worked towards network stacks as > (pre-)loadable modules so as to help with migration and > validation. > > Thoughts, feedback and suggestion are welcome, I do like the idea, but the amount of changes will be massive (see below). The thing that worries me the most is that it will introduce huge changes between different releases, unless we backport the accessors (while keeping the underlying struct ifnet frozen so we preserve the kernel ABI). To count the number of lines affected, in shell: $ for i in if_addrhead if_index if_multiaddrs if_input if_output \ if_snd if_addr_lock if_init if_softc if_flags if_ioctl if_start \ if_capenable if_addr if_refcount if_fib if_drv_flags \ if_data if_index_reserved if_l2com if_link if_xname if_dname do printf "%-20s" $i; grep -r $i ~/FreeBSD/head/sys | wc -l done And you should get something like this if_addrhead 111 if_index 231 if_multiaddrs 144 if_input 184 if_output 112 if_snd 976 if_addr_lock 12 if_init 356 if_softc 1462 if_flags 1785 if_ioctl 259 if_start 194 if_capenable 1103 if_addr 324 if_refcount 6 if_fib 27 if_drv_flags 1987 if_data 202 if_index_reserved 2 if_l2com 346 if_link 187 if_xname 431 if_dname 20 cheers luigi From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 08:23:19 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 262241065674 for ; Fri, 17 Feb 2012 08:23:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id AD9818FC08 for ; Fri, 17 Feb 2012 08:23:17 +0000 (UTC) Received: by wgbdq11 with SMTP id dq11so2478435wgb.31 for ; Fri, 17 Feb 2012 00:23:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=RZS5TCPoUcQPIryTsH0girzRyc+CP5fSHAjUiXgqw88=; b=nw3SbuJr7Apncyc6YE4I2Hie4i7XZJI/uTH+37S21Cix0yZUc7eSbB5EJ8JaW+HH+J SjfMTHB74Z5XT03nFq6njzIgEpu83Bw0xREfhf8UdQWLmm5zIEeVBFqKigJzwKkteP4U 8RFyHmOx55LQxf/DMkn1j3gQYwP+wBWU7Rcyk= MIME-Version: 1.0 Received: by 10.180.93.4 with SMTP id cq4mr1893581wib.21.1329466996776; Fri, 17 Feb 2012 00:23:16 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Fri, 17 Feb 2012 00:23:16 -0800 (PST) In-Reply-To: <20120217082342.GA15346@onelab2.iet.unipi.it> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217082342.GA15346@onelab2.iet.unipi.it> Date: Fri, 17 Feb 2012 00:23:16 -0800 X-Google-Sender-Auth: yD7B1sQNE_n-7dsLAvC40HIMlF8 Message-ID: From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: net@freebsd.org, Marcel Moolenaar Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 08:23:19 -0000 On 17 February 2012 00:23, Luigi Rizzo wrote: > I do like the idea, but the amount of changes will be massive > (see below). The thing that worries me the most is that it > will introduce huge changes between different releases, unless > we backport the accessors (while keeping the underlying struct ifnet > frozen so we preserve the kernel ABI). I think it's worth doing for the select drivers people care about. That way things can be slowly converted over time, with any new network drivers needing to use the new accessors. Adrian From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 08:53:13 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF4171065686 for ; Fri, 17 Feb 2012 08:53:13 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 745108FC12 for ; Fri, 17 Feb 2012 08:53:13 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so2165311wib.13 for ; Fri, 17 Feb 2012 00:53:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=p08pm5RPwyZ0ju0hldrANdeS4622KtN94m3KntJVlKQ=; b=v9NGhHfNdS1+/FKMfMnfSOVetV8urVaK2vbZXI5fo2EsCoLsFWj4mO/BU8k+GY5+BA BRSdOgDpgViIX5nnJSMx2udL5W7+jY159CJjnpnhxcCM9/ufjEATh9BNcTEEwi1SBPMg S+P8uNsI6y1KyG+8vaaRHgVJ59DLA2SccJnM4= MIME-Version: 1.0 Received: by 10.180.95.105 with SMTP id dj9mr2058845wib.18.1329468792424; Fri, 17 Feb 2012 00:53:12 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Fri, 17 Feb 2012 00:53:12 -0800 (PST) Date: Fri, 17 Feb 2012 00:53:12 -0800 X-Google-Sender-Auth: JGl_wkbvAAfYwpcAKvBB6FzSXgY Message-ID: From: Adrian Chadd To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: net80211 - how the heck is M_FRAG (mbuf/net80211 fragments) supposed to work? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 08:53:13 -0000 Hi, So ray@ pointed out that fragment handling in net80211 is broken. Yes, 802.11 fragments, not IP fragments. This is specific to ath, but any driver using IFQ_ENQUEUE/IFQ_DEQUEUE is likely broken. The 30 second summary goes something like this: * frame ends up at ieee80211_start() * .. this ends up at ieee80211_encap() * .. this ends up being fragmented via ieee80211_fragment() into multiple fragments. * these are chained together via m->m_nextpkt, with them being marked as M_FRAG. Now, comes the annoying bit: * The parent if->if_transmit is called() * .. which for ath is default, so it gets onto the ifnet send queue via IFQ_ENQUEUE() * .. and that macro clears m->m_nextpkt, totally dropping the rest of the fragments. Yes, they leak. Now even if you fix this, a similar problem in ath_start() exists: * ath_start() uses IFQ_DEQUEUE() to grab a frame; * this clears m->m_nextpkt before returning it; * so.. the ath fragment processing function finds there's not enough fragments (as the rest have been dropped) and it drops it. So my question is - how the heck did this ever work? The behvaiour of clearing m->m_nextpkt in IFQ_ENQUEUE/IFQ_DEQUEUE seems to have been around since forever. What am I missing? I'd really like to repair the fragment behaviour in net80211 so we can TX/RX fragments again. Monthadar has a need for it for supporting 802.11s mesh (legacy) environments so I'd like to give that to him. Thanks! Adrian From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 13:53:22 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A44C1065675 for ; Fri, 17 Feb 2012 13:53:22 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 860E88FC1A for ; Fri, 17 Feb 2012 13:53:21 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q1HDrKbX068694; Fri, 17 Feb 2012 17:53:20 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q1HDrKkE068693; Fri, 17 Feb 2012 17:53:20 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 17 Feb 2012 17:53:20 +0400 From: Gleb Smirnoff To: Marcel Moolenaar Message-ID: <20120217135320.GJ55075@FreeBSD.org> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: net@FreeBSD.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 13:53:22 -0000 On Thu, Feb 16, 2012 at 08:16:22PM -0800, Marcel Moolenaar wrote: M> All, M> M> Juniper is in the final phases of creating a clean separation M> between FreeBSD and Junos, so as to make upgrades of FreeBSD M> easier. This also allows Juniper to track -current and be more M> active FreeBSD contributors. M> M> To that end, we have a short-term and hopefully short-lived M> problem to solve, which is the ability to use FreeBSD's network M> drivers against the Junos network stack. As some may know, the M> Junos network stack has split up struct ifnet into a physical M> and logical component, called ifdev and iflogical. M> M> We've tried a few approaches to bridge the gap between ifnet M> on the one hand and ifdev and iflogical on the other and found M> that abstracting ifnet and using accessor functions is the M> best way to allow us to use FreeBSD drivers with the Junos M> network stack, while retaining the ability to use them with M> the FreeBSD stack. M> M> FreeBSD is also looking at breaking up ifnet and with that in M> mind, I was wondering if there would be any resistance to M> changing network drivers to use accessor functions or macros M> instead of direct pointer dereferences? M> M> For example, do something like: M> M> Index: if_fxp.c M> =================================================================== M> --- if_fxp.c (revision 231178) M> +++ if_fxp.c (working copy) M> @@ -823,13 +823,14 @@ M> } M> M> if_initname(ifp, device_get_name(dev), device_get_unit(dev)); M> - ifp->if_init = fxp_init; M> - ifp->if_softc = sc; M> - ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; M> - ifp->if_ioctl = fxp_ioctl; M> - ifp->if_start = fxp_start; M> + if_set_init(ifp, fxp_init); M> + if_set_softc(ifp, sc); M> + if_set_flags(ifp, IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST, 0); M> + if_set_ioctl(ifp, fxp_ioctl); M> + if_set_start(ifp, fxp_start); M> M> - ifp->if_capabilities = ifp->if_capenable = 0; M> + if_set_capabilities(ifp, 0); M> + if_set_capenable(ifp, 0); M> M> /* Enable checksum offload/TSO for 82550 or better chips */ M> if (sc->flags & FXP_FLAG_EXT_RFA) { M> M> Such a scheme, while initially touching a lot of driver, M> would make it easier to break up ifnet *and* also make it M> easier to hide ABI/API changes from driver vendors (esp. M> when the accessor functions are non-inlined functions and M> not macros or inlines). This is particularly useful for M> Juniper, where we have worked towards network stacks as M> (pre-)loadable modules so as to help with migration and M> validation. M> M> Thoughts, feedback and suggestion are welcome, Is it possible to make the structure the driver points to opaque? Once made, that would allow us to hack on the ifnet (or on its successor - iflogical) more aggressively without breaking ABI/API. -- Totus tuus, Glebius. From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 15:48:36 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA264106564A for ; Fri, 17 Feb 2012 15:48:36 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 96F348FC0A for ; Fri, 17 Feb 2012 15:48:36 +0000 (UTC) Received: from dhcp-192-168-2-14.wifi.xcllnt.net (atm.xcllnt.net [70.36.220.6]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id q1HFmUiP004045 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 17 Feb 2012 07:48:36 -0800 (PST) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=koi8-r From: Marcel Moolenaar In-Reply-To: <20120217135320.GJ55075@FreeBSD.org> Date: Fri, 17 Feb 2012 07:48:35 -0800 Content-Transfer-Encoding: 7bit Message-Id: References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217135320.GJ55075@FreeBSD.org> To: Gleb Smirnoff X-Mailer: Apple Mail (2.1257) Cc: net@FreeBSD.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 15:48:36 -0000 On Feb 17, 2012, at 5:53 AM, Gleb Smirnoff wrote: > M> Thoughts, feedback and suggestion are welcome, > > Is it possible to make the structure the driver points to opaque? > > Once made, that would allow us to hack on the ifnet (or on its > successor - iflogical) more aggressively without breaking ABI/API. Yes, that's the idea. Backward compatibility kinda conflicts with making struct ifnet entirely abstract, but I don't see that as a problem without solution. Only as a problem for which an acceptable solution must be found. For example: you can introduce a define that either old or new drivers use to indicate whether they need full visibility or whether an abstract type works. This then drives what is defined/declared and how it's defined/declared. -- Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 16:10:38 2012 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69D71106566B for ; Fri, 17 Feb 2012 16:10:38 +0000 (UTC) (envelope-from iordan@cdf.toronto.edu) Received: from smtp.cdf.toronto.edu (smtp.cdf.toronto.edu [128.100.31.106]) by mx1.freebsd.org (Postfix) with SMTP id F420D8FC13 for ; Fri, 17 Feb 2012 16:10:36 +0000 (UTC) Received: (qmail 28270 invoked from network); 17 Feb 2012 11:03:55 -0500 Received: from australopithecus.cdf.toronto.edu (HELO ?128.100.31.7?) (iordan@128.100.31.7) by penguin.cdf.toronto.edu with SMTP; 17 Feb 2012 11:03:55 -0500 Message-ID: <4F3E7A6B.7060202@cdf.toronto.edu> Date: Fri, 17 Feb 2012 11:03:55 -0500 From: Iordan Iordanov Organization: University Of Toronto User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.25) Gecko/20111213 Thunderbird/3.1.17 MIME-Version: 1.0 To: freebsd-bugs@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org, CDF Admin Subject: deadlock with both ports on x520-t2 brought up X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 16:10:38 -0000 Hello, This is more of a question about how to provide you with more information than a proper bug-report. What we've found is that with FreeBSD 9.0, when we bring up both ports of a 10GbaseT Intel x520-t2 adapter, and we start pushing data through them with (for example) iperf, processes start to deadlock and become un-killable. So far in our limited testing, bringing up only one port on the adapter does not seem to cause the same trouble. The interesting thing is that the same symptoms are repeated with Debian/KfreeBSD 6.0, which uses BSD kernel 8.1. Any ideas on how we can gather information for you? Has anybody experienced anything similar and can share information? Many thanks! Iordan Iordanov System Administrator, University of Toronto From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 16:52:46 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B1221065673 for ; Fri, 17 Feb 2012 16:52:46 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 8AA2C8FC08 for ; Fri, 17 Feb 2012 16:52:45 +0000 (UTC) Received: from [172.23.7.53] (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id q1HGqUdU004318 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 17 Feb 2012 08:52:43 -0800 (PST) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <20120217082342.GA15346@onelab2.iet.unipi.it> Date: Fri, 17 Feb 2012 08:52:31 -0800 Content-Transfer-Encoding: 7bit Message-Id: <54272F2A-28FE-4388-9450-EBFB5F7C26EC@xcllnt.net> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217082342.GA15346@onelab2.iet.unipi.it> To: Luigi Rizzo X-Mailer: Apple Mail (2.1257) Cc: net@freebsd.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 16:52:46 -0000 On Feb 17, 2012, at 12:23 AM, Luigi Rizzo wrote: >> >> Thoughts, feedback and suggestion are welcome, > > I do like the idea, but the amount of changes will be massive > (see below). The thing that worries me the most is that it > will introduce huge changes between different releases, unless > we backport the accessors (while keeping the underlying struct ifnet > frozen so we preserve the kernel ABI). Hi Luigi, That's a good point. When we have something to work with on -current and ideally with only a few drivers changed, we not only have a hybrid approach in -current, which allows us to stage the work, we also have the inherent support for backward compatibility. This then can be put in 9-stable to allow for "the new network" drivers to be used in a 9-stable code base as well. As for the amount of change: yes, it's large. But I think it's a good investment and an enabler for structural ifnet rework. FYI, -- Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 17:00:26 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0C84106566B; Fri, 17 Feb 2012 17:00:26 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mx1.giulioferro.ch (mx1.giulioferro.ch [217.150.252.208]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2248FC13; Fri, 17 Feb 2012 17:00:26 +0000 (UTC) Received: from mailscan.giulioferro.ch (unknown [192.168.115.2]) by mx1.giulioferro.ch (Postfix) with ESMTP id A5E9539030; Fri, 17 Feb 2012 18:00:24 +0100 (CET) X-Virus-Scanned: amavisd-new at example.com Received: from mx1.giulioferro.ch ([192.168.114.4]) by mailscan.giulioferro.ch (mailscan.giulioferro.ch [192.168.115.2]) (amavisd-new, port 10024) with ESMTP id IReJtAnKw0TY; Fri, 17 Feb 2012 18:00:19 +0100 (CET) Received: from mail.zirakzigil.org (net-93-70-48-129.cust.dsl.vodafone.it [93.70.48.129]) by mx1.giulioferro.ch (Postfix) with ESMTP id 6AF8439026; Fri, 17 Feb 2012 18:00:19 +0100 (CET) Received: from ext.zirakzigil.org (unknown [192.168.1.2]) by mail.zirakzigil.org (Postfix) with ESMTP id 3DF1F194108; Fri, 17 Feb 2012 18:00:19 +0100 (CET) X-Virus-Scanned: amavisd-new at zirakzigil.org Received: from mail.zirakzigil.org ([192.168.1.2]) by ext.zirakzigil.org (ext.zirakzigil.org [192.168.1.2]) (amavisd-new, port 10024) with ESMTP id ZjcTCRTYQZqm; Fri, 17 Feb 2012 18:00:18 +0100 (CET) Received: from [192.168.10.83] (ext [192.168.1.2]) (Authenticated sender: auryn@zirakzigil.org) by mail.zirakzigil.org (Postfix) with ESMTPA id B8AFD194103; Fri, 17 Feb 2012 18:00:18 +0100 (CET) Message-ID: <4F3E87A2.80000@zirakzigil.org> Date: Fri, 17 Feb 2012 18:00:18 +0100 From: Giulio Ferro User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: "freebsd-net@freebsd.org" , freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: kerberized NFS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 17:00:27 -0000 Thanks everybody again for your help with setting up a working kerberized nfsv4 system. I was able to user-mount a nfsv4 share with krb5 security, and I was trying to do the same as root. Unfortunately the patch I found here: http://people.freebsd.org/~rmacklem/rpcsec_gss.patch fails to apply cleanly on a 9 stable system. Is there a more recent patch available or some better way to automatically mount the share at boot time? Thanks again. From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 17:00:40 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27EDE1065716 for ; Fri, 17 Feb 2012 17:00:40 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id DD0FA8FC18 for ; Fri, 17 Feb 2012 17:00:39 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id DC44A73027; Fri, 17 Feb 2012 18:18:35 +0100 (CET) Date: Fri, 17 Feb 2012 18:18:35 +0100 From: Luigi Rizzo To: Marcel Moolenaar Message-ID: <20120217171835.GA20283@onelab2.iet.unipi.it> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217082342.GA15346@onelab2.iet.unipi.it> <54272F2A-28FE-4388-9450-EBFB5F7C26EC@xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54272F2A-28FE-4388-9450-EBFB5F7C26EC@xcllnt.net> User-Agent: Mutt/1.4.2.3i Cc: net@freebsd.org Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 17:00:40 -0000 On Fri, Feb 17, 2012 at 08:52:31AM -0800, Marcel Moolenaar wrote: > > On Feb 17, 2012, at 12:23 AM, Luigi Rizzo wrote: > >> > >> Thoughts, feedback and suggestion are welcome, > > > > I do like the idea, but the amount of changes will be massive > > (see below). The thing that worries me the most is that it > > will introduce huge changes between different releases, unless > > we backport the accessors (while keeping the underlying struct ifnet > > frozen so we preserve the kernel ABI). > > Hi Luigi, > > That's a good point. When we have something to work with on -current > and ideally with only a few drivers changed, we not only have a > hybrid approach in -current, which allows us to stage the work, we > also have the inherent support for backward compatibility. This then > can be put in 9-stable to allow for "the new network" drivers to be > used in a 9-stable code base as well. > > As for the amount of change: yes, it's large. But I think it's a > good investment and an enabler for structural ifnet rework. I definitely agree that it is a good investment, especially considering that I am doing this all the times when i port FreeBSD stuff to linux... The linux version of netmap, which i just completed, was mostly done playing tricks to remap struct ifnet to struct net_device... cheers luigi From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 17:18:01 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71A131065678 for ; Fri, 17 Feb 2012 17:18:01 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0532A8FC26 for ; Fri, 17 Feb 2012 17:18:00 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so2613921wib.13 for ; Fri, 17 Feb 2012 09:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=X25ALOW7b3g4Q50O2XgQ1x+QO62/UOLQ97Dk/y2+GEo=; b=phyZwzVXCdIgglO2IReytvxGEHteJIDLwaDMvVH/JRFFatmcFJy18wqMg9+nNYp28B RnmCkG4FbS65g9fk8we2dETMFl1nCjWW8k/QCeJ9yI9UaivprjIQDOTsb4H6UyeFazok 1ygclnBzGEaWJYY7kLl23y0NUABbfsILOYmps= MIME-Version: 1.0 Received: by 10.180.101.37 with SMTP id fd5mr5935614wib.1.1329499080037; Fri, 17 Feb 2012 09:18:00 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.154.199 with HTTP; Fri, 17 Feb 2012 09:17:59 -0800 (PST) In-Reply-To: <20120217171835.GA20283@onelab2.iet.unipi.it> References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217082342.GA15346@onelab2.iet.unipi.it> <54272F2A-28FE-4388-9450-EBFB5F7C26EC@xcllnt.net> <20120217171835.GA20283@onelab2.iet.unipi.it> Date: Fri, 17 Feb 2012 09:17:59 -0800 X-Google-Sender-Auth: Jkqpj9KMGhn6EUZGeIF5HGWPDDE Message-ID: From: Adrian Chadd To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: net@freebsd.org, Marcel Moolenaar Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 17:18:01 -0000 On 17 February 2012 09:18, Luigi Rizzo wrote: > I definitely agree that it is a good investment, especially considering that > I am doing this all the times when i port FreeBSD stuff to linux... > > The linux version of netmap, which i just completed, was mostly > done playing tricks to remap struct ifnet to struct net_device... The linux version? :( Oh well, one less reason for people to play with FreeBSD.. Adrian From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 18:28:47 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B03601065674 for ; Fri, 17 Feb 2012 18:28:47 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 52A1D8FC17 for ; Fri, 17 Feb 2012 18:28:47 +0000 (UTC) Received: from julian-mac.elischer.org (c-67-180-24-15.hsd1.ca.comcast.net [67.180.24.15]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id q1HIBkb1027248 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 17 Feb 2012 10:11:48 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <4F3E98BF.9090105@freebsd.org> Date: Fri, 17 Feb 2012 10:13:19 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.26) Gecko/20120129 Thunderbird/3.1.18 MIME-Version: 1.0 To: Gleb Smirnoff References: <338757D1-6B1E-49CF-983F-5D5851066FD3@xcllnt.net> <20120217135320.GJ55075@FreeBSD.org> In-Reply-To: <20120217135320.GJ55075@FreeBSD.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: net@freebsd.org, Marcel Moolenaar Subject: Re: Abstracting struct ifnet X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 18:28:47 -0000 On 2/17/12 5:53 AM, Gleb Smirnoff wrote: > On Thu, Feb 16, 2012 at 08:16:22PM -0800, Marcel Moolenaar wrote: > > M> Thoughts, feedback and suggestion are welcome, > > Is it possible to make the structure the driver points to opaque? > > Once made, that would allow us to hack on the ifnet (or on its > successor - iflogical) more aggressively without breaking ABI/API. except for the little issue of core-dumps and netstat etc. From owner-freebsd-net@FreeBSD.ORG Fri Feb 17 18:32:26 2012 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A65EE106566B; Fri, 17 Feb 2012 18:32:26 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 79F218FC1C; Fri, 17 Feb 2012 18:32:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1HIWQFm028259; Fri, 17 Feb 2012 18:32:26 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1HIWQmu028254; Fri, 17 Feb 2012 18:32:26 GMT (envelope-from linimon) Date: Fri, 17 Feb 2012 18:32:26 GMT Message-Id: <201202171832.q1HIWQmu028254@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-net@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/165181: [igb] igb freezes after about 2 weeks of uptime X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2012 18:32:26 -0000 Old Synopsis: IGB freezes after about 2 weeks of uptime New Synopsis: [igb] igb freezes after about 2 weeks of uptime Responsible-Changed-From-To: freebsd-bugs->freebsd-net Responsible-Changed-By: linimon Responsible-Changed-When: Fri Feb 17 18:31:59 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=165181 From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 00:11:22 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5862106564A; Sat, 18 Feb 2012 00:11:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 86E128FC1C; Sat, 18 Feb 2012 00:11:22 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAD3sPk+DaFvO/2dsb2JhbABDFoUCrhaBdQEBAQMBAQEBICsgCwUWDgoCAg0ZAikBCSYGCAcEARwEh18JrAGKCoEviBGCOAEDBgwMBAMOAgICEAgCAgIDCREDgxEBA1CCNoEWBIhOikGCKJMHgT4 X-IronPort-AV: E=Sophos;i="4.73,441,1325480400"; d="scan'208";a="160070978" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 17 Feb 2012 19:11:21 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 564F3B404F; Fri, 17 Feb 2012 19:11:21 -0500 (EST) Date: Fri, 17 Feb 2012 19:11:21 -0500 (EST) From: Rick Macklem To: Giulio Ferro Message-ID: <1210936597.1596873.1329523881317.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4F3E87A2.80000@zirakzigil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: kerberized NFS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 00:11:23 -0000 Giulio Ferro wrote: > Thanks everybody again for your help with setting up a working > kerberized nfsv4 system. > > I was able to user-mount a nfsv4 share with krb5 security, and I was > trying to do the same as root. > > Unfortunately the patch I found here: > http://people.freebsd.org/~rmacklem/rpcsec_gss.patch > > fails to apply cleanly on a 9 stable system. > I'll try and generate an updated patch. I guess some commit has changed the code enough that "patch" gets confused and it's a little big to do the patch manually. (I'm pretty sure any changes done to the sys/rpc/rpcsec_gss code hasn't broken the patch, but I have no way of doing Kerberos testing these days.) > Is there a more recent patch available or some better way to > automatically > mount the share at boot time? > > Thanks again. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 03:13:50 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13E59106566B; Sat, 18 Feb 2012 03:13:50 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id AE0048FC0A; Sat, 18 Feb 2012 03:13:49 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEACMXP0+DaFvO/2dsb2JhbABEFoR+rhWBdQEBAQMBAQEBICsgCwUWDgoCAg0ZAikBCSYGCAcEARwEh18JpwWRbYEviBGCOAEDEgwEAw4CAgIQCAICAgMJEQODEQEDUII2gRYEiE6KQYIokweBPg X-IronPort-AV: E=Sophos;i="4.73,441,1325480400"; d="scan'208";a="156964496" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 17 Feb 2012 22:13:48 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 7E773B3EB2; Fri, 17 Feb 2012 22:13:48 -0500 (EST) Date: Fri, 17 Feb 2012 22:13:48 -0500 (EST) From: Rick Macklem To: Giulio Ferro Message-ID: <1224440280.1601713.1329534828468.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4F3E87A2.80000@zirakzigil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-net@freebsd.org, freebsd-stable@freebsd.org Subject: Re: kerberized NFS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 03:13:50 -0000 Giulio Ferro wrote: > Thanks everybody again for your help with setting up a working > kerberized nfsv4 system. > > I was able to user-mount a nfsv4 share with krb5 security, and I was > trying to do the same as root. > > Unfortunately the patch I found here: > http://people.freebsd.org/~rmacklem/rpcsec_gss.patch > > fails to apply cleanly on a 9 stable system. > There is now a patch called: http://people.freebsd.org/~rmacklem/rpcsec_gss-9.patch that should apply to a FreeBSD9 or later kernel. For the kernel to build after applying the patch, you will need a kernel config with options KGSSAPI in it, since the patch adds a function that can't be called via one of the XXX_call() functions using the function pointers. Also, review the section of the wiki where it discusses setting vfs.rpcsec.keytab_enctype because the host based initiator keytab entry won't work unless it is set correctly. Good luck with it, rick > Is there a more recent patch available or some better way to > automatically > mount the share at boot time? > > Thanks again. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 05:06:28 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2685106566C for ; Sat, 18 Feb 2012 05:06:28 +0000 (UTC) (envelope-from bored_to_death85@yahoo.com) Received: from nm4.bullet.mail.bf1.yahoo.com (nm4.bullet.mail.bf1.yahoo.com [98.139.212.163]) by mx1.freebsd.org (Postfix) with SMTP id 1A6998FC0C for ; Sat, 18 Feb 2012 05:06:27 +0000 (UTC) Received: from [98.139.212.150] by nm4.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2012 05:06:27 -0000 Received: from [98.139.212.251] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2012 05:06:27 -0000 Received: from [127.0.0.1] by omp1060.mail.bf1.yahoo.com with NNFMP; 18 Feb 2012 05:06:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 515781.40482.bm@omp1060.mail.bf1.yahoo.com Received: (qmail 68297 invoked by uid 60001); 18 Feb 2012 05:06:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1329541587; bh=9nZlRXDuhUWs+DNVvil5W3dsLCUBjKDuZE0GtGJjFR4=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=kzzORbx3ZR/ayrgSyGZ62GTLWdoD5cU4SmUxFF1Vx1XM1dH9yLUimib8PoxRXXGim4sh0IYjH8Yo0alBX8E32Wa0+kY/FcPKnJNxHJc9dxZwaIoDvUYOnwk9eMRjAT6Ul9YZ0iPdyXXFUdA/E02H4Kvw/ijkhuZXM0dEHuzaB5M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=GM2sXcrjWdQf2DjRTnn6Q01oCIhOMspyba54PfiXer6vHLTAI5Ls/JEZhwktf4W80rjkbnnhbmVdSgjG3k3AdMsDk3qUmYmSuDv3gewPt0QTNzukggGkk26ZBvHpFThwQdb/EcjV2fmBDkpXk8hIBqg5hKU5IVUbHvD488+mfh4=; X-YMail-OSG: Xw9RDmgVM1mAWQhllNhnx7NiquzbKm7Ud51coq6cuLYvytl AGCV06qnCtBM6VhnBhi9UJ5sB8HXjLyEUzFr5kg_Kt_HG88HZw4UpnA5ofhZ 7RYyk4qJWCED4TFA1932vVEzpBp3I5x8Zkv0lTT99SNKboY4PQLMu2BCou8r nKXMmTVsq8HLnABH7N6DhJp9qMmm8Kuolpmd5gDUtfKggaA1S7dsVJ03BmUa zCssC.4QqS9PABznrbqkCPdprAa9loG7egPbdJtKVc2sXk7RszwEarX1bNAN .Sog0RLpMXS__mrdVVkYg8eVUTaV6hmRbgS3eNtk9jvlZMb0L61hXkCA.OZ5 P94tGtKndReG58N.ox6QRHXdamDbhg_T7hAYUk_S3_xbfIw0fXFxcM5kewAi 8n8CAN8.jJNVZ4S.LjZqHYW1.z_kd5_bG9zWWDnrujuTx8Yti9rtmzqa2ktN aoWevbAvmBFcMMf04F.BAOefFq_dSS9M4sEZaYkxINFNb3.NgALhIKVxGYes uJJGxsAsb8cA61FVyHajeynKsjsRH2BFM3B7RL4Ta8dsIB5hTYniKtmy90lY eYPtVFWpQBve2uaRaIy.vGTXq7R7fljf8RWb.0c47OGmmeqFT.g6CZEVarw- - Received: from [89.165.120.140] by web162203.mail.bf1.yahoo.com via HTTP; Fri, 17 Feb 2012 21:06:26 PST X-Mailer: YahooMailWebService/0.8.116.338427 References: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> <4F3D0197.60100@my.gd> <37B92AD6-F745-4D26-A924-271476558D93@averesystems.com> Message-ID: <1329541586.68159.YahooMailNeo@web162203.mail.bf1.yahoo.com> Date: Fri, 17 Feb 2012 21:06:26 -0800 (PST) From: "M. V." To: "freebsd-net@freebsd.org" In-Reply-To: <37B92AD6-F745-4D26-A924-271476558D93@averesystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "M. V." List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 05:06:28 -0000 =0A>> On 2/16/12 8:08 AM, M. V. wrote:=0A>>> hi everybody,=0A>>> =0A>>> i h= ave a problem with setting multiple IPs in the same network in FreeBSD:=0A>= >> =0A>>> - suppose I assign two new IP addresses in the same network to et= h0 with ifconfig:=0A>>> #ifconfig eth0 add 192.168.10.1/24=0A>>> #ifconfig = eth0 add 192.168.10.2/24=0A>>> =0A>>> - everything works fine and the outpu= t of "netstat -r" is like what it should be:=0A>>> #netstat -r=0A>>> ....= =0A>>> 192.168.10.0=A0 eth0=0A>>> 192.168.10.1=A0 =A0 lo0=0A>>> 192.168.10= .2=A0 =A0 lo0=0A>>> ...=0A>>> =0A>>>=0A- but now if I delete first IP addre= ss, connection to 192.168.10.0=0Anetwork will be gone. and in output of "ne= tstat -r" the route to=0A192.168.10.0 (via eth0) is gone:=0A>>> #ifconfig e= th0 delete 192.168.10.1=0A>>> =0A>>> #netstat -r=0A>>> ....=0A>>> =0A>>> 19= 2.168.10.2=A0 =A0 lo0=0A>>> .....=0A>>> =0A>>>=0A- am i missing something h= ere? shouldn't the route to the network=0Aremain in routing table (because = we still have 192.168.10.2 assigned to=0Ainterface)?=0A>>> =0A>>> Thanks.= =0A>>> =0A>> =0A>> You shouldn't assign your secondary IP with a /24 mask, = use /32.=0A>> =0A>> You'll run into problems otherwise.=0A>> =0A>> As a rul= e of thumb, your aliases =3D /32=0A>> =0A=0A> What=0Ayou are doing should w= ork fine.=A0 There were a handful of routing table=0Abugs fixed in the last= few months that corrected this behavior.=A0 The=0Alast =0A> two were just = merged to stable/8 yesterday.=A0 What release are you=0Arunning? =0A=0Athan= k you all for your replies.=0A=0ASorry I dont understand why i shouldn't be= able to assign 2 IP addresses in the same net, can someone tell me why it = shouldn't be possible (if it really shouldn't)? because in my head, it seem= s normal :-)=0Abut even if i don't have to, shouldn't `ifconfig` at least s= how a warning or error message to prevent such things? because now it more = seems like a bug. it successfully assigns 2 (or more) IPs in the same netwo= rk (and it works fine for all of them) but then when you happen to delete o= ne of them, everything goes down.=0A=0AI have FreeBSD-8.2 amd64. From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 05:28:28 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1BED106566C for ; Sat, 18 Feb 2012 05:28:28 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id 9369C8FC0C for ; Sat, 18 Feb 2012 05:28:28 +0000 (UTC) Received: from PWSVL-EXCHTS-01.internal.cacheflow.com ([10.2.2.122]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id q1I5SSsb013653 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 17 Feb 2012 21:28:28 -0800 (PST) Received: from PWSVL-EXCMBX-01.internal.cacheflow.com ([fe80::15bc:12e2:4676:340f]) by PWSVL-EXCHTS-01.internal.cacheflow.com ([fe80::5c50:e2ba:8115:4223%20]) with mapi id 14.01.0289.001; Fri, 17 Feb 2012 21:28:23 -0800 From: "Li, Qing" To: "M. V." , "freebsd-net@freebsd.org" Thread-Topic: Assigning multiple IPs in the same network to an interface Thread-Index: AQHM7KWcO/Pv8StWKUWgK1T5BpUJNZZCIcqg Date: Sat, 18 Feb 2012 05:28:22 +0000 Message-ID: References: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> In-Reply-To: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [216.52.23.68] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: Subject: RE: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 05:28:28 -0000 Yes, what you are trying to do is allowed and is supported. In fact several= bugs=20 were fixed to support such configuration properly. For example, see these c= ommits: http://svnweb.freebsd.org/base?view=3Drevision&revision=3D225947 http://svnweb.freebsd.org/base?view=3Drevision&revision=3D225223 I vague remember fixing a bug with this exact description but I am having a bit difficult locating the patch. Could you please indicate what version you are running ? --Qing > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of M. V. > Sent: Wednesday, February 15, 2012 11:08 PM > To: freebsd-net@freebsd.org > Subject: Assigning multiple IPs in the same network to an interface >=20 > hi everybody, >=20 > i have a problem with setting multiple IPs in the same network in > FreeBSD: >=20 > - suppose I assign two new IP addresses in the same network to eth0 > with ifconfig: > #ifconfig eth0 add 192.168.10.1/24 > #ifconfig eth0 add 192.168.10.2/24 >=20 > - everything works fine and the output of "netstat -r" is like what it > should be: > #netstat -r > .... > 192.168.10.0=A0=A0 eth0 > 192.168.10.1=A0=A0=A0 lo0 > 192.168.10.2=A0=A0=A0 lo0 > ... >=20 > - but now if I delete first IP address, connection to 192.168.10.0 > network will be gone. and in output of "netstat -r" the route to > 192.168.10.0 (via eth0) is gone: > #ifconfig eth0 delete 192.168.10.1 >=20 > #netstat -r > .... >=20 > 192.168.10.2=A0=A0=A0 lo0 > ..... >=20 > - am i missing something here? shouldn't the route to the network > remain in routing table (because we still have 192.168.10.2 assigned to > interface)? >=20 > Thanks. >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 06:51:32 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E3F1106566C for ; Sat, 18 Feb 2012 06:51:32 +0000 (UTC) (envelope-from lists@rewt.org.uk) Received: from mx.as41113.net (abby.lhr1.as41113.net [91.208.177.20]) by mx1.freebsd.org (Postfix) with ESMTP id 64E1E8FC1B for ; Sat, 18 Feb 2012 06:51:32 +0000 (UTC) Received: from [172.16.11.44] (unknown [91.208.177.192]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by smtp.as41113.net (Postfix) with ESMTPSA id E3DC42280F for ; Sat, 18 Feb 2012 06:41:24 +0000 (UTC) Message-ID: <4F3F4810.6070501@rewt.org.uk> Date: Sat, 18 Feb 2012 06:41:20 +0000 From: Joe Holden User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Panic after vnet/jail destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 06:51:32 -0000 Hi guys, I've upgraded some machines to 9.0-REL and I'm seeing the following a few minutes after stopping or restarting a jail with vnet: http://i.imgur.com/cRsLr.jpg Sometimes it doesn't happen and as the machine is remote it means I only have ipkvm output posted above to go on, I'm also using jailv2 with the following config: jail_list="$jail_list relay" jail_relay_name="relay" jail_relay_hostname="relay" jail_relay_devfs_enable="YES" jail_relay_rootdir="/data/jails/relay" jail_relay_mount_enable="YES" jail_relay_fstab="/etc/jails/fstabs/relay" jail_relay_vnet_enable="YES" jail_relay_exec_prestart0="ifconfig epair0 create" jail_relay_exec_prestart1="ifconfig bridge0 addm epair0a" jail_relay_exec_prestart2="ifconfig epair1 create" jail_relay_exec_prestart3="ifconfig bridge1 addm epair1a" jail_relay_exec_prestart4="ifconfig epair0a up" jail_relay_exec_prestart5="ifconfig epair1a up" jail_relay_exec_earlypoststart0="ifconfig epair0b vnet relay" jail_relay_exec_earlypoststart1="ifconfig epair1b vnet relay" jail_relay_exec_afterstart0="ifconfig lo0 inet 127.0.0.1/8" jail_relay_exec_afterstart1="ifconfig epair0b inet 10.43.43.2/29" jail_relay_exec_afterstart2="ifconfig epair1b inet 10.54.43.2/29" jail_relay_exec_afterstart3="route -q add default 10.43.43.1" jail_relay_exec_afterstart4="/bin/sh /etc/rc" jail_relay_exec_poststop0="ifconfig bridge0 deletem epair0a" jail_relay_exec_poststop1="ifconfig epair0a destroy" jail_relay_exec_poststop2="ifconfig bridge1 deletem epair1a" jail_relay_exec_poststop3="ifconfig epair1a destroy" I haven't seen this when managing jails manually, however. Any suggestions welcome! Thanks, J From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 09:36:28 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00408106566B for ; Sat, 18 Feb 2012 09:36:27 +0000 (UTC) (envelope-from raymond@wagnerrp.com) Received: from mail-out1.fuse.net (mail-out1.fuse.net [216.68.8.170]) by mx1.freebsd.org (Postfix) with ESMTP id AEB968FC17 for ; Sat, 18 Feb 2012 09:36:27 +0000 (UTC) X-CNFS-Analysis: v=1.1 cv=Pge/cBqKyVcxIpgw63Nz4mrltvaB1HRkZOmsuRSa51g= c=1 sm=0 a=TBLo2v4HGtIA:10 a=F0_oH49KuWsA:10 a=cAU3qhYAuScA:10 a=8nJEP1OIZ-IA:10 a=i3ZOiaB_C8dI4PEXOHUA:9 a=wPNLvfGTeEIA:10 a=aS15RBs+dI1CiG0r6x2z/g==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: ecout1 smtp.mail=raymond@wagnerrp.com; spf=neutral Authentication-Results: ecout1 smtp.user=wagnerr@zoomtown.com; auth=pass (LOGIN) Received-SPF: neutral (ecout1: 66.42.242.8 is neither permitted nor denied by domain of wagnerrp.com) Received: from [66.42.242.8] ([66.42.242.8:51516] helo=[10.254.2.2]) by ecout1 (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id 3D/8B-10648-85F6F3F4; Sat, 18 Feb 2012 04:28:56 -0500 Message-ID: <4F3F6D95.1000605@wagnerrp.com> Date: Sat, 18 Feb 2012 04:21:25 -0500 From: Raymond Wagner User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120111 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4F3F4810.6070501@rewt.org.uk> In-Reply-To: <4F3F4810.6070501@rewt.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Panic after vnet/jail destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 09:36:28 -0000 On 2/18/2012 01:41, Joe Holden wrote: > jail_relay_exec_poststop0="ifconfig bridge0 deletem epair0a" > jail_relay_exec_poststop1="ifconfig epair0a destroy" > jail_relay_exec_poststop2="ifconfig bridge1 deletem epair1a" > jail_relay_exec_poststop3="ifconfig epair1a destroy" The kernel panics when you try to destroy an epair. This is a known issue, and not a new issue. I've see the same problem at least as far back as 8.1. The current work around is to simply not destroy them when you bring down your jails. Of course this does mean you will build up a collection of unused epairs. From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 10:39:31 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1255A106566C for ; Sat, 18 Feb 2012 10:39:31 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC208FC08 for ; Sat, 18 Feb 2012 10:39:29 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so3150279wib.13 for ; Sat, 18 Feb 2012 02:39:28 -0800 (PST) Received-SPF: pass (google.com: domain of ml@my.gd designates 10.180.86.9 as permitted sender) client-ip=10.180.86.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ml@my.gd designates 10.180.86.9 as permitted sender) smtp.mail=ml@my.gd Received: from mr.google.com ([10.180.86.9]) by 10.180.86.9 with SMTP id l9mr2966583wiz.15.1329561568871 (num_hops = 1); Sat, 18 Feb 2012 02:39:28 -0800 (PST) Received: by 10.180.86.9 with SMTP id l9mr2518214wiz.15.1329561568817; Sat, 18 Feb 2012 02:39:28 -0800 (PST) Received: from dfleuriot.local (did75-17-88-165-130-96.fbx.proxad.net. [88.165.130.96]) by mx.google.com with ESMTPS id ft8sm2632730wib.11.2012.02.18.02.39.27 (version=SSLv3 cipher=OTHER); Sat, 18 Feb 2012 02:39:28 -0800 (PST) Message-ID: <4F3F7FDF.8060202@my.gd> Date: Sat, 18 Feb 2012 11:39:27 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: Andrew Boyer References: <1329376106.7683.YahooMailNeo@web162203.mail.bf1.yahoo.com> <4F3D0197.60100@my.gd> <37B92AD6-F745-4D26-A924-271476558D93@averesystems.com> In-Reply-To: <37B92AD6-F745-4D26-A924-271476558D93@averesystems.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQloAygM97+A/f1MtuzdomE7D2pZu6i5wEtHzxqiXYKMuoqoUQFH5QXiosTf+keK1/N9ZKSv Cc: freebsd-net@freebsd.org, "M. V." Subject: Re: Assigning multiple IPs in the same network to an interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 10:39:31 -0000 On 2/16/12 3:39 PM, Andrew Boyer wrote: > > On Feb 16, 2012, at 8:16 AM, Damien Fleuriot wrote: > >> On 2/16/12 8:08 AM, M. V. wrote: >>> hi everybody, >>> >>> i have a problem with setting multiple IPs in the same network in FreeBSD: >>> >>> - suppose I assign two new IP addresses in the same network to eth0 with ifconfig: >>> #ifconfig eth0 add 192.168.10.1/24 >>> #ifconfig eth0 add 192.168.10.2/24 >>> >>> - everything works fine and the output of "netstat -r" is like what it should be: >>> #netstat -r >>> .... >>> 192.168.10.0 eth0 >>> 192.168.10.1 lo0 >>> 192.168.10.2 lo0 >>> ... >>> >>> - but now if I delete first IP address, connection to 192.168.10.0 network will be gone. and in output of "netstat -r" the route to 192.168.10.0 (via eth0) is gone: >>> #ifconfig eth0 delete 192.168.10.1 >>> >>> #netstat -r >>> .... >>> >>> 192.168.10.2 lo0 >>> ..... >>> >>> - am i missing something here? shouldn't the route to the network remain in routing table (because we still have 192.168.10.2 assigned to interface)? >>> >>> Thanks. >>> >> >> You shouldn't assign your secondary IP with a /24 mask, use /32. >> >> You'll run into problems otherwise. >> >> As a rule of thumb, your aliases = /32 >> > > M.V. - > What you are doing should work fine. There were a handful of routing table bugs fixed in the last few months that corrected this behavior. The last two were just merged to stable/8 yesterday. What release are you running? > > -Andrew > This is of interest to me. Do these fixes allow one to use say /24 aliases instead of /32 without running into problems ? From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 16:42:48 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 398CA106564A for ; Sat, 18 Feb 2012 16:42:48 +0000 (UTC) (envelope-from lists@rewt.org.uk) Received: from mx.as41113.net (abby.lhr1.as41113.net [91.208.177.20]) by mx1.freebsd.org (Postfix) with ESMTP id F1ACB8FC08 for ; Sat, 18 Feb 2012 16:42:47 +0000 (UTC) Received: from [172.16.11.44] (unknown [91.208.177.192]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by smtp.as41113.net (Postfix) with ESMTPSA id F36192280F; Sat, 18 Feb 2012 16:42:46 +0000 (UTC) Message-ID: <4F3FD501.4060307@rewt.org.uk> Date: Sat, 18 Feb 2012 16:42:41 +0000 From: Joe Holden User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: Raymond Wagner References: <4F3F4810.6070501@rewt.org.uk> <4F3F6D95.1000605@wagnerrp.com> In-Reply-To: <4F3F6D95.1000605@wagnerrp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Panic after vnet/jail destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 16:42:48 -0000 On 18/02/2012 09:21, Raymond Wagner wrote: > On 2/18/2012 01:41, Joe Holden wrote: >> jail_relay_exec_poststop0="ifconfig bridge0 deletem epair0a" >> jail_relay_exec_poststop1="ifconfig epair0a destroy" >> jail_relay_exec_poststop2="ifconfig bridge1 deletem epair1a" >> jail_relay_exec_poststop3="ifconfig epair1a destroy" > > The kernel panics when you try to destroy an epair. This is a known > issue, and not a new issue. I've see the same problem at least as far > back as 8.1. The current work around is to simply not destroy them > when you bring down your jails. Of course this does mean you will > build up a collection of unused epairs. Hm really? I haven't seen it when not using the jailv2 stuff, is there a pr for this? Ta, J From owner-freebsd-net@FreeBSD.ORG Sat Feb 18 19:07:31 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98794106568B for ; Sat, 18 Feb 2012 19:07:31 +0000 (UTC) (envelope-from raymond@wagnerrp.com) Received: from mail-out3.fuse.net (mail-out3.fuse.net [216.68.8.175]) by mx1.freebsd.org (Postfix) with ESMTP id 5437E8FC1B for ; Sat, 18 Feb 2012 19:07:30 +0000 (UTC) X-CNFS-Analysis: v=1.1 cv=lyZfmLjldCnMi0PrNcU09bzR0GJF/j1hYJR6YboTBR4= c=1 sm=0 a=TBLo2v4HGtIA:10 a=F0_oH49KuWsA:10 a=cAU3qhYAuScA:10 a=8nJEP1OIZ-IA:10 a=6I5d2MoRAAAA:8 a=xn_X63AAre-fQ4UZOPoA:9 a=wPNLvfGTeEIA:10 a=4n4BwxHmT8cA:10 a=aS15RBs+dI1CiG0r6x2z/g==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: ecout2 smtp.mail=raymond@wagnerrp.com; spf=neutral Authentication-Results: ecout2 smtp.user=wagnerr@zoomtown.com; auth=pass (LOGIN) Received-SPF: neutral (ecout2: 66.42.242.8 is neither permitted nor denied by domain of wagnerrp.com) Received: from [66.42.242.8] ([66.42.242.8:56572] helo=[10.254.2.2]) by ecout2 (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTPA id F3/2B-09756-158FF3F4; Sat, 18 Feb 2012 14:13:21 -0500 Message-ID: <4F3FF6F2.90002@wagnerrp.com> Date: Sat, 18 Feb 2012 14:07:30 -0500 From: Raymond Wagner User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120111 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4F3F4810.6070501@rewt.org.uk> <4F3F6D95.1000605@wagnerrp.com> <4F3FD501.4060307@rewt.org.uk> In-Reply-To: <4F3FD501.4060307@rewt.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Panic after vnet/jail destroy X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 19:07:31 -0000 On 2/18/2012 11:42, Joe Holden wrote: > On 18/02/2012 09:21, Raymond Wagner wrote: >> On 2/18/2012 01:41, Joe Holden wrote: >>> jail_relay_exec_poststop0="ifconfig bridge0 deletem epair0a" >>> jail_relay_exec_poststop1="ifconfig epair0a destroy" >>> jail_relay_exec_poststop2="ifconfig bridge1 deletem epair1a" >>> jail_relay_exec_poststop3="ifconfig epair1a destroy" >> >> The kernel panics when you try to destroy an epair. This is a known >> issue, and not a new issue. I've see the same problem at least as far >> back as 8.1. The current work around is to simply not destroy them >> when you bring down your jails. Of course this does mean you will >> build up a collection of unused epairs. > Hm really? I haven't seen it when not using the jailv2 stuff, is there a > pr for this? I don't know off hand if there are any open tickets related to this, but a quick search came up with... http://lists.freebsd.org/pipermail/freebsd-virtualization/2011-January/000628.html