Skip to content
  • David S. Miller's avatar
    netfilter; Add some missing default cases to switch statements in nft_reject. · 129d23a5
    David S. Miller authored
    
    
    This fixes:
    
    ====================
    net/netfilter/nft_reject.c: In function ‘nft_reject_dump’:
    net/netfilter/nft_reject.c:61:2: warning: enumeration value ‘NFT_REJECT_TCP_RST’ not handled in switch [-Wswitch]
      switch (priv->type) {
      ^
    net/netfilter/nft_reject.c:61:2: warning: enumeration value ‘NFT_REJECT_ICMPX_UNREACH’ not handled in switch [-Wswi\
    tch]
    net/netfilter/nft_reject_inet.c: In function ‘nft_reject_inet_dump’:
    net/netfilter/nft_reject_inet.c:105:2: warning: enumeration value ‘NFT_REJECT_TCP_RST’ not handled in switch [-Wswi\
    tch]
      switch (priv->type) {
      ^
    ====================
    
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    129d23a5