From nobody@FreeBSD.org  Thu Dec  7 11:46:38 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 4D09D16A4A7
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Dec 2006 11:46:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D4B4243D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Dec 2006 11:44:29 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id kB7BjJ4p061174
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Dec 2006 11:45:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id kB7BjJEg061173;
	Thu, 7 Dec 2006 11:45:19 GMT
	(envelope-from nobody)
Message-Id: <200612071145.kB7BjJEg061173@www.freebsd.org>
Date: Thu, 7 Dec 2006 11:45:19 GMT
From: Justin Unwin<junwin@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel Panic on Binding to an ip to a virtual atm interface(ng_atmpif)
X-Send-Pr-Version: www-3.0

>Number:         106444
>Category:       kern
>Synopsis:       [netgraph] [panic] Kernel Panic on Binding to an ip to a virtual atm interface(ng_atmpif)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 07 11:50:04 GMT 2006
>Closed-Date:    
>Last-Modified:  Thu Mar 18 04:26:40 UTC 2010
>Originator:     Justin Unwin
>Release:        6.2-RC1
>Organization:
>Environment:
FreeBSD routeb.cybertek.co.za 6.2-RC1 FreeBSD 6.2-RC1 #4: Wed Dec  6 18:35:45 SA
ST 2006     root@tst.cybertek.co.za:/usr/obj/usr/src/sys/GEODE_RB  i386
>Description:
I am attempting to play around with ATM virtual interfaces but I am unable to get the interface to bind to an ip address without causing a kernel panic. I have tried to find documentation on this error but have failed. I am beginning to think it is a bug.

Here is an excerpt of what happens after configuring the atm intefrace("See How to repeat the problem for more specifics")
<<<
routeb# ifconfig atm0 10.1.1.1 netmask 255.255.255.0 up
panic: ipatm_nifstat: setaddr missing ip_nif
>How-To-Repeat:
Just run the following and make sure you have all the necessary netgraph + atm modules. Try the above kernel config.

ngctl -f - <<EOF
  mkpeer atmpif dummy link
  name .:dummy vatmpif1
EOF
ngctl -d mkpeer vatmpif1: ksocket link inet/dgram/udp
ngctl msg vatmpif1: setconfig \{ debug=1 pcr=353207 macaddr=00:09:c0:00:00:ce \}
atm set netif hva1 atm 5
atm attach hva1 sigpvc

#Bind to an ip on atm0 - 5 and you get a panic
ifconfig atm0 10.1.1.1 netmask 255.255.255.0 up

>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Feb 13 01:05:52 UTC 2007 
Responsible-Changed-Why:  
This does not sound i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106444 
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Mar 18 04:26:27 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=106444 
>Unformatted:
 >>>
 
 Kernel Config
 >>>
 include GENERIC
 
 ident           GEODE_RB
 #----Start Firewall Kernel Settings----#
 options         MROUTING
 options         IPFIREWALL
 options         IPFIREWALL_VERBOSE
 options         IPFIREWALL_DEFAULT_TO_ACCEPT
 options         IPFIREWALL_FORWARD
 options         IPDIVERT
 options         IPSTEALTH
 options         TCP_DROP_SYNFIN
 options         DUMMYNET
 options         BRIDGE
 
 options         ALTQ
 options         ALTQ_CBQ
 options         ALTQ_RED
 options         ALTQ_RIO
 options         ALTQ_HFSC
 options         ALTQ_CDNR
 options         ALTQ_PRIQ
 
 #----End of Firewall Kernel Setting----#
 
 #----IPSEC----#
 options   IPSEC        #IP security
 options   IPSEC_ESP    #IP security (crypto; define w/ IPSEC)
 #----IPSEC----#
 
 #----ATM TEST----#
 options         ATM_CORE
 options         ATM_IP
 options         ATM_SIGPVC
 options         ATM_SPANS
 options         ATM_UNI
 device          hfa
 device          harp
 options         NATM
 options         NETGRAPH_ATMLLC
 options         NETGRAPH_ATM_ATMPIF
 options         NGATM_ATM
 options         NGATM_ATMBASE
 options         NGATM_SSCOP
 options         NGATM_SSCFU
 options         NGATM_UNI
 options         NGATM_CCATM
 options         LIBMBPOOL
 device          atm
 device          utopia
 device          fatm
 device          hatm
 device          patm
 #----ATM TEST----#
 
 options         NETGRAPH
 options         NETGRAPH_DEBUG
 options         NETGRAPH_ASYNC
 options         NETGRAPH_ATMLLC
 options         NETGRAPH_ATM_ATMPIF
 options         NETGRAPH_BLUETOOTH
 options         NETGRAPH_BLUETOOTH_BT3C
 options         NETGRAPH_BLUETOOTH_H4
 options         NETGRAPH_BLUETOOTH_HCI
 options         NETGRAPH_BLUETOOTH_L2CAP
 options         NETGRAPH_BLUETOOTH_SOCKET
 options         NETGRAPH_BLUETOOTH_UBT
 options         NETGRAPH_BLUETOOTH_UBTBCMFW
 options         NETGRAPH_BPF
 options         NETGRAPH_BRIDGE
 options         NETGRAPH_CISCO
 options         NETGRAPH_DEVICE
 options         NETGRAPH_ECHO
 options         NETGRAPH_EIFACE
 options         NETGRAPH_ETHER
 options         NETGRAPH_FEC
 options         NETGRAPH_FRAME_RELAY
 options         NETGRAPH_GIF
 options         NETGRAPH_GIF_DEMUX
 options         NETGRAPH_HOLE
 options         NETGRAPH_IFACE
 options         NETGRAPH_IP_INPUT
 options         NETGRAPH_IPFW
 options         NETGRAPH_KSOCKET
 options         NETGRAPH_L2TP
 options         NETGRAPH_LMI
 options         NETGRAPH_MPPC_ENCRYPTION
 options         NETGRAPH_NETFLOW
 options         NETGRAPH_ONE2MANY
 options         NETGRAPH_PPP
 options         NETGRAPH_PPPOE
 options         NETGRAPH_PPTPGRE
 options         NETGRAPH_RFC1490
 options         NETGRAPH_SOCKET
 options         NETGRAPH_SPLIT
 options         NETGRAPH_TAG
 options         NETGRAPH_TCPMSS
 options         NETGRAPH_TEE
 options         NETGRAPH_TTY
 options         NETGRAPH_UI
 options         NETGRAPH_VJC
 
 #GEODE Config
 options         CPU_GEODE
 options         CPU_SOEKRIS
 
 # Multicast routing
 options         MROUTING
 options         PIM
 <<<
 
 Contact me if you need any more information.
 
 Thanks,
 
 - J
 
